Updated base vm config

This commit is contained in:
Jan-Bulthuis 2025-05-29 15:10:10 +02:00
parent 43f472fe88
commit 793015646d
2 changed files with 3 additions and 2 deletions

View File

@ -34,7 +34,7 @@
compression = "zstd";
};
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 = {
root = {

View File

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