mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-06 21:17:14 -06:00
chore: moved wireguard config
This commit is contained in:
parent
973297a2a8
commit
e98394d757
13 changed files with 412 additions and 88 deletions
|
|
@ -5,17 +5,13 @@
|
|||
}:
|
||||
let
|
||||
inherit (flake.config.machines.devices) ceres;
|
||||
inherit (flake.config.services) instances;
|
||||
wireguardService = instances.wireGuard;
|
||||
in
|
||||
{
|
||||
networking = {
|
||||
hostName = ceres.name;
|
||||
networkmanager = {
|
||||
enable = true;
|
||||
unmanaged = [
|
||||
"interface-name:br-vms"
|
||||
"interface-name:vm-*"
|
||||
];
|
||||
};
|
||||
networkmanager.enable = true;
|
||||
nftables.enable = true;
|
||||
useDHCP = lib.mkDefault true;
|
||||
firewall = {
|
||||
|
|
@ -27,6 +23,11 @@ in
|
|||
587 # SMTP
|
||||
2525 # SMTP
|
||||
9999 # NC
|
||||
wireguardService.ports.port0 # WireGuard
|
||||
];
|
||||
allowedUDPPorts = [
|
||||
wireguardService.ports.port0 # WireGuard
|
||||
wireguardService.ports.port1 # WireGuard
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue