Skip to content

Commit 67ff980

Browse files
committed
lib: fix mdadm warning when using config.system.build.installTest
1 parent ddef55a commit 67ff980

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/tests.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,10 @@ let
248248
(
249249
if lib.versionAtLeast (lib.versions.majorMinor lib.version) "23.11" then
250250
{
251+
# From https://github.com/NixOS/nixpkgs/blob/7a8665e3a624a01b10d10d10b819cb1a8f34ee6e/nixos/modules/profiles/installation-device.nix#L116-L118
251252
boot.swraid.enable = true;
253+
# remove warning about unset mail
254+
boot.swraid.mdadmConf = "PROGRAM ${pkgs.coreutils}/bin/true";
252255
}
253256
else
254257
{

0 commit comments

Comments
 (0)