nixos-config/hardware/pilot1.nix

37 lines
776 B
Nix
Raw Permalink Normal View History

2024-05-26 16:45:38 +02:00
{
config,
lib,
pkgs,
...
}:
2021-08-10 15:53:23 +02:00
{
2024-05-26 16:45:38 +02:00
boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"usbhid"
"usb_storage"
"sd_mod"
"rtsx_pci_sdmmc"
];
2021-08-10 15:53:23 +02:00
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
2022-01-01 02:13:02 +01:00
fileSystems."/" = {
device = "/dev/disk/by-uuid/155b5acf-a0f8-4615-ae03-43a5c193f772";
fsType = "ext4";
};
2021-08-10 15:53:23 +02:00
2022-01-01 02:13:02 +01:00
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/31C7-CBD1";
fsType = "vfat";
};
2021-08-10 15:53:23 +02:00
2024-05-26 16:45:38 +02:00
swapDevices = [ { device = "/dev/disk/by-uuid/397a1a92-596f-421b-99e1-c9b2cb821309"; } ];
2021-08-10 15:53:23 +02:00
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
2024-05-26 16:45:38 +02:00
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
2021-08-10 15:53:23 +02:00
}