1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

chore: persist adguardhome state

This commit is contained in:
oddlama 2023-07-06 02:49:32 +02:00
parent 3f6286ef31
commit 554d25d94b
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
2 changed files with 10 additions and 0 deletions

View file

@ -42,6 +42,8 @@ in {
services.adguardhome = {
enable = true;
# TODO allow mutable settings, replace 123.123.123.123 with
# simpler sed dns.host_addr logic.
mutableSettings = false;
settings = {
bind_host = config.meta.wireguard.proxy-sentinel.ipv4;

View file

@ -157,6 +157,14 @@
group = "telegraf";
mode = "0700";
}
]
++ lib.optionals config.services.adguardhome.enable [
{
directory = "/var/lib/adguardhome";
user = "adguardhome";
group = "adguardhome";
mode = "0700";
}
];
};
}