Changed location of some persistence files

This commit is contained in:
Jan-Bulthuis 2025-05-29 18:32:08 +02:00
parent 81c37abadd
commit 68c241f31a
2 changed files with 9 additions and 2 deletions

View File

@ -19,6 +19,14 @@ in
modules = {
bootloader.enable = mkDefault true;
ssh.enable = mkDefault true;
# Setup sensible default persistent data
impermanence.directories = [
"/var/lib/nixos"
];
impermanence.files = [
"/etc/shadow"
];
};
# Localization

View File

@ -25,7 +25,6 @@ in
};
impermanence = {
enable = true;
directories = [ "/var/lib/nixos" ];
resetScript = ''
# Revert to the blank state for the root directory
zfs rollback -r tank/root@blank
@ -39,7 +38,7 @@ in
initialPassword = "local";
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKKxoQSxfYqf9ITN8Fhckk8WbY4dwtBAXOhC9jxihJvq jan@bulthuis.dev"
"ssh-ed25519 jan@bulthuis.dev"
];
};