From 02cefb91a45f56b986afc0808755f04abddfb40c Mon Sep 17 00:00:00 2001 From: xunuwu Date: Thu, 29 Aug 2024 08:57:06 +0000 Subject: [PATCH] split locale into seperate module & import it on kidney --- hosts/default.nix | 1 + system/core/default.nix | 11 +---------- system/core/locale.nix | 11 +++++++++++ 3 files changed, 13 insertions(+), 10 deletions(-) create mode 100644 system/core/locale.nix diff --git a/hosts/default.nix b/hosts/default.nix index e8d42c5..87aa2f6 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -43,6 +43,7 @@ in { (modulePaths [ "core/tools.nix" "core/users.nix" + "core/locale.nix" "programs/tools.nix" "programs/zsh.nix" diff --git a/system/core/default.nix b/system/core/default.nix index f9dcb4a..ffa87ad 100644 --- a/system/core/default.nix +++ b/system/core/default.nix @@ -3,17 +3,8 @@ ./security.nix ./users.nix ./ssh.nix + ./locale.nix ../nix ../programs/zsh.nix ]; - - i18n = { - defaultLocale = "en_US.UTF-8"; - supportedLocales = [ - "en_US.UTF-8/UTF-8" - ]; - }; - services.xserver.xkb.layout = "eu"; - - time.timeZone = lib.mkDefault "Europe/Berlin"; } diff --git a/system/core/locale.nix b/system/core/locale.nix new file mode 100644 index 0000000..ec028eb --- /dev/null +++ b/system/core/locale.nix @@ -0,0 +1,11 @@ +{lib, ...}: { + i18n = { + defaultLocale = "en_US.UTF-8"; + supportedLocales = [ + "en_US.UTF-8/UTF-8" + ]; + }; + services.xserver.xkb.layout = "eu"; + + time.timeZone = lib.mkDefault "Europe/Berlin"; +}