mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
da542dc1ae
svn path=/nixos/trunk/; revision=30381
42 lines
798 B
Nix
42 lines
798 B
Nix
{ 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";
|
||
};
|
||
|
||
};
|
||
|
||
}
|