summaryrefslogtreecommitdiff
path: root/users.nix
diff options
context:
space:
mode:
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"
+ ];
+ };
+ }
+ );
}