From 029658ee78bdac2b933dc67c492f7f17358e2254 Mon Sep 17 00:00:00 2001 From: scouckel Date: Sun, 14 Jun 2026 23:15:07 -0400 Subject: shar to dendritic? --- modules/hosts/shar/hardware.nix | 47 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 modules/hosts/shar/hardware.nix (limited to 'modules/hosts/shar/hardware.nix') diff --git a/modules/hosts/shar/hardware.nix b/modules/hosts/shar/hardware.nix new file mode 100644 index 0000000..7431695 --- /dev/null +++ b/modules/hosts/shar/hardware.nix @@ -0,0 +1,47 @@ +{ + self, + inputs, + ... +}: { + flake.nixosModules.sharHardware = { + config, + lib, + pkgs, + modulesPath, + ... + }: { + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = ["ahci" "xhci_pci" "ehci_pci" "nvme" "usbhid" "usb_storage" "sd_mod"]; + boot.initrd.kernelModules = []; + boot.kernelModules = ["kvm-intel"]; + boot.extraModulePackages = []; + + fileSystems."/" = { + device = "/dev/disk/by-uuid/737de4e0-554e-4175-a454-677cf03dbada"; + fsType = "ext4"; + }; + + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/8201-A778"; + fsType = "vfat"; + options = ["fmask=0077" "dmask=0077"]; + }; + + swapDevices = [ + {device = "/dev/disk/by-uuid/429ba137-6ea4-43ba-97ff-e2c2206f935b";} + ]; + + # 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..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; + }; +} -- cgit v1.3.1