forked from mirrors_public/oddlama_nix-config
feat: finish migration to new globals system for wireguard
This commit is contained in:
parent
b885d1062b
commit
a1623fb97c
29 changed files with 204 additions and 214 deletions
|
@ -22,13 +22,15 @@
|
|||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
boot.mode = "bios";
|
||||
|
||||
wireguard.proxy-sentinel.firewallRuleForAll.allowedTCPPorts = [
|
||||
80
|
||||
443
|
||||
];
|
||||
wireguard.proxy-sentinel.firewallRuleForAll.allowedUDPPorts = [
|
||||
443
|
||||
];
|
||||
globals.wireguard.proxy-sentinel.hosts.${config.node.name}.firewallRuleForAll = {
|
||||
allowedTCPPorts = [
|
||||
80
|
||||
443
|
||||
];
|
||||
allowedUDPPorts = [
|
||||
443
|
||||
];
|
||||
};
|
||||
|
||||
users.groups.acme.members = [ "nginx" ];
|
||||
services.nginx.enable = true;
|
||||
|
|
|
@ -55,9 +55,7 @@ in
|
|||
|
||||
globals.wireguard.proxy-sentinel = {
|
||||
host = config.networking.fqdn;
|
||||
port = 51443;
|
||||
cidrv4 = "10.43.0.0/24";
|
||||
cidrv6 = "fd00:43::/120";
|
||||
openFirewall = true;
|
||||
hosts.${config.node.name}.server = true;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue