From 92c4e1f7cfae7c40b1cfe992776ef5e7f8aad1f3 Mon Sep 17 00:00:00 2001 From: andromeda Date: Wed, 31 Dec 2025 14:04:44 +0100 Subject: put user-level impermanence settings in users.nix --- users.nix | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'users.nix') diff --git a/users.nix b/users.nix index 7902ca4..fa7366f 100644 --- a/users.nix +++ b/users.nix @@ -36,4 +36,36 @@ in { ]; }; }; + environment.persistence."/nix/persist".users = lib.mkIf config.environment.persistence."/nix/persist".enable ( + builtins.mapAttrs + (name: value: lib.mkIf (builtins.elem name machine.users) value) + { + "andromeda" = { + directories = [ + ".backups" + ".local/share/Anki2" + ".local/share/chat.fluffy.fluffychat" + ".local/share.zoxide" + ".ssh" + "conf" + "Downloads" + "pp" + ]; + files = [ + ".bash_history" + ".brush_history" + ]; + }; + "mtgmonkey" = { + directories = [ + ".local/share/zoxide" + ".ssh" + ]; + files = [ + ".bash_history" + ".brush_history" + ]; + }; + } + ); } -- cgit v1.3