Set up disko zfs encrypted root for 'vm' host

This commit is contained in:
2025-10-04 23:17:12 +02:00
parent bfa17953a8
commit c5d81f1e9e
6 changed files with 167 additions and 13 deletions

View File

@@ -6,6 +6,7 @@
imports =
[
./hard.nix
./disk.nix
../../modules/bootloader.nix
../../modules/networking.nix
../../modules/users.nix

1
hosts/vm/disk.nix Normal file
View File

@@ -0,0 +1 @@
import ../../modules/disko.zfs-encrypted-root.nix

View File

@@ -13,15 +13,6 @@
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/7d406784-bf6b-420e-a956-134f719c8206";
fsType = "ext4";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/4cbaffdb-0ca2-4735-87d0-eefe994f0e18"; }
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction