From 19bd80282dbcc5ea34633891912b201d3c312f36 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Fri, 5 Jul 2024 02:13:53 +0530 Subject: [PATCH] flake: fix missing option in module --- modules/general.nix | 12 +++++++----- modules/nix.nix | 12 +++++++----- 2 files changed, 14 insertions(+), 10 deletions(-) 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 {