From 30f8fea050f3242f0e6a2072779e706b5c8ceaf1 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Thu, 24 Sep 2026 03:42:25 +0530 Subject: refactor(modules): introduce cfg local bindings and submodule option types --- modules/system/nix-update/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/system/nix-update') 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 ]; }; } -- cgit v1.2.3