File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 171171 lib . optional ( lib . meta . availableOn pkgs . stdenv . hostPlatform config . boot . zfs . package ) "zfs" ;
172172 networking . hostId = "8425e349" ;
173173 } )
174+
175+ ( if lib . versionAtLeast ( lib . versions . majorMinor lib . version ) "23.11" then {
176+ boot . swraid . enable = true ;
177+ } else {
178+ boot . initrd . services . swraid . enable = true ;
179+ } )
174180 ] ;
175181
176- boot . initrd . services . swraid . enable = true ;
177182 systemd . services . mdmonitor . enable = false ; # silence some weird warnings
178183
179184 environment . systemPackages = [
265270 } ;
266271in
267272testLib
268-
Original file line number Diff line number Diff line change 5959 internal = true ;
6060 readOnly = true ;
6161 default =
62- [ { boot . initrd . services . swraid . enable = true ; } ] ++
62+ [
63+ ( if lib . versionAtLeast ( lib . versions . majorMinor lib . version ) "23.11" then {
64+ boot . swraid . enable = true ;
65+ } else {
66+ boot . initrd . services . swraid . enable = true ;
67+ } )
68+ ] ++
6369 lib . optional ( config . content != null ) config . content . _config ;
6470 description = "NixOS configuration" ;
6571 } ;
You can’t perform that action at this time.
0 commit comments