mirror of
https://github.com/callumio/nixfiles.git
synced 2025-12-17 03:29:20 +00:00
16 lines
375 B
Nix
16 lines
375 B
Nix
{config, ...}: {
|
|
networking = {
|
|
hostName = "hermes";
|
|
enableIPv6 = false;
|
|
firewall.allowedTCPPorts = [80 443 8265];
|
|
firewall.checkReversePath = false;
|
|
iproute2.enable = true;
|
|
iproute2.rttablesExtraConfig = ''
|
|
200 vpn
|
|
'';
|
|
wg-quick.interfaces.wg1 = {
|
|
configFile = config.age.secrets.wg-conf.path;
|
|
table = "vpn";
|
|
};
|
|
};
|
|
}
|