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:
parent
3f6286ef31
commit
554d25d94b
2 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -157,6 +157,14 @@
|
|||
group = "telegraf";
|
||||
mode = "0700";
|
||||
}
|
||||
]
|
||||
++ lib.optionals config.services.adguardhome.enable [
|
||||
{
|
||||
directory = "/var/lib/adguardhome";
|
||||
user = "adguardhome";
|
||||
group = "adguardhome";
|
||||
mode = "0700";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue