summary refs log tree commit diff
path: root/nixos/modules/system/boot/systemd/userdbd.nix
blob: 994aa3ca3b8c173f0402c4f3db185ac60043e2c8 (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 ''
    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" ];
  };
}