summaryrefslogtreecommitdiff
path: root/modules/wg/options.nix
diff options
context:
space:
mode:
authorGrisha Shipunov2025-08-29 13:15:13 +0200
committerGrisha Shipunov2025-08-29 13:15:13 +0200
commitfaf1e32c8a6bdaf5616f075fcca1e2ee121cebe2 (patch)
treeb24b09c9488845ea7066d28b164bc0020459f44a /modules/wg/options.nix
parent02cbd04bf63976db64891a2712210f9644a14a75 (diff)
allow null private key for non-flake clients
Diffstat (limited to 'modules/wg/options.nix')
-rw-r--r--modules/wg/options.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/wg/options.nix b/modules/wg/options.nix
index d4e8567..c5ed665 100644
--- a/modules/wg/options.nix
+++ b/modules/wg/options.nix
@@ -39,7 +39,9 @@
default = null;
};
privateKeyFile = mkOption {
- type = types.path;
+ # nullOr because non-flake hosts don't need a private key in this repo
+ # assert in the module checks for the key presence on flake hosts
+ type = types.nullOr types.path;
default = null;
};