diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-11-04 21:15:56 +0100 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-11-05 22:47:43 +0100 |
| commit | 4c302712df8ccaf75fdb39a5d0a9166a0f4fa96b (patch) | |
| tree | 0b8156bdc0395ae00e671bae3ae57dbf7f287c68 /modules/by-name/yt | |
| parent | modules/common/soispha: Remove `enable = false` options (diff) | |
| download | nixos-config-4c302712df8ccaf75fdb39a5d0a9166a0f4fa96b.zip | |
modules/{taskwarrior,yt}: Move the `lib.mkIf cfg.enable` to the config
Having it only in the inner attributes is error prone.
Diffstat (limited to 'modules/by-name/yt')
| -rw-r--r-- | modules/by-name/yt/yt/module.nix | 4 |
1 files changed, 2 insertions, 2 deletions
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 ]; |
