feat: test persist module in multi-user scenario

This commit is contained in:
Dmitriy Kholkin 2025-03-02 16:50:41 +03:00
parent 4272509524
commit 89ce47d4da
Signed by: AtaraxiaDev
GPG Key ID: FD266B810DF48DF2

View File

@ -27,6 +27,9 @@
hashedPassword = "$y$j9T$ZC44T3XYOPapB26cyPsA4.$8wlYEbwXFszC9nrg0vafqBZFLMPabXdhnzlT3DhUit6";
shell = pkgs.bash;
};
users.users.test = {
isNormalUser = true;
};
boot.supportedFilesystems = [ "zfs" ];
boot.zfs.forceImportRoot = false;
@ -37,5 +40,35 @@
sing-box
];
# Test persist module
persist.enable = true;
persist.cache.clean.enable = true;
persist.state.directories = [ "/etc" ];
persist.cache.directories = [ "/cache" ];
home-manager.users.ataraxia = {
home.stateVersion = "24.11";
persist.enable = true;
persist.cache.clean.enable = false;
persist.state.directories = [ "test-home" ];
persist.cache.directories = [
"test-1"
"test-2"
];
persist.state.files = [ "home" ];
};
home-manager.users.test = {
home.stateVersion = "24.11";
persist.enable = true;
persist.cache.clean.enable = true;
persist.cache.directories = [
"test-3"
"test-4"
];
persist.cache.files = [
"home"
"home3"
];
};
system.stateVersion = "24.11";
}