diff options
| -rw-r--r-- | system-profiles/default-locale.nix | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/system-profiles/default-locale.nix b/system-profiles/default-locale.nix index 68bc4240..add98696 100644 --- a/system-profiles/default-locale.nix +++ b/system-profiles/default-locale.nix | |||
| @@ -4,22 +4,10 @@ | |||
| 4 | config = lib.foldr lib.recursiveUpdate {} ([ | 4 | config = lib.foldr lib.recursiveUpdate {} ([ |
| 5 | { | 5 | { |
| 6 | i18n = { | 6 | i18n = { |
| 7 | defaultLocale = "en_SE.UTF-8"; | 7 | defaultLocale = "en_DK.UTF-8"; |
| 8 | |||
| 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 | }; | 8 | }; |
| 9 | console.keyMap = mkDefault "dvorak-programmer"; | ||
| 10 | time.timeZone = mkDefault "Europe/Berlin"; | ||
| 23 | } | 11 | } |
| 24 | ] ++ (lib.optional (options ? i18n.extraLocales) { | 12 | ] ++ (lib.optional (options ? i18n.extraLocales) { |
| 25 | i18n.extraLocales = [ "C.UTF-8/UTF-8" "en_US.UTF-8/UTF-8" ]; | 13 | i18n.extraLocales = [ "C.UTF-8/UTF-8" "en_US.UTF-8/UTF-8" ]; |
