diff options
author | ene <ene@sils.li> | 2023-02-21 08:50:18 +0100 |
---|---|---|
committer | ene <ene@sils.li> | 2023-02-21 08:50:18 +0100 |
commit | 41c16a62ecc19f264aa7ca373bf50d1788d9538a (patch) | |
tree | d6c468a1fdad86e02ff4f9348feb78c37953b79a /bootstrap | |
parent | Feat(hosts): Add UUID for mammun (diff) | |
download | nixos-config-41c16a62ecc19f264aa7ca373bf50d1788d9538a.tar.gz nixos-config-41c16a62ecc19f264aa7ca373bf50d1788d9538a.zip |
Fix(bootstrap): Adapt to the new flake config
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap/activate/activate.sh | 3 | ||||
-rwxr-xr-x | bootstrap/install/install.sh | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/bootstrap/activate/activate.sh b/bootstrap/activate/activate.sh index a9e6f99a..ea914de7 100755 --- a/bootstrap/activate/activate.sh +++ b/bootstrap/activate/activate.sh @@ -67,7 +67,8 @@ case $result in msg "Great, select a host-config:" hosts=$(mktmp); host=""; - awk -F "." '/nixosConfiguration/{print $2}' "$(tmp 'curl https://git.sils.li/ene/nixos-config/raw/branch/prime/flake.nix 2> /dev/null')" | awk '{print $1}' > $hosts; + + awk -F "." '/inputs.nixpkgs.lib.nixosSystem/{print $1}' "$(tmp 'curl https://git.sils.li/ene/nixos-config/raw/branch/prime/flake/nixosConfigurations/default.nix 2> /dev/null')" | awk '{print $1}' > $hosts; while ! grep "$host" "$hosts" > /dev/null || [ "$(printf "%s" "$host" | wc -c)" -eq 0 ]; do i=1; diff --git a/bootstrap/install/install.sh b/bootstrap/install/install.sh index 37a5e758..be44cde3 100755 --- a/bootstrap/install/install.sh +++ b/bootstrap/install/install.sh @@ -99,7 +99,8 @@ case $result in msg "Great, select a host-config:" hosts=$(mktmp); host=""; - awk -F "." '/nixosConfiguration/{print $2}' "$(tmp 'curl https://git.sils.li/ene/nixos-config/raw/branch/prime/flake.nix 2> /dev/null')" | awk '{print $1}' > $hosts; + + awk -F "." '/inputs.nixpkgs.lib.nixosSystem/{print $1}' "$(tmp 'curl https://git.sils.li/ene/nixos-config/raw/branch/prime/flake/nixosConfigurations/default.nix 2> /dev/null')" | awk '{print $1}' > $hosts; while ! grep "$host" "$hosts" > /dev/null || [ "$(printf "%s" "$host" | wc -c)" -eq 0 ]; do i=1; |