From 33bf2acc5e0cdbcc93bfa758f6e3aa2c5385d32a Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Wed, 28 Aug 2019 09:04:58 +0800 Subject: [PATCH] nixos/darkhttpd: fix package reference --- nixos/modules/services/web-servers/darkhttpd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/web-servers/darkhttpd.nix b/nixos/modules/services/web-servers/darkhttpd.nix index 80870118c334ba..d6649fd472d9fe 100644 --- a/nixos/modules/services/web-servers/darkhttpd.nix +++ b/nixos/modules/services/web-servers/darkhttpd.nix @@ -67,7 +67,7 @@ in { wantedBy = [ "multi-user.target" ]; serviceConfig = { DynamicUser = true; - ExecStart = "${cfg.package}/bin/darkhttpd ${args}"; + ExecStart = "${pkgs.darkhttpd}/bin/darkhttpd ${args}"; AmbientCapabilities = lib.mkIf (cfg.port < 1024) [ "CAP_NET_BIND_SERVICE" ]; Restart = "on-failure"; RestartSec = "2s";