mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
nixos/oddjob: init at 0.34.7
This commit is contained in:
parent
6bc52c386f
commit
162893f92a
@ -222,6 +222,7 @@
|
|||||||
./programs/noisetorch.nix
|
./programs/noisetorch.nix
|
||||||
./programs/npm.nix
|
./programs/npm.nix
|
||||||
./programs/oblogout.nix
|
./programs/oblogout.nix
|
||||||
|
./programs/oddjobd.nix
|
||||||
./programs/openvpn3.nix
|
./programs/openvpn3.nix
|
||||||
./programs/pantheon-tweaks.nix
|
./programs/pantheon-tweaks.nix
|
||||||
./programs/partition-manager.nix
|
./programs/partition-manager.nix
|
||||||
|
28
nixos/modules/programs/oddjobd.nix
Normal file
28
nixos/modules/programs/oddjobd.nix
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{ 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user