wireguard: Simplify sopsFile path

This commit is contained in:
Simon Bruder 2021-05-01 13:16:14 +02:00
parent ef790a285a
commit 5b5bf546b3
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -37,7 +37,7 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
sops.secrets.wg-home-private-key = { 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; sbruder.wireguard.home.address = peers."${config.networking.hostName}".address;