idiosyn/modules/musl.nix
2024-07-21 23:29:56 +02:00

24 lines
681 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.runCommandNoCC "locale-archive" {
preferLocalBuild = true;
} ''
mkdir -p $out/lib/locale
touch $out/lib/locale/locale-archive
'');
supportedLocales = lib.mkDefault [ ];
};
security.pam.services.login.updateWtmp = lib.mkForce false;
services.nscd.enable = lib.mkForce false;
system.nssModules = lib.mkForce [ ];
};
}