refactor: removing needless module complexity
This commit is contained in:
22
modules/nixos/programs/gnome/default.nix
Normal file
22
modules/nixos/programs/gnome/default.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.nixos.programs.gnome;
|
||||
in {
|
||||
options = {
|
||||
nixos.programs.gnome.enable = mkEnableOption "Enables gnome";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
services = {
|
||||
xserver = {
|
||||
desktopManager.gnome = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
gnome.games.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user