diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/deploy.sh | 3 | ||||
-rwxr-xr-x | scripts/mk_network_config.sh | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 00e9011..5c7b0e6 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -11,7 +11,6 @@ root="$(git rev-parse --show-toplevel)" nix run github:numtide/nixos-anywhere -- \ --flake ".#$host_name" \ --target-host "$ssh_url" \ - --generate-hardware-config nixos-generate-config "$root/hardware_config_$host_name.nix" \ - --generate-hardware-config nixos-facter "$root/hardware_config_$host_name.json" + --generate-hardware-config nixos-generate-config "$root/hosts/by-name/$host_name/hardware_config_$ssh_url.nix" # vim: ft=sh diff --git a/scripts/mk_network_config.sh b/scripts/mk_network_config.sh index d929530..3c853fb 100755 --- a/scripts/mk_network_config.sh +++ b/scripts/mk_network_config.sh @@ -41,7 +41,7 @@ EOF -e 's/127[0-9.]+/8.8.8.8/' \ -e 's/::1/8.8.8.8/') - if [[ "$eth0_name" = eth* ]]; then + if [[ $eth0_name == eth* ]]; then predictable_inames="usePredictableInterfaceNames = lib.mkForce false;" else predictable_inames="usePredictableInterfaceNames = lib.mkForce true;" |