{ config, lib, ... }: { options.common.configure.locale.enable = lib.mkEnableOption "locale configuration"; config = lib.mkIf config.common.configure.locale.enable { time.timeZone = "Europe/Berlin"; i18n = { defaultLocale = "en_GB.UTF-8"; supportedLocales = [ "en_GB.UTF-8/UTF-8" "de_DE.UTF-8/UTF-8" ]; extraLocaleSettings = { LC_ADDRESS = "de_DE.UTF-8"; LC_IDENTIFICATION = "de_DE.UTF-8"; LC_MEASUREMENT = "de_DE.UTF-8"; LC_MONETARY = "de_DE.UTF-8"; LC_NAME = "de_DE.UTF-8"; LC_NUMERIC = "en_GB.UTF-8"; LC_PAPER = "de_DE.UTF-8"; LC_TELEPHONE = "de_DE.UTF-8"; LC_TIME = "en_GB.UTF-8"; }; }; }; }