deploy now resolves container-ips.json

This commit is contained in:
Jermeiah S 2025-06-23 01:08:19 -04:00
parent 50a0cd0d1e
commit b72e9c6415
No known key found for this signature in database

View file

@ -1,4 +1,7 @@
{ lib, config, ... }:
let
hosts = builtins.fromJSON (builtins.readFile ../../../container_ips.json);
in
{
options.deploy = {
enable = lib.mkEnableOption "enable deployrs module" // {
@ -6,7 +9,7 @@
};
address = lib.mkOption {
type = lib.types.str;
default = config.networking.hostName;
default = hosts.${config.networking.hostName};
};
};
}