Add disko support #2

Merged
Jan merged 10 commits from disko into main 2025-05-29 16:33:34 +00:00
2 changed files with 9 additions and 2 deletions
Showing only changes of commit 68c241f31a - Show all commits

View File

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

View File

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