mirror of
https://github.com/nix-community/disko.git
synced 2026-12-06 07:53:28 +01:00
drop deprecated boot.initrd.services.swraid.enable option
This commit is contained in:
1 parent
b32f0e2876
commit
241c878d4b
2 files changed
+13
-3
No files matched your search
+6
-2
@@ -171,9 +171,14 @@ let
|
|||||||
lib.optional (lib.meta.availableOn pkgs.stdenv.hostPlatform config.boot.zfs.package) "zfs";
|
lib.optional (lib.meta.availableOn pkgs.stdenv.hostPlatform config.boot.zfs.package) "zfs";
|
||||||
networking.hostId = "8425e349";
|
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
|
systemd.services.mdmonitor.enable = false; # silence some weird warnings
|
||||||
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
@@ -265,4 +270,3 @@ let
|
|||||||
};
|
};
|
||||||
in
|
in
|
||||||
testLib
|
testLib
|
||||||
|
|
||||||
+7
-1
@@ -59,7 +59,13 @@
|
|||||||
internal = true;
|
internal = true;
|
||||||
readOnly = true;
|
readOnly = true;
|
||||||
default =
|
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;
|
lib.optional (config.content != null) config.content._config;
|
||||||
description = "NixOS configuration";
|
description = "NixOS configuration";
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user