From 791bc419b6dac7c70951981ef6b34cdf85828470 Mon Sep 17 00:00:00 2001 From: adikro Date: Sat, 20 Dec 2025 03:14:45 +0100 Subject: absolutely massive rewrite, made (almost) everything modular with changes to come --- modules/sys/core/localization.nix | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 modules/sys/core/localization.nix (limited to 'modules/sys/core/localization.nix') diff --git a/modules/sys/core/localization.nix b/modules/sys/core/localization.nix deleted file mode 100644 index 232133d..0000000 --- a/modules/sys/core/localization.nix +++ /dev/null @@ -1,39 +0,0 @@ -{ config, lib, ... }: -{ - options.szpont.locale = { - enable = lib.mkEnableOption "system localization (timezone and language)"; - - timeZone = lib.mkOption { - type = lib.types.str; - default = "Europe/Warsaw"; - description = "the system timezone."; - }; - - format = lib.mkOption { - type = lib.types.str; - default = "pl_PL.UTF-8"; - description = "the locale used for numbers, time, and measurements."; - }; - }; - - config = lib.mkIf config.szpont.locale.enable { - time.timeZone = config.szpont.locale.timeZone; - - i18n = { - defaultLocale = "en_US.UTF-8"; - - extraLocaleSettings = { - LC_TIME = config.szpont.locale.format; - LC_NUMERIC = config.szpont.locale.format; - LC_MONETARY = config.szpont.locale.format; - LC_PAPER = config.szpont.locale.format; - LC_MEASUREMENT = config.szpont.locale.format; - LC_COLLATE = config.szpont.locale.format; - LC_NAME = config.szpont.locale.format; - LC_ADDRESS = config.szpont.locale.format; - LC_TELEPHONE = config.szpont.locale.format; - LC_IDENTIFICATION = config.szpont.locale.format; - }; - }; - }; -} -- cgit v1.3