diff options
Diffstat (limited to 'modules/system/nix-update/default.nix')
| -rw-r--r-- | modules/system/nix-update/default.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/system/nix-update/default.nix b/modules/system/nix-update/default.nix index 9f93a4e..fb9151d 100644 --- a/modules/system/nix-update/default.nix +++ b/modules/system/nix-update/default.nix @@ -6,6 +6,8 @@ ... }: let + cfg = config.system.nix-update; + nixUpdateScript = pkgs.writeShellApplication { name = "nix-update"; runtimeInputs = [ @@ -48,7 +50,7 @@ in }; }; - config = lib.mkIf config.system.nix-update.enable { - home.packages = [ config.system.nix-update.package ]; + config = lib.mkIf cfg.enable { + home.packages = [ cfg.package ]; }; } |
