Switch zippy to disko.

This commit is contained in:
2024-09-13 12:03:25 +01:00
parent 2638e596e9
commit 85fd5ad6f0
3 changed files with 7 additions and 38 deletions

View File

@@ -4,10 +4,16 @@
../../common/global ../../common/global
../../common/compute-node.nix ../../common/compute-node.nix
../../common/dev-node.nix ../../common/dev-node.nix
../../common/encrypted-btrfs-layout.nix
./hardware.nix ./hardware.nix
]; ];
diskLayout = {
mainDiskDevice = "/dev/disk/by-id/ata-KINGSTON_SKC600MS1024G_50026B7785AE0A92";
#keyDiskDevice = "/dev/disk/by-id/usb-Intenso_Micro_Line_22080777660702-0:0";
keyDiskDevice = "/dev/sdb";
};
networking.hostName = "zippy"; networking.hostName = "zippy";
boot.initrd.luks.devices."luksroot".keyFile = "/dev/sdb";
services.tailscaleAutoconnect.authkey = "tskey-auth-ktKyQ59f2p11CNTRL-ut8E71dLWPXsVtb92hevNX9RTjmk4owBf"; services.tailscaleAutoconnect.authkey = "tskey-auth-ktKyQ59f2p11CNTRL-ut8E71dLWPXsVtb92hevNX9RTjmk4owBf";
} }

View File

@@ -10,43 +10,6 @@
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/e009eed5-90cd-4756-b56f-149d876ca934";
fsType = "btrfs";
options = [ "subvol=root" ];
};
boot.initrd.luks.devices."luksroot".device = "/dev/disk/by-uuid/3fb5eb41-34d3-4ef6-8f3e-5db5a788ceef";
fileSystems."/nix" =
{ device = "/dev/disk/by-uuid/e009eed5-90cd-4756-b56f-149d876ca934";
fsType = "btrfs";
options = [ "subvol=nix" ];
};
fileSystems."/persist" =
{ device = "/dev/disk/by-uuid/e009eed5-90cd-4756-b56f-149d876ca934";
fsType = "btrfs";
options = [ "subvol=persist" ];
};
fileSystems."/var/log" =
{ device = "/dev/disk/by-uuid/e009eed5-90cd-4756-b56f-149d876ca934";
fsType = "btrfs";
options = [ "subvol=log" ];
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/F3C9-A38F";
fsType = "vfat";
options = [ "umask=0077" ]; # to avoid the random seed being world readable
};
swapDevices = [ {
device = "/dev/disk/by-id/ata-KINGSTON_SKC600MS1024G_50026B7785AE0A92-part2";
randomEncryption.enable = true;
}];
nixpkgs.hostPlatform = "x86_64-linux"; nixpkgs.hostPlatform = "x86_64-linux";
hardware.cpu.intel.updateMicrocode = true; hardware.cpu.intel.updateMicrocode = true;
} }

BIN
hosts/zippy/key.bin Normal file

Binary file not shown.