feat: test persist module in multi-user scenario
This commit is contained in:
parent
4272509524
commit
89ce47d4da
@ -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";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user