2025-01-26 00:30:30 +01:00

32 lines
601 B
Nix

{
config,
lib,
pkgs,
...
}:
{
#
# interface
#
options = {
services.gdomap = {
enable = lib.mkEnableOption "GNUstep Distributed Objects name server";
};
};
#
# implementation
#
config = lib.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";
};
};
}