2022-08-23 20:23:07 +01:00
|
|
|
{
|
2022-12-19 09:09:08 +00:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
modulesPath,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = [];
|
|
|
|
|
2023-01-05 23:00:50 +00:00
|
|
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
|
|
boot.extraModulePackages = [ ];
|
2022-08-23 20:23:07 +01:00
|
|
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
boot.loader.efi.efiSysMountPoint = "/boot/efi";
|
|
|
|
|
2023-01-05 23:00:50 +00:00
|
|
|
# Setup keyfile
|
|
|
|
boot.initrd.secrets = {
|
|
|
|
"/crypto_keyfile.bin" = null;
|
2022-08-23 20:23:07 +01:00
|
|
|
};
|
2023-01-05 23:00:50 +00:00
|
|
|
fileSystems."/" =
|
|
|
|
{ device = "/dev/disk/by-uuid/a43a1c42-9166-47dc-9e78-20e0975c75c5";
|
|
|
|
fsType = "btrfs";
|
|
|
|
options = [ "subvol=@" ];
|
|
|
|
};
|
2022-08-23 20:23:07 +01:00
|
|
|
|
2023-01-05 23:00:50 +00:00
|
|
|
boot.initrd.luks.devices."luks-99498047-118a-484a-8c2a-987ca68d4943".device = "/dev/disk/by-uuid/99498047-118a-484a-8c2a-987ca68d4943";
|
2022-08-23 20:23:07 +01:00
|
|
|
|
2023-01-05 23:00:50 +00:00
|
|
|
fileSystems."/boot/efi" =
|
|
|
|
{ device = "/dev/disk/by-uuid/F179-A4EA";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
2022-08-23 20:23:07 +01:00
|
|
|
|
2023-01-05 23:00:50 +00:00
|
|
|
swapDevices = [ ];
|
2022-08-23 20:23:07 +01:00
|
|
|
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
|
|
|
2023-01-05 23:00:50 +00:00
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
2022-08-23 20:23:07 +01:00
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
2023-01-05 23:00:50 +00:00
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault true;
|
2022-08-23 20:23:07 +01:00
|
|
|
}
|