From 3f5e7b952916a9198afa6bcb85f9ad15187b0a80 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sat, 29 Jul 2023 21:58:49 +0200 Subject: Feat(treewide): Add enable options for secrets and impermanence --- home-manager/config/nheko/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'home-manager/config') 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; + }; }; } -- cgit 1.4.1