From 4c302712df8ccaf75fdb39a5d0a9166a0f4fa96b Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Wed, 4 Nov 2026 21:15:56 +0100 Subject: modules/{taskwarrior,yt}: Move the `lib.mkIf cfg.enable` to the config Having it only in the inner attributes is error prone. --- modules/by-name/yt/yt/module.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/by-name/yt') diff --git a/modules/by-name/yt/yt/module.nix b/modules/by-name/yt/yt/module.nix index f001c030..40890d09 100644 --- a/modules/by-name/yt/yt/module.nix +++ b/modules/by-name/yt/yt/module.nix @@ -111,8 +111,8 @@ in { enable = lib.mkEnableOption "the yt cli client"; }; - config = { - home-manager.users.soispha = lib.mkIf cfg.enable { + config = lib.mkIf cfg.enable { + home-manager.users.soispha = { home.packages = [ pkgs.yt ]; -- cgit v1.3.1