{ lib, config, pkgs, ... }: with lib; let psCfg = config.pub-solar; cfg = config.pub-solar.home-controller; in { imports = [ ./avahi.nix ./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; }; }; }