diff --git a/modules/general.nix b/modules/general.nix index 77faa3b..b32406c 100644 --- a/modules/general.nix +++ b/modules/general.nix @@ -1,10 +1,12 @@ { lib, config, ... }: let cfg = config.nodeconfig; in { - options.minimize = lib.mkOption { - type = lib.types.bool; - default = false; - example = true; - description = "Disable non-essential stuff"; + options.nodeconfig = { + minimize = lib.mkOption { + type = lib.types.bool; + default = false; + example = true; + description = "Disable non-essential stuff"; + }; }; config = lib.mkIf cfg.minimize { diff --git a/modules/nix.nix b/modules/nix.nix index 291e64f..3f20072 100644 --- a/modules/nix.nix +++ b/modules/nix.nix @@ -1,10 +1,12 @@ { lib, config, ... }: let cfg = config.nodeconfig; in { - options.nix.auto-gc = lib.mkOption { - type = lib.types.bool; - default = false; - example = true; - description = "Enable Automatic Garbage collection of the Nix store"; + options.nodeconfig = { + nix.auto-gc = lib.mkOption { + type = lib.types.bool; + default = false; + example = true; + description = "Enable Automatic Garbage collection of the Nix store"; + }; }; config = lib.mkIf cfg.nix.auto-gc {