mirror of
https://github.com/nix-community/disko.git
synced 2024-09-19 02:27:27 +03:00
drop deprecated boot.initrd.services.swraid.enable option
This commit is contained in:
parent
b32f0e2876
commit
241c878d4b
@ -171,9 +171,14 @@ let
|
||||
lib.optional (lib.meta.availableOn pkgs.stdenv.hostPlatform config.boot.zfs.package) "zfs";
|
||||
networking.hostId = "8425e349";
|
||||
})
|
||||
|
||||
(if lib.versionAtLeast (lib.versions.majorMinor lib.version) "23.11" then {
|
||||
boot.swraid.enable = true;
|
||||
} else {
|
||||
boot.initrd.services.swraid.enable = true;
|
||||
})
|
||||
];
|
||||
|
||||
boot.initrd.services.swraid.enable = true;
|
||||
systemd.services.mdmonitor.enable = false; # silence some weird warnings
|
||||
|
||||
environment.systemPackages = [
|
||||
@ -265,4 +270,3 @@ let
|
||||
};
|
||||
in
|
||||
testLib
|
||||
|
||||
|
@ -59,7 +59,13 @@
|
||||
internal = true;
|
||||
readOnly = true;
|
||||
default =
|
||||
[{ boot.initrd.services.swraid.enable = true; }] ++
|
||||
[
|
||||
(if lib.versionAtLeast (lib.versions.majorMinor lib.version) "23.11" then {
|
||||
boot.swraid.enable = true;
|
||||
} else {
|
||||
boot.initrd.services.swraid.enable = true;
|
||||
})
|
||||
] ++
|
||||
lib.optional (config.content != null) config.content._config;
|
||||
description = "NixOS configuration";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user