2014-12-13 16:48:39 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
#
|
|
|
|
# interface
|
|
|
|
#
|
|
|
|
options = {
|
|
|
|
services.gdomap = {
|
2016-07-07 19:54:32 +01:00
|
|
|
enable = mkEnableOption "GNUstep Distributed Objects name server";
|
|
|
|
};
|
2014-12-13 16:48:39 +00:00
|
|
|
};
|
2016-07-07 00:28:21 +01: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-07 00:28:21 +01:00
|
|
|
path = [ pkgs.gnustep.base ];
|
2016-07-07 19:54:32 +01: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
|
|
|
}
|