Add additional locale settings and keymap
This commit is contained in:
parent
bd2b942001
commit
8b0d64797f
|
|
@ -17,7 +17,22 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
console.keyMap = cfg.keyMap;
|
||||||
time.timeZone = cfg.timeZone;
|
time.timeZone = cfg.timeZone;
|
||||||
|
i18n = {
|
||||||
|
defaultLocale = cfg.locale;
|
||||||
|
extraLocaleSettings = {
|
||||||
|
LC_ADDRESS = cfg.locale;
|
||||||
|
LC_IDENTIFICATION = cfg.locale;
|
||||||
|
LC_MEASUREMENT = cfg.locale;
|
||||||
|
LC_MONETARY = cfg.locale;
|
||||||
|
LC_NAME = cfg.locale;
|
||||||
|
LC_NUMERIC = cfg.locale;
|
||||||
|
LC_PAPER = cfg.locale;
|
||||||
|
LC_TELEPHONE = cfg.locale;
|
||||||
|
LC_TIME = cfg.locale;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
system.stateVersion = "25.05";
|
system.stateVersion = "25.05";
|
||||||
}
|
}
|
||||||
|
|
@ -9,6 +9,16 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.system = {
|
options.system = {
|
||||||
|
locale = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "en_US.UTF-8";
|
||||||
|
};
|
||||||
|
|
||||||
|
keyMap = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "us";
|
||||||
|
};
|
||||||
|
|
||||||
timeZone = mkOption {
|
timeZone = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "US/Eastern";
|
default = "US/Eastern";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue