From 0d7ee6f1a248a0e13a42c0db8ad8a8dd8125ccab Mon Sep 17 00:00:00 2001 From: Dominik Kaiser Date: Sat, 13 Jun 2026 13:24:37 +0200 Subject: Fix sol --- modules/hosts/sol/hardware.nix | 36 ++++++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) (limited to 'modules/hosts/sol/hardware.nix') diff --git a/modules/hosts/sol/hardware.nix b/modules/hosts/sol/hardware.nix index 8c00011..ed34e41 100644 --- a/modules/hosts/sol/hardware.nix +++ b/modules/hosts/sol/hardware.nix @@ -1,19 +1,47 @@ { self, inputs, ... }: { - flake.nixosModules.lunaHardware = { config, lib, pkgs, modulesPath, ... }: + flake.nixosModules.solHardware = { 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.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-intel" ]; + boot.kernelModules = [ ]; boot.extraModulePackages = [ ]; + fileSystems."/" = + { device = "tmpfs"; + fsType = "tmpfs"; + }; + + fileSystems."/nix/.rw-store" = + { device = "tmpfs"; + fsType = "tmpfs"; + }; + + fileSystems."/iso" = + { device = "/dev/mapper/ventoy"; + fsType = "iso9660"; + }; + + fileSystems."/nix/.ro-store" = + { device = "/iso/nix-store.squashfs"; + fsType = "squashfs"; + options = [ "loop" ]; + }; + + fileSystems."/nix/store" = + { device = "overlay"; + fsType = "overlay"; + }; + + swapDevices = [ ]; + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; } ; -- cgit v1.2.3