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