summary refs log tree commit diff stats
path: root/scripts/deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/deploy.sh')
-rwxr-xr-xscripts/deploy.sh3
1 files changed, 1 insertions, 2 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