all repos — char/flake @ 5756068a8eec9b8bf2178c876eb1d653dd691257

nixos flake

profiles/opal/hardware-configuration.nix (view raw)

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