From 49f2ada271af79a0c5707e5fe26affa70e3cb26e Mon Sep 17 00:00:00 2001 From: Andrea Ciceri Date: Fri, 29 Nov 2024 11:18:55 +0100 Subject: [PATCH] Persist adguard-home state --- modules/adguard-home/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/adguard-home/default.nix b/modules/adguard-home/default.nix index 988b8ca..a1ec2aa 100644 --- a/modules/adguard-home/default.nix +++ b/modules/adguard-home/default.nix @@ -2,6 +2,7 @@ services.adguardhome = { enable = true; port = 3000; + mutableSettings = true; settings = { openFirewall = true; }; @@ -11,4 +12,7 @@ 53 ]; networking.firewall.allowedUDPPorts = [ 53 ]; + environment.persistence."/persist".directories = [ + "/var/lib/AdGuardHome" + ]; }