34 lines
600 B
Nix
34 lines
600 B
Nix
{
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib; let
|
|
psCfg = config.pub-solar;
|
|
cfg = config.pub-solar.home-controller;
|
|
in {
|
|
imports = [
|
|
./wireguard.nix
|
|
./monitoring-client.nix
|
|
];
|
|
|
|
options.pub-solar.home-controller = {
|
|
enable = mkEnableOption "Control your home";
|
|
|
|
ownIp = mkOption {
|
|
description = ''
|
|
Internal ip in wireguard used for cluster control-plane communication.
|
|
'';
|
|
type = types.str;
|
|
};
|
|
|
|
wireguardPrivateKeyFile = mkOption {
|
|
description = ''
|
|
Location of private key file
|
|
'';
|
|
type = types.path;
|
|
};
|
|
};
|
|
}
|