From 633f57419330c4d73d2a9b39c49e89faec689ed1 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sat, 22 Apr 2023 15:36:40 +0200 Subject: Fix(bootstrap/setup): Fix host option generation --- bootstrap/setup/setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bootstrap') diff --git a/bootstrap/setup/setup.sh b/bootstrap/setup/setup.sh index 540b81ea..d66f4739 100755 --- a/bootstrap/setup/setup.sh +++ b/bootstrap/setup/setup.sh @@ -6,7 +6,7 @@ msg "Select a host-config:" hosts=$(mktmp); host=""; -awk -F "." '/nixpkgs.lib.nixosSystem/{print $1}' "$(tmp 'curl https://codeberg.org/soispha/nixos-config/raw/branch/prime/flake/nixosConfigurations/default.nix 2> /dev/null')" | awk '{print $1}' > $hosts; +curl https://codeberg.org/soispha/nixos-config/raw/branch/prime/flake/nixosConfigurations/default.nix 2> /dev/null | awk -F '"' '/hosts = /{for (i=2;i $hosts; while ! grep "$host" "$hosts" > /dev/null || [ "$(printf "%s" "$host" | wc -c)" -eq 0 ]; do i=1; -- cgit 1.4.1