wireguard: Simplify sopsFile path
This commit is contained in:
parent
ef790a285a
commit
5b5bf546b3
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue