about summary refs log tree commit diff
path: root/hardware/pc/hardware.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hardware/pc/hardware.nix')
-rw-r--r--hardware/pc/hardware.nix26
1 files changed, 15 insertions, 11 deletions
diff --git a/hardware/pc/hardware.nix b/hardware/pc/hardware.nix
index b62a323..df982bf 100644
--- a/hardware/pc/hardware.nix
+++ b/hardware/pc/hardware.nix
@@ -1,8 +1,13 @@
-{ config, lib, inputs, pkgs, modulesPath, ... }:
-let
-  powerMode = "performance";
-in
 {
+  config,
+  lib,
+  inputs,
+  pkgs,
+  modulesPath,
+  ...
+}: let
+  powerMode = "performance";
+in {
   imports = [
     ./disks.nix
     "${modulesPath}/profiles/all-hardware.nix"
@@ -10,20 +15,20 @@ in
 
   boot = {
     initrd = {
-      availableKernelModules = [ "xhci_pci" "usb_storage" "sd_mod" "sdhci_acpi" "aesni_intel" "cryptd" ];
-      kernelModules = [ ];
+      availableKernelModules = ["xhci_pci" "usb_storage" "sd_mod" "sdhci_acpi" "aesni_intel" "cryptd"];
+      kernelModules = [];
     };
     kernelPackages = pkgs.linuxPackages_latest;
-    kernelModules = [ "kvm_intel" "amdgpu" ];
-    extraModulePackages = [ ];
-    kernelParams = [ "boot.shell_on_fail" "net.ifnames=0" "biosdevname=0" "iomem=relaxed" "mitigations=off" ];
+    kernelModules = ["kvm_intel" "amdgpu"];
+    extraModulePackages = [];
+    kernelParams = ["boot.shell_on_fail" "net.ifnames=0" "biosdevname=0" "iomem=relaxed" "mitigations=off"];
   };
 
   powerManagement.cpuFreqGovernor = powerMode;
 
   services = {
     xserver = {
-      videoDrivers = [ "amdgpu" ];
+      videoDrivers = ["amdgpu"];
     };
     fstrim.enable = true;
   };
@@ -35,5 +40,4 @@ in
       enable = true;
     };
   };
-
 }