2023-01-20 10:41:00 +00:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.userdbd;
|
|
|
|
in
|
|
|
|
{
|
2024-04-21 15:54:59 +00:00
|
|
|
options.services.userdbd.enable = lib.mkEnableOption ''
|
2023-11-16 04:20:00 +00:00
|
|
|
the systemd JSON user/group record lookup service
|
2024-04-21 15:54:59 +00:00
|
|
|
'';
|
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" ];
|
|
|
|
};
|
|
|
|
}
|