diff --git a/container_ips.json b/hosts.json similarity index 100% rename from container_ips.json rename to hosts.json diff --git a/modules/nixos/common/deployrs.nix b/modules/nixos/common/deployrs.nix index 0caf926..36f58ad 100644 --- a/modules/nixos/common/deployrs.nix +++ b/modules/nixos/common/deployrs.nix @@ -1,6 +1,6 @@ { lib, config, ... }: let - hosts = builtins.fromJSON (builtins.readFile ../../../container_ips.json); + hosts = builtins.fromJSON (builtins.readFile ../../../hosts.json); in { options.deploy = { diff --git a/packages/ip-gather/default.nix b/packages/ip-gather/default.nix index 839a48d..938832d 100644 --- a/packages/ip-gather/default.nix +++ b/packages/ip-gather/default.nix @@ -7,7 +7,7 @@ writeShellScriptBin "ip-gather" '' set -euo pipefail remote_host="''${1:-"administrator@olympus"}" - output_file="''${2:-container_ips.json}" + output_file="''${2:-hosts.json}" generate_json() { echo "{" @@ -32,5 +32,5 @@ writeShellScriptBin "ip-gather" '' generate_json > "$output_file" fi - echo "Container IPs saved to: $output_file" + echo "hosts saved to: $output_file" ''