summaryrefslogtreecommitdiff
path: root/modules/hosts/luna/hardware.nix
diff options
context:
space:
mode:
authorDominik Kaiser2026-06-12 18:10:16 +0200
committerDominik Kaiser2026-06-12 18:10:16 +0200
commit2df5bc584899f427495cc20927170de2a2c84b32 (patch)
treed1a87bcd3c17d605e3f25e4bb8d7a6ec060c73ba /modules/hosts/luna/hardware.nix
downloadnixos-2df5bc584899f427495cc20927170de2a2c84b32.tar.gz
nixos-2df5bc584899f427495cc20927170de2a2c84b32.zip
Setup luna
Diffstat (limited to 'modules/hosts/luna/hardware.nix')
-rw-r--r--modules/hosts/luna/hardware.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/hosts/luna/hardware.nix b/modules/hosts/luna/hardware.nix
new file mode 100644
index 0000000..8c00011
--- /dev/null
+++ b/modules/hosts/luna/hardware.nix
@@ -0,0 +1,20 @@
+{ self, inputs, ... }: {
+
+ flake.nixosModules.lunaHardware = { config, lib, pkgs, modulesPath, ... }:
+
+{
+ imports =
+ [ (modulesPath + "/installer/scan/not-detected.nix")
+ ];
+
+ boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
+ boot.initrd.kernelModules = [ ];
+ boot.kernelModules = [ "kvm-intel" ];
+ boot.extraModulePackages = [ ];
+
+ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+ hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
+}
+;
+
+}