diff options
author | William Carroll <wpcarro@gmail.com> | 2021-12-15T23·40-0500 |
---|---|---|
committer | wpcarro <wpcarro@gmail.com> | 2021-12-16T22·07+0000 |
commit | 1ca4c6d2beb5ea42a5b69d91cd84ec3e2011c428 (patch) | |
tree | c3328fe2cc1fa06572828c0fe0ff6615861549dd /users/wpcarro/nixos/marcus/hardware.nix | |
parent | ca56cb2d9f3cf325cec61a394e16a8bdaedba4e2 (diff) |
feat(wpcarro/marcus): Add marcus to the depot r/3272
me: marcus, meet depot. depot, meet marcus. Change-Id: Ic6a25ac85e4c7f6dfea2a42b46a4400f92df70a2 Reviewed-on: https://cl.tvl.fyi/c/depot/+/4351 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi>
Diffstat (limited to 'users/wpcarro/nixos/marcus/hardware.nix')
-rw-r--r-- | users/wpcarro/nixos/marcus/hardware.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/users/wpcarro/nixos/marcus/hardware.nix b/users/wpcarro/nixos/marcus/hardware.nix new file mode 100644 index 000000000000..2225e9452d80 --- /dev/null +++ b/users/wpcarro/nixos/marcus/hardware.nix @@ -0,0 +1,32 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/b8b911ee-e9b9-40ea-89d6-551f11350e7b"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/A7EA-369C"; + fsType = "vfat"; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/b87e2b8f-c835-4179-a428-fe466a846df0"; } + ]; + + powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} |