diff options
| author | nikstur <nikstur@outlook.com> | 2025-07-27 21:19:00 +0200 |
|---|---|---|
| committer | nikstur <nikstur@outlook.com> | 2025-08-10 22:43:48 +0200 |
| commit | e63a403bfb14e0d6a7e0168791d5c6ff1fc55384 (patch) | |
| tree | 2f2cf6b2a3ddfa25e8606b4ac482d1314d247571 | |
| parent | nixos/activation-script: disable userActivationScripts when system is not act... (diff) | |
| download | nixpkgs-e63a403bfb14e0d6a7e0168791d5c6ff1fc55384.tar.gz | |
nixos/kernel: don't include append-initrd-secrets when unused
| -rw-r--r-- | nixos/modules/system/boot/kernel.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/kernel.nix b/nixos/modules/system/boot/kernel.nix index 3a7f0d19db94..b19e3ac5c787 100644 --- a/nixos/modules/system/boot/kernel.nix +++ b/nixos/modules/system/boot/kernel.nix @@ -414,7 +414,9 @@ in ln -s ${initrdPath} $out/initrd - ln -s ${config.system.build.initialRamdiskSecretAppender}/bin/append-initrd-secrets $out + ${optionalString (config.boot.initrd.secrets != { }) '' + ln -s ${config.system.build.initialRamdiskSecretAppender}/bin/append-initrd-secrets $out + ''} ln -s ${config.hardware.firmware}/lib/firmware $out/firmware ''; |
