aboutsummaryrefslogtreecommitdiff
path: root/hardware-configuration.nix
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2020-12-19 21:18:07 +0530
committerAkshay Nair <phenax5@gmail.com>2020-12-19 21:18:07 +0530
commitb71a82de1da71ffa7adea533e29f8fca618f0aff (patch)
tree14c7e789a598f0599dd4f1e2cd2535386781fbd7 /hardware-configuration.nix
downloadnixos-config-b71a82de1da71ffa7adea533e29f8fca618f0aff.tar.gz
nixos-config-b71a82de1da71ffa7adea533e29f8fca618f0aff.zip
init commit
Diffstat (limited to 'hardware-configuration.nix')
-rw-r--r--hardware-configuration.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/hardware-configuration.nix b/hardware-configuration.nix
new file mode 100644
index 0000000..c9f4180
--- /dev/null
+++ b/hardware-configuration.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" "ahci" "nvme" "usb_storage" "sd_mod" ];
+ boot.initrd.kernelModules = [];
+ boot.kernelModules = ["kvm-intel"];
+ boot.extraModulePackages = [];
+ boot.kernelParams = [ "i8042.nopnp=1" "pci=nocrs" "quiet" "splash" ];
+
+ fileSystems."/" =
+ { device = "/dev/disk/by-uuid/d86af9a3-3627-4ed5-aa8c-152673d2397c";
+ fsType = "ext4";
+ };
+
+ fileSystems."/boot" =
+ { device = "/dev/disk/by-uuid/2A7B-5D40";
+ fsType = "vfat";
+ };
+
+ swapDevices =
+ [ { device = "/dev/disk/by-uuid/9884c440-8c3a-437f-a7b7-3c0d5bc7fe3f"; }
+ ];
+
+ powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
+}