Skip to content

Commit

Permalink
feat(nl): wireguard
Browse files Browse the repository at this point in the history
  • Loading branch information
mokrinsky committed Sep 22, 2023
1 parent de60f9b commit 03b4200
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 2 deletions.
85 changes: 85 additions & 0 deletions hosts/nl/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ in {
"openvpn/nl.key".path = "/etc/openvpn/nl.key";
"openvpn/config" = {};
"minio" = {};
"wg/privateKey" = {};
};
};

Expand All @@ -116,8 +117,92 @@ in {
179
9000
];
allowedUDPPorts = [
8213
];
enable = true;
};
wireguard = {
interfaces = {
wg0 = {
ips = ["192.168.254.1/24"];
listenPort = 8213;
privateKeyFile = config.sops.secrets."wg/privateKey".path;
peers = [
{
name = "bogoden";
publicKey = "eJgoBWQt9gRlLhO5rzUWwufExiuR6SNzrtdPkW6zz0M=";
allowedIPs = ["192.168.254.2/32"];
}
{
name = "green";
publicKey = "8Dmm5nyCIGMjJ2zv1SkYAjr+kWHqjQXy1evYQXFe9jk=";
allowedIPs = ["192.168.254.3/32"];
}
{
name = "mbp";
publicKey = "hiiI52MWUxUOb9sWRugc/rMGCxrH+dBwN+WObqt4CEY=";
allowedIPs = ["192.168.254.4/32"];
}
{
name = "ipad";
publicKey = "jJm9LizeFCq/qCj67TPw1t16sNilnRIhY00yOzn5+kc=";
allowedIPs = ["192.168.254.5/32"];
}
{
name = "apermade";
publicKey = "3AoqIcEJus/botarevEFMIehoeDIYw0Qs0A3WnDyA04=";
allowedIPs = ["192.168.254.6/32"];
}
{
name = "owl";
publicKey = "VtZ8L8g2yKZUjhRPQecF0f24WneBF+uxS2BlwhhFZhQ=";
allowedIPs = ["192.168.254.7/32"];
}
{
name = "lavriv";
publicKey = "k7HnP/LN57ZTaVRreN0LYJMIjrkUkpppVJUx1pWXQQc=";
allowedIPs = ["192.168.254.8/32"];
}
{
name = "vsalnikova";
publicKey = "ugnH3K1xs8bu42mNgTjz7yua8X8IpcJ2XRRdqTlQKlA=";
allowedIPs = ["192.168.254.9/32"];
}
{
name = "kulychevaa";
publicKey = "KiezRV3t23p8QRY3hJbEBMRm8qNQLWP0bFIu8lx4Vx0=";
allowedIPs = ["192.168.254.10/32"];
}
{
name = "aaronchikov";
publicKey = "jcojWbtqBnjQDnKMXXlQc+kX3kHgfTAn0V/Oi7bEm2c=";
allowedIPs = ["192.168.254.11/32"];
}
{
name = "sabomov";
publicKey = "C6GHdtWN3BxIF0DVx7/XGB7maUbhZnifDEBjyhLSVEs=";
allowedIPs = ["192.168.254.12/32"];
}
{
name = "sabomov_v2";
publicKey = "f1lNooi1anFZt00BW3Saz6r3+UzBV2tzwGnZz06oBk8=";
allowedIPs = ["192.168.254.13/32"];
}
{
name = "kulychevaa_mbp";
publicKey = "nKKvqyf3oPG40B313jzzBJGqi1TpwSLjcm7HED2bg2w=";
allowedIPs = ["192.168.254.14/32"];
}
{
name = "tomin_a";
publicKey = "Jr37wO1gDN87h5DDw8HieCnwDpuVVgDiRviSIcBwEww=";
allowedIPs = ["192.168.254.15/32"];
}
];
};
};
};
};
programs = {
neovim = {
Expand Down
6 changes: 4 additions & 2 deletions secrets/nl.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
wg:
privateKey: ENC[AES256_GCM,data:r4MkLwuhxABKsoNaj32nHk8ETCVfbIrDDzI8MgybWx2lIOV9N/0xHeommio=,iv:3pPAB627qdeBnZ13W0Ce16cAsVdiOKHGkblJLpWVy3k=,tag:KaMcZf6aBfaiYd9vvSTuqg==,type:str]
minio: ENC[AES256_GCM,data:Y9fHCbkA3k2VaqwwIRtYWrj1/QXBh/SuW/Go0MzcGjBI3NPHJMU0RooBqUkL6SIA8066d5Xx/l21,iv:JYDL8claZB6/qwXAZLuhJ3hxtxyIUtHRdYxnfkILbRc=,tag:Qw8qKMgnCIgA4FgxKDv0OA==,type:str]
openvpn:
ca.crt: ENC[AES256_GCM,data:GyVfoNDgJsDk0SX7v7p4aSkHtZaQHPEr/n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upHZWo1HFFpKxtrvKAQ9DrjW3r1Sf24ztAezxRexaHqk/4kPkpTFTqHM4J5Saj8UXqKO1yLZmbxObLBT/HIOL+quwIcFcC6rHlg60MC4XtOIHf6+WqbhKoDbh3wfZVwSkUx0E8/HCHQMXoHFA8jyQ==,iv:A/bZIn1p733L2J47hdOFgqEEeUAGm4LiZof/jre+gW4=,tag:q9ZOiiwkMu0L2Z4XtcuYng==,type:str]
Expand All @@ -19,8 +21,8 @@ sops:
UnlsMmp5OFowa3N3RTJ5VUFZZkFWMXcK2JO3LPdAopTUyuJTlHA3wIkKyQe9YOFz
DTn0pOf6tPiN9DfwQbbfNiI+KwpGvNpW1zK6jnmwqq0Bpl30C0A9cw==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2023-09-18T22:50:04Z"
mac: ENC[AES256_GCM,data:6VVKIexzqWAdeHH8Tv7ngPmPlHbellh3AZJpu+w8wW+jQRv2uyM9jtvlDfaKq0tzk/tt2JSWt7w5da3r1dLE26p4ykPt5tC7Ysh1wVs8ga2aVMeInvgekVbJtf8iffmhJi7jTZsneicFEwhi6vl00oEae5Hu5mtgivmkIqnLjZQ=,iv:PtIaokUFEkCMQnotKha+k7EbAeGySTyI75BQEpSuWhE=,tag:1Fp7O9gTbXfRsRB2/qfPdA==,type:str]
lastmodified: "2023-09-22T22:53:20Z"
mac: ENC[AES256_GCM,data:Xy3+Md34YBACHQmmGx2A3RVCFaXqdD3EqFUvS7z0evepfndGll9/ntgS0/r90k3PZVvXA1rifVlgMPYuY6lejpAyTGQ7EmH5c3+dbCG/pldjTyQtuOO/wq63dkT9LQEJ9ShKb9eVIjsrtmAl6V/b2A9gQxTjbIchV6bbLoumHRE=,iv:+MqZh/50ZL3Szt5yb0Y8C+iAl/Dbs8XxJVZn7tMwh1M=,tag:M5EAueNj969h0DwwiFCN0w==,type:str]
pgp:
- created_at: "2023-07-23T04:08:39Z"
enc: |
Expand Down

0 comments on commit 03b4200

Please sign in to comment.