{ config, lib, ... }: let cfg = config.vhack.nscd; in { options.vhack.nscd = { # NOTE(@bpeetz): This is enabled by default in NixOS. # Because of this reason: # > Whether to enable the Name Service Cache Daemon. Disabling this is # > strongly discouraged, as this effectively disables NSS Lookups from # > all non-glibc NSS modules, including the ones provided by systemd. # # As such we should also always enable it. <2024-12-25> enable = (lib.mkEnableOption "nscd") // {default = true;}; }; config = lib.mkIf cfg.enable { users = { users.nscd.uid = config.vhack.constants.ids.uids.nscd; groups.nscd.gid = config.vhack.constants.ids.gids.nscd; }; }; }