summaryrefslogtreecommitdiff
path: root/hosts/local/fw11/hardware-configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/local/fw11/hardware-configuration.nix')
-rw-r--r--hosts/local/fw11/hardware-configuration.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/hosts/local/fw11/hardware-configuration.nix b/hosts/local/fw11/hardware-configuration.nix
new file mode 100644
index 0000000..6b4e8bf
--- /dev/null
+++ b/hosts/local/fw11/hardware-configuration.nix
@@ -0,0 +1,39 @@
+# 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" "thunderbolt" "nvme" "usb_storage" "sd_mod" ];
+ boot.initrd.kernelModules = [ "i915" "8821cu"];
+ boot.kernelModules = [ "kvm-intel" ];
+ boot.extraModulePackages = [ config.boot.kernelPackages.rtl8821cu ];
+ # to modeswitch usb dongle sudo usb_modeswitch -KW -v 0bda -p 1a2b
+
+ fileSystems."/" =
+ { device = "/dev/disk/by-uuid/349f55f5-8726-47be-826c-33ae8da92346";
+ fsType = "ext4";
+ };
+
+ fileSystems."/boot" =
+ { device = "/dev/disk/by-uuid/0739-1303";
+ fsType = "vfat";
+ };
+
+ swapDevices =
+ [ { device = "/dev/disk/by-uuid/5d13663a-3177-4338-b07a-4b0e10581084"; }
+ ];
+
+ # The global useDHCP flag is deprecated, therefore explicitly set to false here.
+ # Per-interface useDHCP will be mandatory in the future, so this generated config
+ # replicates the default behaviour.
+ networking.useDHCP = lib.mkDefault false;
+ networking.interfaces.wlp170s0.useDHCP = lib.mkDefault true;
+
+ powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
+ hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
+}