From 6e6297566620fb6fbf88f9bcb2fc6943d47c16e0 Mon Sep 17 00:00:00 2001 From: clerie Date: Tue, 28 Feb 2023 19:07:33 +0100 Subject: [PATCH] hosts/_iso: fix bash syntax --- hosts/_iso/configuration.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hosts/_iso/configuration.nix b/hosts/_iso/configuration.nix index 937276a..97cab1e 100644 --- a/hosts/_iso/configuration.nix +++ b/hosts/_iso/configuration.nix @@ -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"