also refactor nixos modules
This commit is contained in:
parent
2471562583
commit
b37c5c0cbd
44 changed files with 10 additions and 2 deletions
21
modules/nixos/desktop/gnome.nix
Normal file
21
modules/nixos/desktop/gnome.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
|
||||
cfg = config.sneeuwvlok.desktop.gnome;
|
||||
in {
|
||||
options.sneeuwvlok.desktop.gnome = {
|
||||
enable =
|
||||
mkEnableOption "Enable Gnome"
|
||||
// {
|
||||
default = config.sneeuwvlok.desktop.use == "gnome";
|
||||
};
|
||||
};
|
||||
|
||||
config =
|
||||
mkIf cfg.enable {
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue