aboutsummaryrefslogtreecommitdiffstats
path: root/modules/networking/usque
diff options
context:
space:
mode:
Diffstat (limited to 'modules/networking/usque')
-rw-r--r--modules/networking/usque/assertions.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/networking/usque/assertions.nix b/modules/networking/usque/assertions.nix
index a163dd8..5d6907a 100644
--- a/modules/networking/usque/assertions.nix
+++ b/modules/networking/usque/assertions.nix
@@ -1,9 +1,12 @@
# Validates usque sub-options require the main module to be enabled
{ config, ... }:
+let
+ cfg = config.networking.usque;
+in
{
assertions = [
{
- assertion = !config.networking.usque.warp.enable || config.networking.usque.enable;
+ assertion = !cfg.warp.enable || cfg.enable;
message = "networking.usque.warp.enable requires networking.usque.enable.";
}
];