2014-12-13 16:48:39 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
#
|
|
|
|
# interface
|
|
|
|
#
|
|
|
|
options = {
|
|
|
|
services.gdomap = {
|
2016-07-07 18:54:32 +00:00
|
|
|
enable = mkEnableOption "GNUstep Distributed Objects name server";
|
|
|
|
};
|
2014-12-13 16:48:39 +00:00
|
|
|
};
|
2016-07-06 23:28:21 +00:00
|
|
|
|
2014-12-13 16:48:39 +00:00
|
|
|
#
|
|
|
|
# implementation
|
|
|
|
#
|
|
|
|
config = mkIf config.services.gdomap.enable {
|
|
|
|
# NOTE: gdomap runs as root
|
2015-01-25 16:34:52 +00:00
|
|
|
# TODO: extra user for gdomap?
|
2014-12-13 16:48:39 +00:00
|
|
|
systemd.services.gdomap = {
|
|
|
|
description = "gdomap server";
|
|
|
|
wantedBy = [ "multi-user.target" ];
|
|
|
|
after = [ "network.target" ];
|
2016-07-06 23:28:21 +00:00
|
|
|
path = [ pkgs.gnustep.base ];
|
2016-07-07 18:54:32 +00:00
|
|
|
serviceConfig.ExecStart = "${pkgs.gnustep.base}/bin/gdomap -f";
|
2014-12-13 16:48:39 +00:00
|
|
|
};
|
|
|
|
};
|
2015-01-29 15:56:26 +00:00
|
|
|
}
|