aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/nixos/modules/installer/tools/nixos-generate-config.pl
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/nixos/modules/installer/tools/nixos-generate-config.pl')
-rw-r--r--infra/libkookie/nixpkgs/nixos/modules/installer/tools/nixos-generate-config.pl9
1 files changed, 9 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/nixos/modules/installer/tools/nixos-generate-config.pl b/infra/libkookie/nixpkgs/nixos/modules/installer/tools/nixos-generate-config.pl
index 54b84521bdff..6e3ddb875e1b 100644
--- a/infra/libkookie/nixpkgs/nixos/modules/installer/tools/nixos-generate-config.pl
+++ b/infra/libkookie/nixpkgs/nixos/modules/installer/tools/nixos-generate-config.pl
@@ -183,6 +183,11 @@ sub pciCheck {
push @imports, "(modulesPath + \"/hardware/network/broadcom-43xx.nix\")";
}
+ # In case this is a virtio scsi device, we need to explicitly make this available.
+ if ($vendor eq "0x1af4" && $device eq "0x1004") {
+ push @initrdAvailableKernelModules, "virtio_scsi";
+ }
+
# Can't rely on $module here, since the module may not be loaded
# due to missing firmware. Ideally we would check modules.pcimap
# here.
@@ -625,6 +630,10 @@ EOF
my $networkingDhcpConfig = generateNetworkingDhcpConfig();
+ (my $desktopConfiguration = <<EOF)=~s/^/ /gm;
+@desktopConfiguration@
+EOF
+
write_file($fn, <<EOF);
@configuration@
EOF