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/impermanence/default.nix | 42 ++++++++++++++++++++--------------- 1 file changed, 24 insertions(+), 18 deletions(-) (limited to 'home-manager/impermanence/default.nix') 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" + ]; + }; }; } -- cgit 1.4.1