about summary refs log tree commit diff
path: root/nixos/modules/system/boot/systemd/userdbd.nix
blob: e7f6d42341c4e19f7a4f8383245b95c6ef41c354 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ 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" ];
  };
}