2023-07-08 19:54:25 +02:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.oddjobd;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.programs.oddjobd = {
|
|
|
|
enable = lib.mkEnableOption "oddjob";
|
|
|
|
package = lib.mkPackageOption pkgs "oddjob" {};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
systemd.packages = [ cfg.package ];
|
|
|
|
|
|
|
|
systemd.services.oddjobd = {
|
|
|
|
wantedBy = [ "multi-user.target"];
|
|
|
|
after = [ "network.target"];
|
|
|
|
description = "DBUS Odd-job Daemon";
|
|
|
|
enable = true;
|
|
|
|
documentation = [ "man:oddjobd(8)" "man:oddjobd.conf(5)" ];
|
|
|
|
serviceConfig = {
|
|
|
|
Type = "dbus";
|
|
|
|
BusName = "org.freedesktop.oddjob";
|
2023-07-31 21:19:39 +02:00
|
|
|
ExecStart = "${lib.getBin cfg.package}/bin/oddjobd";
|
2023-07-08 19:54:25 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-11-30 23:50:47 +01:00
|
|
|
|
|
|
|
meta.maintainers = with lib.maintainers; [ SohamG ];
|
2023-07-08 19:54:25 +02:00
|
|
|
}
|