This commit is contained in:
parent
b0158e96c8
commit
8ebf4b74e6
7 changed files with 73 additions and 74 deletions
|
|
@ -1,71 +1,21 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
secrets,
|
||||
...
|
||||
}:
|
||||
{
|
||||
sops.secrets.mullvad = {
|
||||
sopsFile = "${secrets}/mullvad.yaml";
|
||||
owner = "root";
|
||||
format = "yaml";
|
||||
};
|
||||
|
||||
vpnNamespaces.mullvad = {
|
||||
enable = true;
|
||||
wireguardConfigFile = config.sops.secrets.mullvad.path;
|
||||
accessibleFrom = [
|
||||
"192.168.0.0/16"
|
||||
];
|
||||
portMappings = [
|
||||
{
|
||||
from = 9091;
|
||||
to = 9091;
|
||||
} # UI Port.
|
||||
{
|
||||
from = 5432;
|
||||
to = 5432;
|
||||
} # DB Port.
|
||||
];
|
||||
openVPNPorts = [
|
||||
{
|
||||
port = 50901;
|
||||
protocol = "both";
|
||||
}
|
||||
{
|
||||
port = 50902;
|
||||
protocol = "both";
|
||||
}
|
||||
{
|
||||
port = 50903;
|
||||
protocol = "both";
|
||||
}
|
||||
{
|
||||
port = 50904;
|
||||
protocol = "both";
|
||||
}
|
||||
{
|
||||
port = 50905;
|
||||
protocol = "both";
|
||||
}
|
||||
{
|
||||
port = 50906;
|
||||
protocol = "both";
|
||||
}
|
||||
{
|
||||
port = 50907;
|
||||
protocol = "both";
|
||||
}
|
||||
{
|
||||
port = 50908;
|
||||
protocol = "both";
|
||||
}
|
||||
{
|
||||
port = 50909;
|
||||
protocol = "both";
|
||||
}
|
||||
];
|
||||
};
|
||||
vpnNamespaces.mullvad.portMappings = [
|
||||
{
|
||||
from = 9091;
|
||||
to = 9091;
|
||||
} # UI Port.
|
||||
{
|
||||
from = 5432;
|
||||
to = 5432;
|
||||
} # DB Port.
|
||||
];
|
||||
vpnNamespaces.mullvad.openVPNPorts = [
|
||||
{
|
||||
port = 50909;
|
||||
protocol = "both";
|
||||
}
|
||||
];
|
||||
|
||||
services.nginx = {
|
||||
virtualHosts."dl.donsz.nl" = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue