summaryrefslogtreecommitdiff
path: root/system-profiles
diff options
context:
space:
mode:
Diffstat (limited to 'system-profiles')
-rw-r--r--system-profiles/core/default.nix3
-rw-r--r--system-profiles/default-locale.nix36
2 files changed, 24 insertions, 15 deletions
diff --git a/system-profiles/core/default.nix b/system-profiles/core/default.nix
index 258dd32d..58d2fe7c 100644
--- a/system-profiles/core/default.nix
+++ b/system-profiles/core/default.nix
@@ -62,6 +62,9 @@ in {
62 rhs = optCall rhs_ { inherit pkgs; }; 62 rhs = optCall rhs_ { inherit pkgs; };
63 in 63 in
64 recursiveUpdate lhs rhs // 64 recursiveUpdate lhs rhs //
65 optionalAttrs (lhs ? allowUnfreePackages) {
66 allowUnfreePackages = lhs.allowUnfreePackages ++ (attrByPath [ "allowUnfreePackages" ] [ ] rhs);
67 } //
65 optionalAttrs (lhs ? packageOverrides) { 68 optionalAttrs (lhs ? packageOverrides) {
66 packageOverrides = pkgs: 69 packageOverrides = pkgs:
67 optCall lhs.packageOverrides pkgs // 70 optCall lhs.packageOverrides pkgs //
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}