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"