From 7c3d7e4989a83d188a013f9b1a8492f607958b6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 29 Jul 2022 08:39:20 +0200 Subject: nixos: fix initrd for errol --- nixos/machine/errol.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nixos/machine/errol.nix b/nixos/machine/errol.nix index 91d6976..5dd87a7 100644 --- a/nixos/machine/errol.nix +++ b/nixos/machine/errol.nix @@ -14,6 +14,11 @@ with lib; }; }; + boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "usb_storage"]; + boot.kernelModules = ["kvm-amd"]; + + hardware.cpu.amd.updateMicrocode = true; + cynerd.autounlock = { "encroot" = "/dev/disk/by-uuid/c07e929a-6eac-4f99-accf-f7cb3431290c"; "enchdd" = "/dev/disk/by-uuid/7fee3cda-efa0-47cd-8832-fdead9a7e6db"; @@ -21,18 +26,22 @@ with lib; fileSystems = { "/" = { device = "/dev/mapper/encroot"; + fsType = "btrfs"; options = ["compress=lzo" "subvol=@nix"]; }; "/home" = { device = "/dev/mapper/encroot"; + fsType = "btrfs"; options = ["compress=lzo" "subvol=@home"]; }; "/boot" = { device = "/dev/disk/by-uuid/87B0-A1D5"; + fsType = "vfat"; }; "/home2" = { device = "/dev/mapper/enchdd"; + fsType = "btrfs"; options = ["compress=lzo" "subvol=@home"]; }; }; -- cgit v1.2.3