diff options
Diffstat (limited to '')
-rw-r--r-- | home-manager/config/nheko/default.nix | 11 | ||||
-rw-r--r-- | home-manager/impermanence/default.nix | 42 |
2 files changed, 31 insertions, 22 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; + }; }; } diff --git a/home-manager/impermanence/default.nix b/home-manager/impermanence/default.nix index 59cea605..90b2152b 100644 --- a/home-manager/impermanence/default.nix +++ b/home-manager/impermanence/default.nix @@ -1,24 +1,30 @@ -{...}: { - home.persistence."/srv/home/soispha" = { - allowOther = true; - directories = [ - ".local/share" +{ + lib, + nixosConfig, + ... +}: { + config = lib.mkIf nixosConfig.soispha.impermanence.enable { + home.persistence."/srv/home/soispha" = { + allowOther = true; + directories = [ + ".local/share" - ".local/state/nvim" - ".local/state/wireplumber" + ".local/state/nvim" + ".local/state/wireplumber" - ".config/Signal" - ".config/Element" + ".config/Signal" + ".config/Element" - ".cache" - ".mozilla" + ".cache" + ".mozilla" - "media" - "repos" - "school" - ]; - files = [ - ".local/state/lesshst" - ]; + "media" + "repos" + "school" + ]; + files = [ + ".local/state/lesshst" + ]; + }; }; } |