Disable nscd daemon too

This commit is contained in:
Rodrigo Arias 2024-08-30 23:07:15 +02:00
parent e02d5a3999
commit 1c95d96519

View File

@ -13,6 +13,8 @@
#services.haveged.enable = true;
services.jitterentropy-rngd.enable = true;
# Prevent executing the nscd program as it seems to hang the CPU
system.activationScripts.users = lib.mkForce (
let
cfg = config.users;
@ -42,6 +44,10 @@
} else "" # keep around for backwards compatibility
);
# Also disable the nscd daemon
services.nscd.enable = false;
system.nssModules = lib.mkForce []; # Required
system.build.bootStage2 = let
useHostResolvConf = config.networking.resolvconf.enable && config.networking.useHostResolvConf;
bootStage2 = pkgs.substituteAll {