aboutsummaryrefslogtreecommitdiff
path: root/modules/services/options.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/services/options.nix')
-rw-r--r--modules/services/options.nix12
1 files changed, 0 insertions, 12 deletions
diff --git a/modules/services/options.nix b/modules/services/options.nix
index 085895e..b2cc24e 100644
--- a/modules/services/options.nix
+++ b/modules/services/options.nix
@@ -132,18 +132,6 @@ in {
assertion = with config.collinux.services.networking; (iwd.enable && !networkmanager.enable && !networkd.enable) || (!iwd.enable && networkmanager.enable && !networkd.enable) || (!iwd.enable && !networkmanager.enable && networkd.enable);
message = "only one networking method (iwd, networkmanager, networkd) can be active";
}
- {
- assertion = with config.collinux.services.networking; !(wireguard.enable && tailscale.enable);
- message = "only one vpn method (tailscale, wireguard) can be active";
- }
- {
- assertion = with config.collinux.services.networking; wireguard.enable && !networkd.enable;
- message = "wireguard configuration only supports networkd at the moment";
- }
- {
- assertion = with config.collinux.services.networking.wireguard; enable && (peersConfig |> (builtins.filter (m: m.role == "hub")) |> lib.count) == 1;
- message = "there must be exactly one hub in the wireguard configuration";
- }
];
};
}