Skip to content

Commit

Permalink
technitium-dns-server: fix inaccessible state directory
Browse files Browse the repository at this point in the history
  • Loading branch information
corngood committed Feb 19, 2025
1 parent 332682c commit 816b50b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions nixos/modules/services/networking/technitium-dns-server.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

let
cfg = config.services.technitium-dns-server;
stateDir = "/var/lib/technitium-dns-server";
inherit (lib)
mkEnableOption
mkPackageOption
Expand Down Expand Up @@ -61,13 +60,11 @@ in
after = [ "network.target" ];

serviceConfig = {
ExecStart = "${cfg.package}/bin/technitium-dns-server ${stateDir}";
ExecStart = "${cfg.package}/bin/technitium-dns-server $STATE_DIRECTORY";

DynamicUser = true;

StateDirectory = "technitium-dns-server";
WorkingDirectory = stateDir;
BindPaths = stateDir;

Restart = "always";
RestartSec = 10;
Expand Down

0 comments on commit 816b50b

Please sign in to comment.