From 2eadf585107e743a2ee3878b045e05f924c7046d Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 22 Dec 2021 15:39:21 +0100 Subject: vidhar: dhcpcd: ... --- hosts/vidhar/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'hosts/vidhar/default.nix') diff --git a/hosts/vidhar/default.nix b/hosts/vidhar/default.nix index 44e86067..2d117c3d 100644 --- a/hosts/vidhar/default.nix +++ b/hosts/vidhar/default.nix @@ -182,12 +182,18 @@ ''; in { Type = "forking"; - PIDFile = "/run/dhcpcd.pid"; + PIDFile = "/run/dhcpcd/pid"; + RuntimeDirectory = "dhcpcd"; ExecStart = "@${pkgs.dhcpcd}/sbin/dhcpcd dhcpcd -q --config ${dhcpcdConf}"; ExecReload = "${pkgs.dhcpcd}/sbin/dhcpcd --rebind"; Restart = "always"; }; }; + users.users.dhcpcd = { + isSystemUser = true; + group = "dhcpcd"; + }; + users.groups.dhcpcd = {}; services.timesyncd.enable = false; services.chrony = { -- cgit v1.2.3