diff options
author | Soispha <soispha@vhack.eu> | 2023-07-29 21:58:49 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-07-30 00:19:30 +0200 |
commit | 3f5e7b952916a9198afa6bcb85f9ad15187b0a80 (patch) | |
tree | 8029c515b900eb8453a629cc9424778f0cd03859 /home-manager/config | |
parent | Style(treewide): Remove some unused imports (diff) | |
download | nixos-config-3f5e7b952916a9198afa6bcb85f9ad15187b0a80.tar.gz nixos-config-3f5e7b952916a9198afa6bcb85f9ad15187b0a80.zip |
Feat(treewide): Add enable options for secrets and impermanence
Diffstat (limited to '')
-rw-r--r-- | home-manager/config/nheko/default.nix | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/home-manager/config/nheko/default.nix b/home-manager/config/nheko/default.nix index 7e39352b..fd147c0b 100644 --- a/home-manager/config/nheko/default.nix +++ b/home-manager/config/nheko/default.nix @@ -1,10 +1,13 @@ { config, - osConfig, + nixosConfig, + lib, ... }: { - xdg.configFile."nheko/nheko.conf".source = config.lib.file.mkOutOfStoreSymlink osConfig.age.secrets.nheko.path; - programs.nheko = { - enable = true; + config = lib.mkIf nixosConfig.soispha.secrets.enable { + xdg.configFile."nheko/nheko.conf".source = config.lib.file.mkOutOfStoreSymlink nixosConfig.age.secrets.nheko.path; + programs.nheko = { + enable = true; + }; }; } |