nixpkgs/modules/services/networking/oidentd.nix
Eelco Dolstra da542dc1ae * Added a module for oidentd.
svn path=/nixos/trunk/; revision=30381
2011-11-10 23:06:24 +00:00

42 lines
798 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ config, pkgs, ... }:
with pkgs.lib;
{
###### interface
options = {
services.oidentd.enable = mkOption {
default = false;
type = types.bool;
description = ''
Whether to enable oidentd, an implementation of the Ident
protocol (RFC 1413). It allows remote systems to identify the
name of the user associated with a TCP connection.
'';
};
};
###### implementation
config = mkIf config.services.oidentd.enable {
jobs.oidentd =
{ startOn = "started network-interfaces";
daemonType = "fork";
exec = "${pkgs.oidentd}/sbin/oidentd -u oidentd -g nogroup";
};
users.extraUsers = singleton
{ name = "oidentd";
description = "Ident Protocol daemon user";
};
};
}