summaryrefslogtreecommitdiff
path: root/users.nix
diff options
context:
space:
mode:
authorandromeda <andromeda@lenovo>2025-12-31 14:04:44 +0100
committerandromeda <andromeda@lenovo>2025-12-31 14:04:44 +0100
commit92c4e1f7cfae7c40b1cfe992776ef5e7f8aad1f3 (patch)
tree14c740535c18d280f4800da4e35707c74239f7b0 /users.nix
parent51d94760423581649a1c0b94701cf1622dac9aee (diff)
put user-level impermanence settings in users.nix
Diffstat (limited to 'users.nix')
-rw-r--r--users.nix32
1 files changed, 32 insertions, 0 deletions
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"
+ ];
+ };
+ }
+ );
}