1
0
Fork 0

hosts/_iso: fix bash syntax

This commit is contained in:
clerie 2023-02-28 19:07:33 +01:00
parent a06bd77850
commit 6e62975666
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ let
echo "[I] Deploying with hostname ''${hostname}"
device=""
for dev in ("/dev/vda" "/dev/sda"); do
for dev in "/dev/vda" "/dev/sda"; do
if [[ -b $dev ]]; then
device=$dev
break
@ -60,7 +60,7 @@ let
nixfiles-generate-config --root /mnt --hostname ''${hostname}
sed -i "s/\# boot\.loader\.grub\.device = \"/dev/sda\";/boot\.loader\.grub\.device = \"''${device}\";/g" /mnt/etc/nixos/hosts/''${hostname}/configuration.nix
sed -i "s~# boot\.loader\.grub\.device = \"/dev/sda\";~boot\.loader\.grub\.device = \"''${device}\";~g" /mnt/etc/nixos/hosts/''${hostname}/configuration.nix
echo "[I] Install NixOS"