Nixos-Configuration/modules/nixos/common/deployrs.nix
2025-06-23 01:09:26 -04:00

15 lines
344 B
Nix

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