From 5b5bf546b39538cd6683c39fd53a2de3b6cf7c26 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 1 May 2021 13:16:14 +0200 Subject: [PATCH] wireguard: Simplify sopsFile path --- modules/wireguard/home.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/wireguard/home.nix b/modules/wireguard/home.nix index 98dac66..db5ecb5 100644 --- a/modules/wireguard/home.nix +++ b/modules/wireguard/home.nix @@ -37,7 +37,7 @@ in config = lib.mkIf cfg.enable { sops.secrets.wg-home-private-key = { - sopsFile = builtins.path { path = "${toString ./.}/../../machines/${config.networking.hostName}/secrets.yaml"; }; + sopsFile = ./../../machines + "/${config.networking.hostName}/secrets.yaml"; }; sbruder.wireguard.home.address = peers."${config.networking.hostName}".address;