profiles/opal/hardware-configuration.nix (view raw)
1{
2 config,
3 lib,
4 modulesPath,
5 ...
6}:
7{
8 imports = [
9 (modulesPath + "/installer/scan/not-detected.nix")
10 ];
11
12 boot.initrd.availableKernelModules = [
13 "xhci_pci"
14 "thunderbolt"
15 "nvme"
16 ];
17 boot.initrd.kernelModules = [ ];
18 boot.kernelModules = [ "kvm-intel" ];
19 boot.extraModulePackages = [ ];
20
21 fileSystems."/" = {
22 device = "/dev/disk/by-uuid/13f110b2-0cb6-4f22-a3c1-5d764d0ba9f7";
23 fsType = "ext4";
24 };
25
26 fileSystems."/boot" = {
27 device = "/dev/disk/by-uuid/60C6-4ADE";
28 fsType = "vfat";
29 };
30
31 swapDevices = [ { device = "/dev/disk/by-uuid/7919a726-42b5-4b5d-b8f5-7f556049ebc1"; } ];
32
33 networking.useDHCP = lib.mkDefault true;
34
35 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
36 powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
37 hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
38}