os/modules/home-controller/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
600 B
Nix
Raw Normal View History

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