about summary refs log tree commit diff
path: root/nixpkgs/nixos/modules/services/networking/gdomap.nix
blob: 53ea8b6875d8ec840fb8a6700d5846fadee6304c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ 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";
    };
  };
}