idiosyn/modules/musl.nix
2024-07-22 11:12:01 +02:00

20 lines
614 B
Nix

{ 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 {
i18n.glibcLocales = lib.mkDefault (pkgs.runCommand "locale-archive-stub" {
preferLocalBuild = true;
} ''
mkdir -p "$out/lib/locale"
touch "$out/lib/locale/locale-archive"
'');
security.pam.services.login.updateWtmp = lib.mkForce false;
services.nscd.enable = lib.mkForce false;
system.nssModules = lib.mkForce [ ];
};
}