summaryrefslogtreecommitdiff
path: root/system-profiles/default-locale.nix
diff options
context:
space:
mode:
Diffstat (limited to 'system-profiles/default-locale.nix')
-rw-r--r--system-profiles/default-locale.nix24
1 files changed, 8 insertions, 16 deletions
diff --git a/system-profiles/default-locale.nix b/system-profiles/default-locale.nix
index 60d338cb..de2db1d7 100644
--- a/system-profiles/default-locale.nix
+++ b/system-profiles/default-locale.nix
@@ -1,23 +1,15 @@
1{ lib, options, ... }: 1{ lib, options, ... }:
2 2
3with lib;
4
5{ 3{
6 config = foldr recursiveUpdate {} ([ 4 config = lib.foldr lib.recursiveUpdate {} ([
7 { 5 {
8 i18n = { 6 i18n.defaultLocale = "en_DK.UTF-8";
9 defaultLocale = "en_DK.UTF-8"; 7 console.keyMap = lib.mkDefault "dvorak-programmer";
10 extraLocaleSettings = { 8 time.timeZone = lib.mkDefault "Europe/Berlin";
11 "TIME_STYLE" = "long-iso";
12 };
13 };
14 console.keyMap = mkDefault "dvorak-programmer";
15
16 time.timeZone = mkDefault "Europe/Berlin";
17 } 9 }
18 ] ++ (optional (options ? i18n.extraLocales) { 10 ] ++ (lib.optional (options ? i18n.extraLocales) {
19 i18n.extraLocales = [ "C.UTF-8" "en_US.UTF-8" "en_DK.UTF-8" ]; 11 i18n.extraLocales = [ "C.UTF-8/UTF-8" "en_US.UTF-8/UTF-8" ];
20 }) ++ (optional (!(options ? i18n.extraLocales)) { 12 }) ++ (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" ]; 13 i18n.supportedLocales = [ "C.UTF-8/UTF-8" "en_US.UTF-8/UTF-8" ];
22 })); 14 }));
23} 15}