Compare commits
No commits in common. "599690ede5fc31ae6e4c133cd0ffa152ab873e4e" and "350c745cf1260ce934363a7fffa771a787867db1" have entirely different histories.
599690ede5
...
350c745cf1
2 changed files with 2 additions and 20 deletions
|
@ -21,6 +21,7 @@
|
||||||
"grafana"
|
"grafana"
|
||||||
"prometheus-exporters"
|
"prometheus-exporters"
|
||||||
"loki"
|
"loki"
|
||||||
|
"promtail"
|
||||||
"restic"
|
"restic"
|
||||||
"atuin"
|
"atuin"
|
||||||
"immich"
|
"immich"
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
let
|
|
||||||
interface = "enP4p65s0";
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
services.adguardhome = {
|
services.adguardhome = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -9,7 +6,7 @@ in
|
||||||
settings = {
|
settings = {
|
||||||
dhcp = {
|
dhcp = {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
interface_name = interface;
|
interface_name = "enP4p65s0";
|
||||||
|
|
||||||
dhcpv4 = {
|
dhcpv4 = {
|
||||||
gateway_ip = "10.1.1.1";
|
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;
|
systemd.services.adguardhome.serviceConfig.DynamicUser = lib.mkForce false;
|
||||||
|
|
||||||
networking.firewall.allowedUDPPorts = [
|
networking.firewall.allowedUDPPorts = [
|
||||||
|
@ -39,21 +35,6 @@ in
|
||||||
67
|
67
|
||||||
];
|
];
|
||||||
networking.firewall.allowedTCPPorts = [ 53 ];
|
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 = [
|
environment.persistence."/persist".directories = [
|
||||||
"/var/lib/AdGuardHome"
|
"/var/lib/AdGuardHome"
|
||||||
];
|
];
|
||||||
|
|
Loading…
Add table
Reference in a new issue