From c5c42d4fbe0c68bb79f6178b4c39271275bb4298 Mon Sep 17 00:00:00 2001 From: oxalica Date: Fri, 16 Sep 2022 20:54:04 +0800 Subject: [PATCH] nixos/systemd-stage-1: include modprobe confg in initrd --- nixos/modules/system/boot/systemd/initrd.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/system/boot/systemd/initrd.nix b/nixos/modules/system/boot/systemd/initrd.nix index e843214f855..03f94c426cb 100644 --- a/nixos/modules/system/boot/systemd/initrd.nix +++ b/nixos/modules/system/boot/systemd/initrd.nix @@ -372,6 +372,8 @@ in { "/etc/os-release".source = config.boot.initrd.osRelease; "/etc/initrd-release".source = config.boot.initrd.osRelease; + } // optionalAttrs (config.environment.etc ? "modprobe.d/nixos.conf") { + "/etc/modprobe.d/nixos.conf".source = config.environment.etc."modprobe.d/nixos.conf".source; }; storePaths = [