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 3 additions and 2 deletions
Showing only changes of commit 793015646d - Show all commits

View File

@ -34,7 +34,7 @@
compression = "zstd"; compression = "zstd";
}; };
mountpoint = null; mountpoint = null;
postCreateHook = "zfs list -t snapshot -H -o name | grep -E '^tank@blank$' || zfs snapshot tank@blank"; postCreateHook = "zfs list -t snapshot -H -o name | grep -E '^tank@blank$' || zfs snapshot -r tank@blank && zfs holds -r tank@blank";
datasets = { datasets = {
root = { root = {

View File

@ -28,6 +28,7 @@ in
# Admin users # Admin users
users.users.local = { users.users.local = {
initialPassword = "local";
extraGroups = [ "wheel" ]; extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKKxoQSxfYqf9ITN8Fhckk8WbY4dwtBAXOhC9jxihJvq jan@bulthuis.dev" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKKxoQSxfYqf9ITN8Fhckk8WbY4dwtBAXOhC9jxihJvq jan@bulthuis.dev"
@ -40,7 +41,7 @@ in
# Machine platform # Machine platform
nixpkgs.hostPlatform = "x86_64-linux"; nixpkgs.hostPlatform = "x86_64-linux";
# Set hostid # Set hostid for ZFS
networking.hostId = "deadbeef"; networking.hostId = "deadbeef";
# Hardware configuration # Hardware configuration