diff options
Diffstat (limited to 'home-manager/impermanence/default.nix')
-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" + ]; + }; }; } |