summaryrefslogtreecommitdiffstats
path: root/modules/by-name/yt
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-11-04 21:15:56 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-11-05 22:47:43 +0100
commit4c302712df8ccaf75fdb39a5d0a9166a0f4fa96b (patch)
tree0b8156bdc0395ae00e671bae3ae57dbf7f287c68 /modules/by-name/yt
parentmodules/common/soispha: Remove `enable = false` options (diff)
downloadnixos-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.nix4
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
];