locales toogle
This commit is contained in:
parent
5af5c5fcda
commit
25c84f2bdb
@ -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";
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user