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/impermanence | |
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 'home-manager/impermanence')
-rw-r--r-- | home-manager/impermanence/default.nix | 42 |
1 files changed, 24 insertions, 18 deletions
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" + ]; + }; }; } |