This commit is contained in:
m3tam3re 2023-02-11 22:12:55 +01:00
parent 07d1194d90
commit 70228cc485
6 changed files with 23 additions and 4 deletions

View File

@ -30,8 +30,8 @@
home.packages = with pkgs; [
alacritty
autotiling
brave
blueberry
brave
brightnessctl
feh
flameshot

View File

@ -19,8 +19,8 @@
from = 3000;
to = 3100;
}];
firewall.allowedTCPPorts = [ 80 443 5432 3306 3478 ];
firewall.allowedUDPPorts = [ 51820 ];
firewall.allowedTCPPorts = [ 53 80 443 5432 3306 3478 ];
firewall.allowedUDPPorts = [ 53 51820 ];
firewall.allowedUDPPortRanges = [{
from = 3478;
to = 3481;

View File

@ -0,0 +1,7 @@
{
services.adguardhome = {
enable = true;
mutableSettings = true;
settings.bind_port = 3008;
};
}

View File

@ -1,7 +1,7 @@
{ config, outputs, ... }: {
virtualisation.oci-containers.containers."wireguard" = {
image = "weejewel/wg-easy";
environment = { WG_HOST = "wg.lanakk.com"; };
environment = { WG_HOST = "wg.lanakk.com"; WG_DEFAULT_DNS = "10.88.0.1"; };
ports = [ "3007:51821/tcp" "51820:51820/udp" ];
volumes = [ "wireguard_data:/etc/wireguard" ];
extraOptions = [

View File

@ -1,5 +1,6 @@
{
imports = [
./adguard.nix
./container.nix
./gitea.nix
./invidious.nix

View File

@ -50,6 +50,7 @@
nextcloud.loadBalancer.servers = [{ url = "http://localhost:3005/"; }];
invidious.loadBalancer.servers = [{ url = "http://localhost:3006/"; }];
wireguard.loadBalancer.servers = [{ url = "http://localhost:3007/"; }];
adguard.loadBalancer.servers = [{ url = "http://localhost:3008/"; }];
};
routers = {
api = {
@ -139,6 +140,16 @@
middlewares = "auth";
entrypoints = "websecure";
};
adguard = {
rule = "Host(`ab.lanakk.com`)";
tls = {
certResolver = "godaddy";
domains = "ab.lanakk.com";
};
service = "adguard";
middlewares = "auth";
entrypoints = "websecure";
};
};
};
};