diff options
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; } ; |
