summaryrefslogtreecommitdiff
path: root/hosts/hardware-configuration/snorlex.nix
diff options
context:
space:
mode:
authorJasper Ras <jaspert.ras@gmail.com>2025-02-01 14:57:39 +0100
committerJasper Ras <jaspert.ras@gmail.com>2025-02-01 14:57:39 +0100
commit24eb87d36b150f6364b843bbd9483c8586755354 (patch)
tree21a5153db1abf964005d54278c867485e3d5524c /hosts/hardware-configuration/snorlex.nix
parent6906281953c068a16ef4da4f2febacf2ef171610 (diff)
roles & snorlex
Diffstat (limited to 'hosts/hardware-configuration/snorlex.nix')
-rw-r--r--hosts/hardware-configuration/snorlex.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/hosts/hardware-configuration/snorlex.nix b/hosts/hardware-configuration/snorlex.nix
new file mode 100644
index 0000000..77df044
--- /dev/null
+++ b/hosts/hardware-configuration/snorlex.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, modulesPath, ... }:
+
+{
+ imports =
+ [ (modulesPath + "/installer/scan/not-detected.nix")
+ ];
+
+ boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "uas" "sd_mod" ];
+ boot.initrd.kernelModules = [ ];
+ boot.kernelModules = [ "kvm-intel" ];
+ boot.extraModulePackages = [ ];
+
+ fileSystems."/" =
+ { device = "/dev/disk/by-uuid/f8724a86-f440-49a2-a6df-8183b451449c";
+ fsType = "ext4";
+ };
+
+ swapDevices = [ ];
+
+ # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
+ # (the default) this is the recommended approach. When using systemd-networkd it's
+ # still possible to use this option, but it's recommended to use it in conjunction
+ # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
+ networking.useDHCP = lib.mkDefault true;
+ # networking.interfaces.eno1.useDHCP = lib.mkDefault true;
+
+ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+ hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
+}