2023-03-07 15:48:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
2022-08-13 09:09:38 +00:00
|
|
|
psCfg = config.pub-solar;
|
|
|
|
cfg = config.pub-solar.home-controller;
|
2023-03-07 15:48:46 +00:00
|
|
|
in {
|
2022-08-13 09:09:38 +00:00
|
|
|
imports = [
|
|
|
|
./wireguard.nix
|
2023-03-07 15:48:46 +00:00
|
|
|
./monitoring-client.nix
|
2022-08-13 09:09:38 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
2023-03-07 15:48:46 +00:00
|
|
|
wireguardPrivateKeyFile = mkOption {
|
|
|
|
description = ''
|
|
|
|
Location of private key file
|
2022-08-13 09:09:38 +00:00
|
|
|
'';
|
2023-03-07 15:48:46 +00:00
|
|
|
type = types.path;
|
|
|
|
};
|
2022-08-13 09:09:38 +00:00
|
|
|
};
|
|
|
|
}
|