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