commit e7f9bb4330f384dc34894763e67013fe5fe3c9f3
parent 254745ca4a0518bb068329f3ac7a1d31f4cc1310
Author: Vincent Demeester <vincent@sbr.pm>
Date: Fri, 5 Jun 2020 18:06:32 +0200
wireguard.server: fix secretPath 😓
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/profiles/wireguard.server.nixos.nix b/modules/profiles/wireguard.server.nixos.nix
@@ -4,7 +4,7 @@ with lib;
let
cfg = config.profiles.wireguard.server;
- secretPath = ../secrets/machines.nix;
+ secretPath = ../../secrets/machines.nix;
secretCondition = (builtins.pathExists secretPath);
allowedIPs = lists.optionals secretCondition (import secretPath).wireguard.kerkouane.allowedIPs;
listenPort = if secretCondition then (import secretPath).wg.listenPort else 0;