chore: pretty up with alejandra

This commit is contained in:
Peritia 2025-09-22 16:16:02 +02:00
parent 7bbda6140f
commit 37b85877bb
75 changed files with 584 additions and 452 deletions

View file

@ -1,6 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}: {
imports = [
./obsidian.nix
];

View file

@ -7,18 +7,19 @@
# - Consider adding theming support later
# (e.g., https://github.com/jackiejude/obsidian-temple-os)
#
{ config, lib, pkgs, ... }:
let
cfg = config.nyx-module.home.obsidian;
in
{
config,
lib,
pkgs,
...
}: let
cfg = config.nyx-module.home.obsidian;
in {
options.nyx-module.home.obsidian = {
enable = lib.mkEnableOption "Enable Obsidian (home module)";
};
config = lib.mkIf cfg.enable {
home.packages = [ pkgs.obsidian ];
home.packages = [pkgs.obsidian];
};
}

View file

@ -1,6 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}: {
imports = [
./libreoffice.nix
./pdf-reader.nix

View file

@ -6,18 +6,19 @@
# Notes:
# - Simple module, just adds LibreOffice to the user environment
#
{ config, lib, pkgs, ... }:
let
cfg = config.nyx-module.home.libreoffice;
in
{
config,
lib,
pkgs,
...
}: let
cfg = config.nyx-module.home.libreoffice;
in {
options.nyx-module.home.libreoffice = {
enable = lib.mkEnableOption "Enable LibreOffice (home module)";
};
config = lib.mkIf cfg.enable {
home.packages = [ pkgs.libreoffice ];
home.packages = [pkgs.libreoffice];
};
}

View file

@ -6,13 +6,14 @@
# Notes:
# - Defaults to Okular
#
{ config, lib, pkgs, ... }:
let
cfg = config.nyx-module.home.pdf-viewer;
in
{
config,
lib,
pkgs,
...
}: let
cfg = config.nyx-module.home.pdf-viewer;
in {
options.nyx-module.home.pdf-viewer = {
enable = lib.mkEnableOption "Enable PDF (home module)";
@ -25,6 +26,6 @@ in
};
config = lib.mkIf cfg.enable {
home.packages = [ cfg.package ];
home.packages = [cfg.package];
};
}

View file

@ -7,13 +7,14 @@
# - Default is `simple-scan` (GNOME Document Scanner)
# - Can be overridden with another package such as `system-config-printer`
#
{ config, lib, pkgs, ... }:
let
cfg = config.nyx-module.home.printer;
in
{
config,
lib,
pkgs,
...
}: let
cfg = config.nyx-module.home.printer;
in {
options.nyx-module.home.printer = {
enable = lib.mkEnableOption "Enable printer GUI (home module)";
@ -26,6 +27,6 @@ in
};
config = lib.mkIf cfg.enable {
home.packages = [ cfg.package ];
home.packages = [cfg.package];
};
}

View file

@ -6,18 +6,19 @@
# Notes:
# - Simple module, just adds Thunderbird to the user environment
#
{ config, lib, pkgs, ... }:
let
cfg = config.nyx-module.home.thunderbird;
in
{
config,
lib,
pkgs,
...
}: let
cfg = config.nyx-module.home.thunderbird;
in {
options.nyx-module.home.thunderbird = {
enable = lib.mkEnableOption "Enable Thunderbird (home module)";
};
config = lib.mkIf cfg.enable {
home.packages = [ pkgs.thunderbird ];
home.packages = [pkgs.thunderbird];
};
}

View file

@ -1,6 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}: {
imports = [
./Knowledge
./Productivity