Skip to content

Commit

Permalink
fix(jeeves): wireguard peer's PublicKey should not be a file
Browse files Browse the repository at this point in the history
  • Loading branch information
reo101 committed Oct 23, 2023
1 parent a4004be commit c707909
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 22 deletions.
7 changes: 1 addition & 6 deletions machines/nixos/x86_64-linux/jeeves/wireguard.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@
file = ../../../../secrets/home/wireguard/server.public.age;
};

# Peers
age.secrets."wireguard/cheetah.pub" = {
file = ../../../../secrets/home/wireguard/cheetah.pub.age;
};

networking.firewall.allowedUDPPorts = [51820];
systemd.network = {
netdevs = {
Expand All @@ -40,7 +35,7 @@
{
# cheetah
wireguardPeerConfig = {
PublicKey = config.age.secrets."wireguard/cheetah.pub".path;
PublicKey = "CFTGvBcly791ClwyS6PzTjmqztvYJW2eklR7it/QhxI=";
AllowedIPs = [
"0.0.0.0/0"
# "::/0"
Expand Down
15 changes: 0 additions & 15 deletions secrets/home/wireguard/cheetah.pub.age

This file was deleted.

1 change: 0 additions & 1 deletion secrets/secrets.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@ in
"home/jeeves_password.age".publicKeys = users ++ [ jeeves_system ];
"home/wireguard/server.private.age".publicKeys = users ++ [ jeeves_system ];
"home/wireguard/server.public.age".publicKeys = users ++ [ jeeves_system ];
"home/wireguard/cheetah.pub.age".publicKeys = users ++ [ jeeves_system ];
}

0 comments on commit c707909

Please sign in to comment.