diff --git a/hosts/leon/default.nix b/hosts/leon/default.nix index 234e5444..6feb41bd 100644 --- a/hosts/leon/default.nix +++ b/hosts/leon/default.nix @@ -85,21 +85,16 @@ in # Note: The private key can also be included inline via the privateKey option, # but this makes the private key world-readable; thus, using privateKeyFile is # recommended. - privateKeyFile = "will add later"; + privateKeyFile = "/etc/wireguard/privatekey"; peers = [ - # List of allowed peers. - { # Feel free to give a meaning full name - # Public key of the peer (not a file path). - publicKey = "{client public key}"; - # List of IPs assigned to this peer within the tunnel subnet. Used to configure routing. + # -----------------leon-Mac-------------------------. + { + publicKey = "okZuIQ90J49IJ3s+/dZyLthvo4rR2kclmTL54Ykglio="; allowedIPs = [ "10.10.11.0/24" ]; } - #{ # John Doe - # publicKey = "{john doe's public key}"; - # allowedIPs = [ "10.100.0.3/32" ]; - # } - ]; + + ]; }; };