28 lines
514 B
Nix
28 lines
514 B
Nix
|
{ lib, config, ... }:
|
||
|
let
|
||
|
inherit (lib)
|
||
|
types
|
||
|
;
|
||
|
|
||
|
cfg = config.i18n;
|
||
|
in {
|
||
|
options = {
|
||
|
i18n = {
|
||
|
localeSettings = {
|
||
|
type = types.attrsOf types.str;
|
||
|
description = "The system wide locale settings";
|
||
|
default = {};
|
||
|
};
|
||
|
|
||
|
locales = {
|
||
|
type = types.listOf types.str;
|
||
|
description = "The locales of the system";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
config = {
|
||
|
locales = builtins.attrValues cfg.localeSettings;
|
||
|
};
|
||
|
}
|