1
0
Fork 0
mirror of https://github.com/mdlayher/homelab.git synced 2024-12-14 11:47:32 +00:00

nixos/routnerr-2: new WireGuard key and tailscale

Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
Matt Layher 2022-12-11 17:43:44 -05:00
parent 7824d81b02
commit ee6149941d
No known key found for this signature in database
3 changed files with 9 additions and 2 deletions

View file

@ -95,7 +95,7 @@ func main() {
Name: "wg0",
Subnet: wg0,
}
wg.addPeer("matt-3", "b3kX+KbsjHDajUIe7Q7F/kEfSNdJ3Phv9Z4zqqlD7iE=")
wg.addPeer("matt-3", "owbwahkmPWQg97iDSfn4dc80f2MYegEbnCAszExlbi8=")
// Set up the output structure and create host/infra records.
out := output{

View file

@ -264,7 +264,7 @@
"peers": [
{
"name": "matt-3",
"public_key": "b3kX+KbsjHDajUIe7Q7F/kEfSNdJ3Phv9Z4zqqlD7iE=",
"public_key": "owbwahkmPWQg97iDSfn4dc80f2MYegEbnCAszExlbi8=",
"allowed_ips": [
"192.168.20.10/32",
"2600:6c4a:787f:1914::a/128",

View file

@ -1,6 +1,7 @@
{ lib, ... }:
let
unstable = import <nixos-unstable-small> { };
vars = import ./lib/vars.nix;
ethLink = (name:
@ -192,6 +193,12 @@ in {
};
};
services.tailscale = {
enable = true;
package = unstable.tailscale;
interfaceName = "ts0";
};
# Enable WireGuard Prometheus exporter and set up peer key/name mappings.
# TODO: nixify the configuration.
services.wireguard_exporter = {