mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
29 lines
690 B
Nix
29 lines
690 B
Nix
{ 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";
|
|
ExecStart = "${lib.getExe cfg.package}/bin/oddjobd";
|
|
};
|
|
};
|
|
};
|
|
}
|