mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
lib: fix mdadm warning when using config.system.build.installTest
This commit is contained in:
1 parent
ddef55ae5f
commit
67ff9807dd
1 file changed
+3
@@ -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
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user