deploy now resolves container-ips.json
This commit is contained in:
parent
50a0cd0d1e
commit
b72e9c6415
1 changed files with 4 additions and 1 deletions
|
|
@ -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};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue