feat: massive refactor

This commit is contained in:
2025-12-20 12:57:47 +08:00
parent f4c1b313ce
commit 454ad5885d
97 changed files with 1023 additions and 960 deletions

View File

@@ -1,13 +1,15 @@
{ config, lib, ... }:
lib.my.makeSwitch {
inherit config;
default = true;
optionName = "default locale settings";
optionPath = [
"i18n"
"locale"
];
config' = {
let
cfg = config.my.i18n.locale;
in
{
options.my.i18n.locale = {
enable = lib.mkEnableOption "default locale settings" // {
default = true;
};
};
config = lib.mkIf cfg.enable {
i18n = {
defaultLocale = "en_US.UTF-8";
extraLocaleSettings = {