{ config, lib, pkgs, modulesPath, ... }: { disabledModules = [ (modulesPath + "/config/ldso.nix") (modulesPath + "/config/stub-ld.nix") (modulesPath + "/programs/nix-ld.nix") ]; config = lib.mkIf pkgs.stdenv.hostPlatform.isMusl { security.pam.services.login.updateWtmp = lib.mkForce false; services.nscd.enable = lib.mkForce false; system.nssModules = lib.mkForce [ ]; }; }