packages/nixpak: use locale module

This commit is contained in:
Max Headroom 2022-12-05 16:53:32 +01:00
parent 52e92a2f83
commit 6516e2a36c

View file

@ -1,10 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let let
locales = pkgs.glibcLocales.override {
allLocales = true;
};
fonts = with pkgs; [ fonts = with pkgs; [
cantarell-fonts cantarell-fonts
dejavu_fonts dejavu_fonts
@ -52,6 +48,7 @@ in
}; };
gpu.enable = lib.mkDefault true; gpu.enable = lib.mkDefault true;
gpu.provider = "bundle"; gpu.provider = "bundle";
locale.enable = true;
bubblewrap = { bubblewrap = {
network = lib.mkDefault false; network = lib.mkDefault false;
bind.rw = [ bind.rw = [
@ -78,7 +75,6 @@ in
"${pkgs.gnome.adwaita-icon-theme}/share/icons" "${pkgs.gnome.adwaita-icon-theme}/share/icons"
"${pkgs.gnome.adwaita-icon-theme}/share/pixmaps" "${pkgs.gnome.adwaita-icon-theme}/share/pixmaps"
]; ];
LOCALE_ARCHIVE = "${locales}/lib/locale/locale-archive";
}; };
}; };
}; };