3
0
Fork 0
forked from mirrors/nixpkgs

systemd-userdbd: add option to enable

This service is shipped as a part of upstream systemd but not currently
incldued in NixOS. This change adds a configuration option which may
be used to enable it
This commit is contained in:
Erin Shepherd 2022-07-10 09:24:39 +00:00
parent 97ffa54184
commit 090fc517e2
2 changed files with 27 additions and 0 deletions

View file

@ -1286,6 +1286,7 @@
./system/boot/systemd/shutdown.nix
./system/boot/systemd/tmpfiles.nix
./system/boot/systemd/user.nix
./system/boot/systemd/userdbd.nix
./system/boot/timesyncd.nix
./system/boot/tmp.nix
./system/boot/uvesafb.nix

View file

@ -0,0 +1,26 @@
{ config, lib, pkgs, utils, ... }:
with lib;
let
cfg = config.systemd.userdbd;
systemd = config.systemd.package;
in
{
options = {
systemd.userdbd.enable = mkOption {
default = false;
type = types.bool;
description = ''
Whether to enable the systemd-userdbd user/group DB lookup service
'';
};
};
config = mkIf cfg.enable {
systemd.additionalUpstreamSystemUnits = [
"systemd-userdbd.socket"
"systemd-userdbd.service"
];
systemd.sockets.systemd-userdbd.wantedBy = [ "sockets.target" ];
};
}