move locale, add host option

This commit is contained in:
2025-12-21 22:20:19 +02:00
parent 17246b3ccb
commit 6243330c4b
5 changed files with 75 additions and 181 deletions
-1
View File
@@ -1,7 +1,6 @@
{
imports = [
./common.nix
./locale.nix
./misc
./stylix
./virt
-36
View File
@@ -1,36 +0,0 @@
{
config,
lib,
...
}: let
inherit (lib) types mkOption;
in {
options = {
module.locale = mkOption {
type = types.strMatching "[a-z]{2}_[A-Z]{2}\\.UTF-8";
default = "en_US.UTF-8";
description = "set locale";
};
};
config = {
i18n = let
inherit (config.module) locale;
in {
defaultLocale = locale;
extraLocaleSettings = {
LC_ADDRESS = locale;
LC_COLLATE = "en_US.UTF-8";
LC_CTYPE = locale;
LC_IDENTIFICATION = locale;
LC_MEASUREMENT = locale;
LC_MESSAGES = locale;
LC_MONETARY = locale;
LC_NAME = locale;
LC_NUMERIC = locale;
LC_PAPER = locale;
LC_TELEPHONE = locale;
LC_TIME = locale;
};
};
};
}