This repository has been archived on 2024-08-18. You can view files and clone it, but cannot push or open issues or pull requests.
en_EU/flake.nix

19 lines
587 B
Nix

{
description = "Custom locale";
outputs = { self, ... }: {
overlays.default = final: prev: {
glibcLocales = prev.glibcLocales.overrideAttrs (base: {
buildInputs = base.buildInputs ++ [ ./en_EU ];
postPatch = base.postPatch + ''
cp ${prev.lib.escapeShellArg ./en_EU} localedata/locales/en_EU
echo 'en_EU.UTF-8/UTF-8 \' >>localedata/SUPPORTED
'';
});
};
nixosModules.default = { lib, ... }: {
nixpkgs.overlays = [ self.overlays.default ];
i18n.defaultLocale = lib.mkDefault "en_EU.UTF-8";
};
};
}