nix-config/hosts/loki/hardware-configuration.nix

40 lines
1 KiB
Nix
Raw Normal View History

2023-09-19 17:05:08 +00:00
{
imports = [
../common/optional/encrypted-root.nix
];
boot = {
initrd = {
2023-09-19 17:05:08 +00:00
availableKernelModules = [ "ahci" "xhci_pci" "nvme" "thunderbolt" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
luks.devices."luks-fae33851-b8d8-430b-8c6a-cd18675b8252".device = "/dev/disk/by-uuid/fae33851-b8d8-430b-8c6a-cd18675b8252";
};
2023-09-19 17:05:08 +00:00
kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ];
loader = {
systemd-boot = {
enable = true;
consoleMode = "max";
};
efi.canTouchEfiVariables = true;
};
};
2023-09-19 17:05:08 +00:00
fileSystems."/" =
{ device = "/dev/disk/by-uuid/88c63d59-2b86-4336-b8c7-1a4e6da1b443";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/2EF0-3AA5";
fsType = "vfat";
};
swapDevices = [{
2023-09-19 17:05:08 +00:00
device = "/dev/disk/by-uuid/e7cc3e9c-2acc-4bbd-bc2f-a67a08a94db7";
}];
nixpkgs.hostPlatform.system = "x86_64-linux";
2023-09-19 17:05:08 +00:00
hardware.cpu.intel.updateMicrocode = true;
powerManagement.cpuFreqGovernor = "powersave";
}