From f108181be1abfa39e60589b8de06812a3acac747 Mon Sep 17 00:00:00 2001 From: Jermeiah S Date: Mon, 23 Jun 2025 12:50:35 -0400 Subject: [PATCH] chore: improve naming for host file --- container_ips.json => hosts.json | 0 modules/nixos/common/deployrs.nix | 2 +- packages/ip-gather/default.nix | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) rename container_ips.json => hosts.json (100%) 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" ''