about summary refs log tree commit diff
path: root/hardware/laptop/hardware.nix
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2024-12-30 11:35:14 +0100
committerBaitinq <[email protected]>2024-12-30 11:35:14 +0100
commitdce2c3c26a2ff9770bbba2a00471c03ab321c472 (patch)
tree91ce56182bab4dee87fd663ea70880446a15f7e7 /hardware/laptop/hardware.nix
parentFont: Change font style pt 1000 (diff)
downloadnixos-config-dce2c3c26a2ff9770bbba2a00471c03ab321c472.tar.gz
nixos-config-dce2c3c26a2ff9770bbba2a00471c03ab321c472.tar.bz2
nixos-config-dce2c3c26a2ff9770bbba2a00471c03ab321c472.zip
fmt
Diffstat (limited to '')
-rw-r--r--hardware/laptop/hardware.nix26
1 files changed, 15 insertions, 11 deletions
diff --git a/hardware/laptop/hardware.nix b/hardware/laptop/hardware.nix
index bbd684b..bc1f3cb 100644
--- a/hardware/laptop/hardware.nix
+++ b/hardware/laptop/hardware.nix
@@ -1,28 +1,33 @@
-{ config, lib, inputs, pkgs, modulesPath, ... }:
-let
-  powerMode = "performance";
-in
 {
+  config,
+  lib,
+  inputs,
+  pkgs,
+  modulesPath,
+  ...
+}: let
+  powerMode = "performance";
+in {
   imports = [
     ./disks.nix
   ];
 
   boot = {
     initrd = {
-      availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "sd_mod" "sdhci_pci" ];
-      kernelModules = [ ];
+      availableKernelModules = ["xhci_pci" "ahci" "usbhid" "sd_mod" "sdhci_pci"];
+      kernelModules = [];
     };
     kernelPackages = pkgs.linuxPackages_latest;
-    kernelModules = [ "kvm_intel" ];
-    extraModulePackages = [ ];
-    kernelParams = [ "net.ifnames=0" "biosdevname=0" "iomem=relaxed" "mitigations=off" ];
+    kernelModules = ["kvm_intel"];
+    extraModulePackages = [];
+    kernelParams = ["net.ifnames=0" "biosdevname=0" "iomem=relaxed" "mitigations=off"];
   };
 
   powerManagement.cpuFreqGovernor = powerMode;
 
   services = {
     xserver = {
-      videoDrivers = [ "nvidia" ];
+      videoDrivers = ["nvidia"];
 
       # Enable touchpad support (enabled default in most desktopManager).
       synaptics = {
@@ -57,5 +62,4 @@ in
       };
     };
   };
-
 }