2023-01-20 10:41:00 +00:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.userdbd;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.services.userdbd.enable = lib.mkEnableOption (lib.mdDoc ''
|
2023-11-16 04:20:00 +00:00
|
|
|
the systemd JSON user/group record lookup service
|
2023-01-20 10:41:00 +00:00
|
|
|
'');
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
systemd.additionalUpstreamSystemUnits = [
|
|
|
|
"systemd-userdbd.socket"
|
|
|
|
"systemd-userdbd.service"
|
|
|
|
];
|
|
|
|
|
|
|
|
systemd.sockets.systemd-userdbd.wantedBy = [ "sockets.target" ];
|
|
|
|
};
|
|
|
|
}
|