Fix syntax errors
This commit is contained in:
parent
c7c81eaea3
commit
9332c72fb2
1 changed files with 4 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
let
|
let
|
||||||
inherit (lib)
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
types
|
types
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -8,13 +9,13 @@
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
i18n = {
|
i18n = {
|
||||||
localeSettings = {
|
localeSettings = mkOption {
|
||||||
type = types.attrsOf types.str;
|
type = types.attrsOf types.str;
|
||||||
description = "The system wide locale settings";
|
description = "The system wide locale settings";
|
||||||
default = {};
|
default = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
locales = {
|
locales = mkOption {
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
description = "The locales of the system";
|
description = "The locales of the system";
|
||||||
};
|
};
|
||||||
|
@ -22,6 +23,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
locales = builtins.attrValues cfg.localeSettings;
|
i18n.locales = builtins.attrValues cfg.localeSettings;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue