Compare commits

..

No commits in common. "599690ede5fc31ae6e4c133cd0ffa152ab873e4e" and "350c745cf1260ce934363a7fffa771a787867db1" have entirely different histories.

2 changed files with 2 additions and 20 deletions

View file

@ -21,6 +21,7 @@
"grafana"
"prometheus-exporters"
"loki"
"promtail"
"restic"
"atuin"
"immich"

View file

@ -1,7 +1,4 @@
{ config, lib, ... }:
let
interface = "enP4p65s0";
in
{
services.adguardhome = {
enable = true;
@ -9,7 +6,7 @@ in
settings = {
dhcp = {
enabled = true;
interface_name = interface;
interface_name = "enP4p65s0";
dhcpv4 = {
gateway_ip = "10.1.1.1";
@ -31,7 +28,6 @@ in
};
};
# otherwise it creates a directory in /var/lib/private which can't be easily persisted
systemd.services.adguardhome.serviceConfig.DynamicUser = lib.mkForce false;
networking.firewall.allowedUDPPorts = [
@ -39,21 +35,6 @@ in
67
];
networking.firewall.allowedTCPPorts = [ 53 ];
networking.interfaces.${interface} = {
ipv4.addresses = [
{
address = "10.1.1.2";
prefixLength = 24;
}
];
useDHCP = false;
};
networking.defaultGateway = "10.1.1.1";
networking.nameservers = [ "127.0.0.1" ];
environment.persistence."/persist".directories = [
"/var/lib/AdGuardHome"
];