nixpkgs/nixos/modules/programs/oddjobd.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
884 B
Nix
Raw Normal View History

2023-07-08 19:54:25 +02:00
{ config, pkgs, lib, ... }:
let
cfg = config.programs.oddjobd;
in
{
options = {
programs.oddjobd = {
enable = lib.mkEnableOption "oddjob, a D-Bus service which runs odd jobs on behalf of client applications";
package = lib.mkPackageOption pkgs "oddjob" {};
};
2023-07-08 19:54:25 +02:00
};
config = lib.mkIf cfg.enable {
systemd.services.oddjobd = {
wantedBy = [ "multi-user.target" ];
after = [ "network.target" "dbus.service" ];
2023-07-08 19:54:25 +02:00
description = "DBUS Odd-job Daemon";
enable = true;
documentation = [ "man:oddjobd(8)" "man:oddjobd.conf(5)" ];
serviceConfig = {
Type = "simple";
PIDFile = "/run/oddjobd.pid";
ExecStart = "${lib.getBin cfg.package}/bin/oddjobd -n -p /run/oddjobd.pid -t 300";
2023-07-08 19:54:25 +02:00
};
};
services.dbus.packages = [ cfg.package ];
2023-07-08 19:54:25 +02:00
};
meta.maintainers = with lib.maintainers; [ SohamG ];
2023-07-08 19:54:25 +02:00
}