dotfiles/nixos/boxes/yoga/hardware-configuration.nix

44 lines
1.3 KiB
Nix
Raw Normal View History

2022-08-23 20:23:07 +01:00
{
2022-12-19 09:09:08 +00:00
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [];
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "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";
2022-12-19 09:09:08 +00:00
boot.initrd.secrets = {"/crypto_keyfile.bin" = null;};
2022-08-23 20:23:07 +01:00
2022-12-19 09:09:08 +00:00
boot.initrd.luks.devices."luks-e6cb9de6-a571-4462-ba9e-6f8dafdd3d21".device = "/dev/disk/by-uuid/e6cb9de6-a571-4462-ba9e-6f8dafdd3d21";
boot.initrd.luks.devices."luks-e6cb9de6-a571-4462-ba9e-6f8dafdd3d21".keyFile = "/crypto_keyfile.bin";
2022-08-23 20:23:07 +01:00
fileSystems."/" = {
device = "/dev/disk/by-uuid/d19afedb-d03b-4a85-9ad7-d99d2ed057c5";
fsType = "ext4";
};
2022-12-19 09:09:08 +00:00
boot.initrd.luks.devices."luks-10f9ad25-cff6-4a5c-ae92-4847e1374b2d".device = "/dev/disk/by-uuid/10f9ad25-cff6-4a5c-ae92-4847e1374b2d";
2022-08-23 20:23:07 +01:00
fileSystems."/boot/efi" = {
device = "/dev/disk/by-uuid/5A4D-EDA3";
fsType = "vfat";
};
2022-12-19 09:09:08 +00:00
swapDevices = [{device = "/dev/disk/by-uuid/5c9ab30b-9128-4c31-b392-785e7acbc0d2";}];
2022-08-23 20:23:07 +01:00
networking.useDHCP = lib.mkDefault true;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
}