summaryrefslogtreecommitdiff
path: root/system-profiles/default-locale.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2026-02-06 09:42:40 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2026-02-06 09:42:40 +0100
commit0ba501917e5f757eee561bf9f7bf6a2a85d99dc1 (patch)
tree22805e9637d7dc8fee6491d36512b9b4ac963639 /system-profiles/default-locale.nix
parent493a0aa7fe977cfad22b872b95cc90e7d0d96550 (diff)
downloadnixos-0ba501917e5f757eee561bf9f7bf6a2a85d99dc1.tar
nixos-0ba501917e5f757eee561bf9f7bf6a2a85d99dc1.tar.gz
nixos-0ba501917e5f757eee561bf9f7bf6a2a85d99dc1.tar.bz2
nixos-0ba501917e5f757eee561bf9f7bf6a2a85d99dc1.tar.xz
nixos-0ba501917e5f757eee561bf9f7bf6a2a85d99dc1.zip
bump
Diffstat (limited to 'system-profiles/default-locale.nix')
-rw-r--r--system-profiles/default-locale.nix36
1 files changed, 21 insertions, 15 deletions
diff --git a/system-profiles/default-locale.nix b/system-profiles/default-locale.nix
index 60d338cb..68bc4240 100644
--- a/system-profiles/default-locale.nix
+++ b/system-profiles/default-locale.nix
@@ -1,23 +1,29 @@
1{ lib, options, ... }: 1{ pkgs, lib, options, config, ... }:
2
3with lib;
4 2
5{ 3{
6 config = foldr recursiveUpdate {} ([ 4 config = lib.foldr lib.recursiveUpdate {} ([
7 { 5 {
8 i18n = { 6 i18n = {
9 defaultLocale = "en_DK.UTF-8"; 7 defaultLocale = "en_SE.UTF-8";
10 extraLocaleSettings = {
11 "TIME_STYLE" = "long-iso";
12 };
13 };
14 console.keyMap = mkDefault "dvorak-programmer";
15 8
16 time.timeZone = mkDefault "Europe/Berlin"; 9 glibcLocales =
10 (pkgs.glibcLocales.override {
11 allLocales = false;
12 locales = config.i18n.supportedLocales;
13 }).overrideAttrs (_: {
14 postUnpack = ''
15 cp ${pkgs.fetchurl {
16 url = "https://gist.githubusercontent.com/bmaupin/d64368e78cd359d309685fecbe2baf23/raw/e933a0fc2e727aa640f4a1cb1f699622876940fc/en_SE";
17 hash = "sha256-ArXL+rMDVWI4Mmcw8xoRlZFXhEeSQL0tLJf5pKEOx3s=";
18 }} $sourceRoot/localedata/locales/en_SE
19 echo 'en_SE.UTF-8/UTF-8 \' >> $sourceRoot/localedata/SUPPORTED
20 '';
21 });
22 };
17 } 23 }
18 ] ++ (optional (options ? i18n.extraLocales) { 24 ] ++ (lib.optional (options ? i18n.extraLocales) {
19 i18n.extraLocales = [ "C.UTF-8" "en_US.UTF-8" "en_DK.UTF-8" ]; 25 i18n.extraLocales = [ "C.UTF-8/UTF-8" "en_US.UTF-8/UTF-8" ];
20 }) ++ (optional (!(options ? i18n.extraLocales)) { 26 }) ++ (lib.optional (!(options ? i18n.extraLocales)) {
21 i18n.supportedLocales = [ "C.UTF-8/UTF-8" "en_US.UTF-8/UTF-8" "en_DK.UTF-8/UTF-8" ]; 27 i18n.supportedLocales = [ "C.UTF-8/UTF-8" "en_US.UTF-8/UTF-8" ];
22 })); 28 }));
23} 29}