aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2019-05-01 01:07:17 -0300
committerEuAndreh <eu@euandre.org>2019-05-01 01:07:17 -0300
commit335da8b586b8426ebe3a9160f63839a71f007950 (patch)
tree1f2f1ae4925700997e5dbb376232ba6603ab35ae
parentUpdate system.stateVersion from 18.09 to 19.03. (diff)
downloaddotfiles-335da8b586b8426ebe3a9160f63839a71f007950.tar.gz
dotfiles-335da8b586b8426ebe3a9160f63839a71f007950.tar.xz
Add backup nixos/hardware-configuration.nix.
-rw-r--r--nixos/hardware-configuration.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/nixos/hardware-configuration.nix b/nixos/hardware-configuration.nix
new file mode 100644
index 0000000..2670a09
--- /dev/null
+++ b/nixos/hardware-configuration.nix
@@ -0,0 +1,31 @@
+# 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, ... }:
+
+{
+ imports =
+ [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
+ ];
+
+ boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "usb_storage" "sd_mod" "sr_mod" ];
+ boot.kernelModules = [ "kvm-intel" ];
+ boot.extraModulePackages = [ ];
+
+ fileSystems."/" =
+ { device = "/dev/disk/by-uuid/337ad499-b479-4fe9-ad98-0a9b2b92f4e9";
+ fsType = "ext4";
+ };
+
+ fileSystems."/boot" =
+ { device = "/dev/disk/by-uuid/0975-7A26";
+ fsType = "vfat";
+ };
+
+ swapDevices =
+ [ { device = "/dev/disk/by-uuid/c08158aa-677a-4984-83fe-c938edb7021e"; }
+ ];
+
+ nix.maxJobs = lib.mkDefault 4;
+ powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
+}