feat: harbor

This commit is contained in:
2026-03-28 15:21:17 +01:00
parent cf289c8c48
commit fc166785ee
12 changed files with 809 additions and 1 deletions

View File

@@ -9,6 +9,7 @@
peers = import ./peers.nix {inherit lib;};
in {
options.hive.wg.server = {
enable = lib.mkEnableOption "Enable WireGuard server";
port = lib.mkOption {
type = lib.types.port;
default = 51820;
@@ -20,7 +21,7 @@
};
};
config = {
config = lib.mkIf cfg.enable {
# Firewall rule
networking.firewall.allowedUDPPorts = [cfg.port];