diff options
Diffstat (limited to 'nixos/modules/services/hardware/acpid.nix')
-rw-r--r-- | nixos/modules/services/hardware/acpid.nix | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/nixos/modules/services/hardware/acpid.nix b/nixos/modules/services/hardware/acpid.nix index a20b1a1ee3a..e3421899d36 100644 --- a/nixos/modules/services/hardware/acpid.nix +++ b/nixos/modules/services/hardware/acpid.nix @@ -98,22 +98,26 @@ in config = mkIf config.services.acpid.enable { - jobs.acpid = - { description = "ACPI Daemon"; + systemd.services.acpid = { + description = "ACPI Daemon"; - wantedBy = [ "multi-user.target" ]; - after = [ "systemd-udev-settle.service" ]; + wantedBy = [ "multi-user.target" ]; + after = [ "systemd-udev-settle.service" ]; - path = [ pkgs.acpid ]; + path = [ pkgs.acpid ]; - daemonType = "fork"; - - exec = "acpid --confdir ${acpiConfDir}"; + serviceConfig = { + Type = "forking"; + }; - unitConfig.ConditionVirtualization = "!systemd-nspawn"; - unitConfig.ConditionPathExists = [ "/proc/acpi" ]; + unitConfig = { + ConditionVirtualization = "!systemd-nspawn"; + ConditionPathExists = [ "/proc/acpi" ]; }; + script = "acpid --confdir ${acpiConfDir}"; + }; + }; } |