1 { config, pkgs, lib, ... }:
4 cfg = config.programs.oddjobd;
9 enable = lib.mkEnableOption "oddjob, a D-Bus service which runs odd jobs on behalf of client applications";
10 package = lib.mkPackageOption pkgs "oddjob" {};
14 config = lib.mkIf cfg.enable {
15 systemd.services.oddjobd = {
16 wantedBy = [ "multi-user.target" ];
17 after = [ "network.target" "dbus.service" ];
18 description = "DBUS Odd-job Daemon";
20 documentation = [ "man:oddjobd(8)" "man:oddjobd.conf(5)" ];
23 PIDFile = "/run/oddjobd.pid";
24 ExecStart = "${lib.getBin cfg.package}/bin/oddjobd -n -p /run/oddjobd.pid -t 300";
28 services.dbus.packages = [ cfg.package ];
31 meta.maintainers = with lib.maintainers; [ SohamG ];