diff options
author | William Carroll <wpcarro@gmail.com> | 2021-12-16T05·06-0500 |
---|---|---|
committer | wpcarro <wpcarro@gmail.com> | 2021-12-16T22·07+0000 |
commit | 53e070fa247c6bd09a5ef0b47084d4463eebb554 (patch) | |
tree | adac4c4badecc23bbac9d804b723c7dd581ad94b /users/wpcarro | |
parent | 1ca4c6d2beb5ea42a5b69d91cd84ec3e2011c428 (diff) |
chore(wpcarro/marcus): Format hardware.nix r/3273
Make some of the auto-generated code look a bit more like human-generated code. Change-Id: I07f543b66275dc8be9db6d8106ef6045541574d3 Reviewed-on: https://cl.tvl.fyi/c/depot/+/4352 Tested-by: BuildkiteCI Reviewed-by: wpcarro <wpcarro@gmail.com>
Diffstat (limited to 'users/wpcarro')
-rw-r--r-- | users/wpcarro/nixos/marcus/default.nix | 4 | ||||
-rw-r--r-- | users/wpcarro/nixos/marcus/hardware.nix | 35 |
2 files changed, 17 insertions, 22 deletions
diff --git a/users/wpcarro/nixos/marcus/default.nix b/users/wpcarro/nixos/marcus/default.nix index ef1e60bd780d..5eb41d4436a2 100644 --- a/users/wpcarro/nixos/marcus/default.nix +++ b/users/wpcarro/nixos/marcus/default.nix @@ -7,9 +7,7 @@ let briefcasePath = "$HOME/depot/users/wpcarro"; }; in { - imports = [ - ./hardware.nix - ]; + imports = [ ./hardware.nix ]; boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; diff --git a/users/wpcarro/nixos/marcus/hardware.nix b/users/wpcarro/nixos/marcus/hardware.nix index 2225e9452d80..a5735bc8e22b 100644 --- a/users/wpcarro/nixos/marcus/hardware.nix +++ b/users/wpcarro/nixos/marcus/hardware.nix @@ -1,31 +1,28 @@ -# 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") - ]; + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + ]; boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; + boot.initrd.kernelModules = []; boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ ]; + boot.extraModulePackages = []; - fileSystems."/" = - { device = "/dev/disk/by-uuid/b8b911ee-e9b9-40ea-89d6-551f11350e7b"; - fsType = "ext4"; - }; + fileSystems."/" = { + device = "/dev/disk/by-uuid/b8b911ee-e9b9-40ea-89d6-551f11350e7b"; + fsType = "ext4"; + }; - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/A7EA-369C"; - fsType = "vfat"; - }; + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/A7EA-369C"; + fsType = "vfat"; + }; - swapDevices = - [ { device = "/dev/disk/by-uuid/b87e2b8f-c835-4179-a428-fe466a846df0"; } - ]; + 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; |