nixpkgs/nixos/modules/services/networking/gdomap.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
609 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
with lib;
{
#
# interface
#
options = {
services.gdomap = {
enable = mkEnableOption (lib.mdDoc "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";
};
};
}