drop deprecated boot.initrd.services.swraid.enable option

This commit is contained in:
Jörg Thalheim authored and mergify[bot] committed 2023-08-11 08:45:46 +00:00
1 parent b32f0e2876
commit 241c878d4b
2 files changed
+13 -3

No files matched your search

+7 -1
View File
@@ -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";
};