idiosyn/modules/musl.nix

20 lines
660 B
Nix
Raw Normal View History

2024-07-21 16:55:31 +02:00
{ 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.callPackage ../pkgs/locale-archive-stub.nix { });
i18n.supportedLocales = lib.mkDefault [ ];
programs.command-not-found.enable = lib.mkDefault false;
programs.less.lessopen = lib.mkDefault null;
security.pam.services.login.updateWtmp = lib.mkForce false;
services.nscd.enable = lib.mkForce false;
system.nssModules = lib.mkForce [ ];
};
}