summaryrefslogtreecommitdiff
path: root/hosts/luna/hardware-configuration.nix
diff options
context:
space:
mode:
authorDominik Kaiser2025-02-21 12:40:34 +0000
committerDominik Kaiser2025-02-21 12:40:34 +0000
commitbe920eee853c7f0d1f77f0c5d5b1d16d5c6ff711 (patch)
treee0761cc69bd57a55d97cf8554f0402be50d75472 /hosts/luna/hardware-configuration.nix
parentb5043ef5261d195cab2148b5b0bfbfe1717e9835 (diff)
downloadnixos-be920eee853c7f0d1f77f0c5d5b1d16d5c6ff711.tar.gz
nixos-be920eee853c7f0d1f77f0c5d5b1d16d5c6ff711.zip
Add host luna
Diffstat (limited to 'hosts/luna/hardware-configuration.nix')
-rw-r--r--hosts/luna/hardware-configuration.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/hosts/luna/hardware-configuration.nix b/hosts/luna/hardware-configuration.nix
new file mode 100644
index 0000000..ab7e50a
--- /dev/null
+++ b/hosts/luna/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" "nvme" "rtsx_pci_sdmmc" ];
+ boot.initrd.kernelModules = [ ];
+ boot.kernelModules = [ "kvm-intel" ];
+ boot.extraModulePackages = [ ];
+
+ fileSystems."/" =
+ { device = "/dev/disk/by-uuid/585efffd-d0cb-4500-8daa-c5b8afe0222e";
+ fsType = "ext4";
+ };
+
+ fileSystems."/boot" =
+ { device = "/dev/disk/by-uuid/920C-3145";
+ fsType = "vfat";
+ options = [ "fmask=0022" "dmask=0022" ];
+ };
+
+ 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.docker0.useDHCP = lib.mkDefault true;
+ # networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true;
+
+ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+ hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
+}