mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 16:42:09 +00:00
f541715057
This gets rid of the rest of the pidfile stuff and makes gdomap just act like a normal systemd process. Also reword "enable" option.
33 lines
636 B
Nix
33 lines
636 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.services.gdomap;
|
|
in
|
|
{
|
|
#
|
|
# interface
|
|
#
|
|
options = {
|
|
services.gdomap = {
|
|
enable = mkEnableOption "GNUstep Distributed Objects name server";
|
|
};
|
|
};
|
|
|
|
#
|
|
# implementation
|
|
#
|
|
config = mkIf config.services.gdomap.enable {
|
|
# NOTE: gdomap runs as root
|
|
# TODO: extra user for gdomap?
|
|
systemd.services.gdomap = {
|
|
description = "gdomap server";
|
|
wantedBy = [ "multi-user.target" ];
|
|
after = [ "network.target" ];
|
|
path = [ pkgs.gnustep.base ];
|
|
serviceConfig.ExecStart = "${pkgs.gnustep.base}/bin/gdomap -f";
|
|
};
|
|
};
|
|
}
|