locales toogle

This commit is contained in:
smayzy 2025-07-06 18:47:40 +02:00
parent 5af5c5fcda
commit 25c84f2bdb

View File

@ -1,5 +1,14 @@
{ config, lib, pkgs, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.locales.enable = mkOption {
type = types.bool;
default = false;
description = "set my locales & TZ";
};
config = mkIf config.smayzy.locales.enable {
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "fr_FR.UTF-8";
@ -12,4 +21,5 @@
LC_TELEPHONE = "fr_FR.UTF-8";
};
time.timeZone = "Europe/Paris";
};
}