This commit is contained in:
Shelvacu
2025-05-02 17:44:19 -07:00
committed by Shelvacu on fw
parent d38c7f42a0
commit 09726fb24b
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ in
boot.swraid.enable = true;
boot.swraid.mdadmConf = ''
DEVICE ${lib.concatStringsSep " " raidPartitions}
ARRAY /dev/md/prophecy-root-crypt devices=${lib.concatStringsSep "," raidPartitions} metadata=1.2 UUID=9edfd1b4:0fb7fd0d:4f390f6d:3d176ddf
ARRAY /dev/md/prophecy-root-crypt metadata=1.2 UUID=9edfd1b4:0fb7fd0d:4f390f6d:3d176ddf
AUTO -all
PROGRAM ${pkgs.coreutils}/bin/echo
'';

View File

@@ -8,5 +8,5 @@ ssh 10.78.79.22 sudo mdadm --manage --stop /dev/md127
ssh 10.78.79.22 sudo mdadm -A --config=new-mdadm.conf --verbose --scan
ssh -t 10.78.79.22 sudo cryptsetup open /dev/disk/by-uuid/98cec659-ed09-4e51-bc44-c6264dc680ed prophecy-root-decrypted
ssh 10.78.79.22 sed -i "'s: /: /mnt/:'" new-fstab
ssh 10.78.79.22 sudo mount --fstab new-fstab --all --verbose
ssh 10.78.79.22 sudo mount --fstab new-fstab --all --verbose || true
ssh 10.78.79.22 sudo nixos-install --flake ./nix-stuff#prophecy --no-root-password