diff options
author | Linus Heckemann <git@sphalerite.org> | 2023-07-10 20:20:08 +0200 |
---|---|---|
committer | Linus Heckemann <git@sphalerite.org> | 2023-07-10 20:20:08 +0200 |
commit | c0f963a33805a7906de59b1f4bd73962d0130d5b (patch) | |
tree | 363fa9f54fb94e17bc2d84c2bf58501f7acf289e /nixos/tests/systemd-initrd-swraid.nix | |
parent | 0b277bcc2b40c6ecd728c44635fa92262bedf620 (diff) |
boot.initrd.services.swraid -> boot.swraid
Since the option affects both stage-1 and stage-2, it does not make sense to keep it within the boot.initrd namespace.
Diffstat (limited to 'nixos/tests/systemd-initrd-swraid.nix')
-rw-r--r-- | nixos/tests/systemd-initrd-swraid.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nixos/tests/systemd-initrd-swraid.nix b/nixos/tests/systemd-initrd-swraid.nix index 0d5a1c6354d05..d87170c925742 100644 --- a/nixos/tests/systemd-initrd-swraid.nix +++ b/nixos/tests/systemd-initrd-swraid.nix @@ -14,17 +14,17 @@ import ./make-test-python.nix ({ lib, pkgs, ... }: { boot.loader.efi.canTouchEfiVariables = true; environment.systemPackages = with pkgs; [ mdadm e2fsprogs ]; # for mdadm and mkfs.ext4 + boot.swraid = { + enable = true; + mdadmConf = '' + ARRAY /dev/md0 devices=/dev/vdb,/dev/vdc + ''; + }; boot.initrd = { systemd = { enable = true; emergencyAccess = true; }; - services.swraid = { - enable = true; - mdadmConf = '' - ARRAY /dev/md0 devices=/dev/vdb,/dev/vdc - ''; - }; kernelModules = [ "raid0" ]; }; |