From bcc8d636e15da4fdffaf8f41516ac26261f5fd3d Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Tue, 26 Nov 2024 22:42:09 +0000 Subject: [PATCH] add profiles/allHardware --- nix/nixosProfiles/allHardware.nix | 22 ++++++++++++++++++++++ nix/nixosProfiles/default.nix | 1 + 2 files changed, 23 insertions(+) create mode 100644 nix/nixosProfiles/allHardware.nix 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;