refactor wireguard configs
This commit is contained in:
parent
4306a9cdd7
commit
0530b9f515
2 changed files with 4 additions and 4 deletions
|
@ -3,7 +3,7 @@
|
|||
secrets,
|
||||
...
|
||||
}: let
|
||||
inherit (secrets.wireguard_config) peers Proxy Skipper;
|
||||
inherit (secrets.wireguard_config) peers;
|
||||
in {
|
||||
networking.wireguard = {
|
||||
enable = true;
|
||||
|
@ -12,7 +12,7 @@ in {
|
|||
inherit (peers."${config.networking.hostName}") ips;
|
||||
privateKeyFile = "/etc/wireguard/private.key";
|
||||
generatePrivateKeyFile = true;
|
||||
peers = [
|
||||
peers = with peers; [
|
||||
Proxy
|
||||
Skipper
|
||||
];
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
secrets,
|
||||
...
|
||||
}: let
|
||||
inherit (secrets.wireguard_config) peers Proxy Rico2;
|
||||
inherit (secrets.wireguard_config) peers;
|
||||
in {
|
||||
networking.wireguard = {
|
||||
enable = true;
|
||||
|
@ -12,7 +12,7 @@ in {
|
|||
inherit (peers."${config.networking.hostName}") ips;
|
||||
privateKeyFile = "/etc/wireguard/private.key";
|
||||
generatePrivateKeyFile = true;
|
||||
peers = [
|
||||
peers = with peers; [
|
||||
Proxy
|
||||
Rico2
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue