diff --git a/hosts/tesco.nix b/hosts/tesco.nix index 2286384..a3068ae 100644 --- a/hosts/tesco.nix +++ b/hosts/tesco.nix @@ -30,26 +30,34 @@ networking.networkmanager.enable = true; - boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; + boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "bcache" ]; boot.extraModulePackages = [ ]; - boot.supportedFilesystems = ["bcachefs"]; - boot.initrd.supportedFilesystems = ["bcachefs"]; + boot.initrd.luks.devices = { + hdd-root = { + device = "/dev/disk/by-uuid/ed9e294f-514f-48c1-ad88-1a4b5b65da37"; + preLVM = true; + }; + ssd-root = { + device = "/dev/disk/by-uuid/9e30b5f5-9485-45e9-8ee5-129ff17a2562"; + preLVM = true; + allowDiscards = true; + }; + }; fileSystems."/" = - { device = "/dev/sda2:/dev/sdb1"; - fsType = "bcachefs"; + { device = "/dev/bcache0"; + fsType = "ext4"; }; fileSystems."/boot" = - { device = "/dev/disk/by-uuid/1367-B5C7"; + { device = "/dev/disk/by-label/BOOT"; fsType = "vfat"; }; swapDevices = - [ { device = "/dev/disk/by-uuid/48286351-d82d-40aa-b4ed-14b742b31ea0"; } - { device = "/dev/disk/by-uuid/8da30234-1932-4ec2-bb30-6ab268c669ee"; } + [ { device = "/dev/disk/by-label/ssd-swap"; } ]; }