diff options
author | Soispha <soispha@vhack.eu> | 2023-04-22 15:36:40 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-05-09 19:31:30 +0200 |
commit | 633f57419330c4d73d2a9b39c49e89faec689ed1 (patch) | |
tree | 18ed11da800e8ffd6e6a5ea680f46480ae40c59a /bootstrap | |
parent | Fix(bootstrap): Reference the new repo location (diff) | |
download | nixos-config-633f57419330c4d73d2a9b39c49e89faec689ed1.tar.gz nixos-config-633f57419330c4d73d2a9b39c49e89faec689ed1.zip |
Fix(bootstrap/setup): Fix host option generation
Diffstat (limited to '')
-rwxr-xr-x | bootstrap/setup/setup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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<NF;i+=2) {print $i}}' > $hosts; while ! grep "$host" "$hosts" > /dev/null || [ "$(printf "%s" "$host" | wc -c)" -eq 0 ]; do i=1; |