idiosyn/modules/musl.nix
2024-07-23 17:05:42 +02:00

19 lines
660 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.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 [ ];
};
}