greetd: extract greetd config

This commit is contained in:
Leonardo Eugênio 2024-01-20 21:42:07 -03:00
parent 47e3cc536c
commit 25c8833ec3
3 changed files with 90 additions and 78 deletions

View file

@ -95,6 +95,9 @@
./system/configuration.nix
./system/secrets.nix
./system/specialisation.nix
./system/greetd.nix
{ login-manager.greetd.enable = desktop == "sway" || desktop == "hyprland"; }
inputs.agenix.nixosModules.default
inputs.hyprland.nixosModules.default
inputs.dzgui-nix.nixosModules.default
@ -109,7 +112,7 @@
# arguments to home.nix
home-manager.extraSpecialArgs = { inherit inputs; };
}
] ++ lib.optional (desktop == "sway") ./system/sway.nix
]
++ lib.optional (desktop == "gnome") ./system/gnome.nix
++ lib.optional (desktop == "kde") ./system/kde.nix;
in