diff --git a/nix/nixosProfiles/allHardware.nix b/nix/nixosProfiles/allHardware.nix new file mode 100644 index 0000000..546f661 --- /dev/null +++ b/nix/nixosProfiles/allHardware.nix @@ -0,0 +1,22 @@ +# all hardware for *installed* systems + +{ modulesPath, ... }: +{ + + imports = [ + # from nixpkgs + "${modulesPath}/profiles/all-hardware.nix" # all hardware, just so installers from USB / etc. can run + # from here + ./common.nix + ./pveGuestHwSupport.nix # also for guest agent, serial out, ... + ]; + + config = { + boot.initrd.availableKernelModules = [ + # to find boot drive + "mmc_block" # e.g. Surface 3 + "sdhci-acpi" # e.g. Surface 3 + ]; + }; + +} diff --git a/nix/nixosProfiles/default.nix b/nix/nixosProfiles/default.nix index 3ee525d..892adaa 100644 --- a/nix/nixosProfiles/default.nix +++ b/nix/nixosProfiles/default.nix @@ -4,6 +4,7 @@ let importProfileMod = lib.importFlakeMod; in { + allHardware = importProfile ./allHardware.nix; blade = importProfile ./blade.nix; common = importProfile ./common.nix; installer = importProfileMod ./installer.nix;