0d9fc34957
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
18 lines
429 B
Nix
18 lines
429 B
Nix
{ config, lib, ... }:
|
|
|
|
let
|
|
cfg = config.services.userdbd;
|
|
in
|
|
{
|
|
options.services.userdbd.enable = lib.mkEnableOption (lib.mdDoc ''
|
|
Enables 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" ];
|
|
};
|
|
}
|