From 67ff9807dd148e704baadbd4fd783b54282ca627 Mon Sep 17 00:00:00 2001 From: Michael Hoang Date: Fri, 19 Sep 2025 12:15:24 +0200 Subject: [PATCH] lib: fix `mdadm` warning when using `config.system.build.installTest` --- lib/tests.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/tests.nix b/lib/tests.nix index fcdefbb..d0cba72 100644 --- a/lib/tests.nix +++ b/lib/tests.nix @@ -248,7 +248,10 @@ let ( if lib.versionAtLeast (lib.versions.majorMinor lib.version) "23.11" then { + # From https://github.com/NixOS/nixpkgs/blob/7a8665e3a624a01b10d10d10b819cb1a8f34ee6e/nixos/modules/profiles/installation-device.nix#L116-L118 boot.swraid.enable = true; + # remove warning about unset mail + boot.swraid.mdadmConf = "PROGRAM ${pkgs.coreutils}/bin/true"; } else {