diff options
| author | andromeda <andromeda@lenovo> | 2025-12-31 14:04:44 +0100 |
|---|---|---|
| committer | andromeda <andromeda@lenovo> | 2025-12-31 14:04:44 +0100 |
| commit | 92c4e1f7cfae7c40b1cfe992776ef5e7f8aad1f3 (patch) | |
| tree | 14c740535c18d280f4800da4e35707c74239f7b0 /users.nix | |
| parent | 51d94760423581649a1c0b94701cf1622dac9aee (diff) | |
put user-level impermanence settings in users.nix
Diffstat (limited to 'users.nix')
| -rw-r--r-- | users.nix | 32 |
1 files changed, 32 insertions, 0 deletions
@@ -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" + ]; + }; + } + ); } |
