2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
18 lines
421 B
Nix
18 lines
421 B
Nix
{ config, lib, ... }:
|
|
|
|
let
|
|
cfg = config.services.userdbd;
|
|
in
|
|
{
|
|
options.services.userdbd.enable = lib.mkEnableOption (lib.mdDoc ''
|
|
the systemd JSON user/group record lookup service
|
|
'');
|
|
config = lib.mkIf cfg.enable {
|
|
systemd.additionalUpstreamSystemUnits = [
|
|
"systemd-userdbd.socket"
|
|
"systemd-userdbd.service"
|
|
];
|
|
|
|
systemd.sockets.systemd-userdbd.wantedBy = [ "sockets.target" ];
|
|
};
|
|
}
|