diff --git a/systems/orangepihole/configuration.nix b/systems/orangepihole/configuration.nix index fd90616..10cc0c5 100644 --- a/systems/orangepihole/configuration.nix +++ b/systems/orangepihole/configuration.nix @@ -41,16 +41,19 @@ device = "/persist/swapfile"; size = 1024; }]; - services.unbound = { - enable = true; - settings = { - server = { - qname-minimisation = "yes"; - interface = [ "end0" ]; - access-control = [ "10.0.0.0/8 allow" "fc::/7 allow" ]; + services = { + unbound = { + enable = true; + settings = { + server = { + qname-minimisation = "yes"; + interface = [ "end0" ]; + access-control = [ "10.0.0.0/8 allow" "fc::/7 allow" ]; + }; + include = [ "/etc/unbound/ads.conf" "${./unbound-local.conf}" ]; }; - include = [ "/etc/unbound/ads.conf" "${./unbound-local.conf}" ]; }; + journald.storage = "volatile"; }; systemd = { @@ -75,7 +78,7 @@ ]; persistence."/persist" = { hideMounts = true; - directories = [ "/var/lib/nixos" "/var/log" "/var/lib/systemd" "/tmp" ]; + directories = [ "/var/lib/nixos" "/var/lib/systemd" "/tmp" ]; files = [ "/etc/machine-id" "/etc/adjtime"