diff options
| author | Dominik Kaiser | 2026-06-13 13:24:37 +0200 |
|---|---|---|
| committer | Dominik Kaiser | 2026-06-13 13:24:37 +0200 |
| commit | 0d7ee6f1a248a0e13a42c0db8ad8a8dd8125ccab (patch) | |
| tree | 9569709a8194ce663afd8805bdbfb0d1274c1f38 /modules/hosts/sol/hardware.nix | |
| parent | d6dc581b9c8e5caff8e9f05879c59ad59e176644 (diff) | |
| download | nixos-0d7ee6f1a248a0e13a42c0db8ad8a8dd8125ccab.tar.gz nixos-0d7ee6f1a248a0e13a42c0db8ad8a8dd8125ccab.zip | |
Fix sol
Diffstat (limited to 'modules/hosts/sol/hardware.nix')
| -rw-r--r-- | modules/hosts/sol/hardware.nix | 36 |
1 files changed, 32 insertions, 4 deletions
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; } ; |
