secrets 3
This commit is contained in:
@@ -44,23 +44,22 @@ in {
|
|||||||
networking = {
|
networking = {
|
||||||
hostName = "sobotka";
|
hostName = "sobotka";
|
||||||
domain = "cnst.dev";
|
domain = "cnst.dev";
|
||||||
# wireguard = {
|
firewall.allowedUDPPorts = [51820];
|
||||||
# interfaces.wg0 = {
|
wireguard = {
|
||||||
# ips = [
|
interfaces.wg1 = {
|
||||||
# "127.0.0.1/8"
|
ips = [
|
||||||
# ];
|
"127.0.0.1/8"
|
||||||
# peers = [
|
];
|
||||||
# {
|
peers = [
|
||||||
# allowedIPs = [
|
{
|
||||||
# "192.168.88.13/24"
|
name = "kima";
|
||||||
# ];
|
allowedIPs = ["192.168.88.13/24"];
|
||||||
# # endpoint = "demo.wireguard.io:12913";
|
publicKey = "cUeRvwTwrL5GRc4dHjea89RJSa1kh4kIA/sHYzmscyQ=";
|
||||||
# publicKey = "cUeRvwTwrL5GRc4dHjea89RJSa1kh4kIA/sHYzmscyQ=";
|
}
|
||||||
# }
|
];
|
||||||
# ];
|
privateKeyFile = config.age.secrets.wgSobotkaPrivateKey.path;
|
||||||
# privateKeyFile = config.age.secrets.wgSobotkaPrivateKey.path;
|
};
|
||||||
# };
|
};
|
||||||
# };
|
|
||||||
};
|
};
|
||||||
|
|
||||||
powerManagement.enable = false;
|
powerManagement.enable = false;
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
deluge.enable = true;
|
deluge.enable = true;
|
||||||
wireguard-netns = {
|
wireguard-netns = {
|
||||||
enable = true;
|
enable = true;
|
||||||
namespace = "vpn2";
|
namespace = "vpn";
|
||||||
configFile = config.age.secrets.wgCredentials.path;
|
configFile = config.age.secrets.wgCredentials.path;
|
||||||
privateIP = "10.68.145.193";
|
privateIP = "10.68.145.193";
|
||||||
dnsIP = "10.64.0.1";
|
dnsIP = "10.64.0.1";
|
||||||
|
|||||||
Reference in New Issue
Block a user