persistance working

This commit is contained in:
Sam 2024-05-17 09:38:40 +01:00
parent 234fb16de9
commit 58d5e6b58f
2 changed files with 18 additions and 18 deletions

View File

@ -22,7 +22,24 @@ in
programs.zsh.enable = true; programs.zsh.enable = true;
#home-manager.users.sam = fileSystems."/persist".neededForBoot = true;
environment.persistence."/persist" = {
hideMounts = true;
directories = [
"/etc/nixos"
"/var/log"
"/var/lib/nixos"
"/var/lib/systemd/coredump"
"/etc/NetworkManager/system-connections"
];
users.media = {
directories = [
"keep"
".ssh"
];
};
};
home-manager = { home-manager = {
extraSpecialArgs = { inherit inputs; }; extraSpecialArgs = { inherit inputs; };
users = { users = {

View File

@ -18,23 +18,6 @@
]; ];
fileSystems."/persist".neededForBoot = true;
environment.persistence."/persist" = {
hideMounts = true;
directories = [
"/etc/nixos"
"/var/log"
"/var/lib/nixos"
"/var/lib/systemd/coredump"
"/etc/NetworkManager/system-connections"
];
users.media = {
directories = [
".ssh"
];
};
};
nixpkgs = { nixpkgs = {
overlays = [ overlays = [
outputs.overlays.additions outputs.overlays.additions