Remove unnecessary config

This commit is contained in:
Manuel Thalmann 2024-07-09 02:23:23 +02:00
parent 52384e532a
commit ac965bfb98

View file

@ -1,11 +1,9 @@
{ lib, config, ... }: { lib, ... }:
let let
inherit (lib) inherit (lib)
mkOption mkOption
types types
; ;
cfg = config.i18n;
in { in {
options = { options = {
i18n = { i18n = {
@ -14,15 +12,6 @@
description = "The system wide locale settings"; description = "The system wide locale settings";
default = {}; default = {};
}; };
locales = mkOption {
type = types.listOf types.str;
description = "The locales of the system";
};
}; };
}; };
config = {
i18n.locales = builtins.attrValues cfg.localeSettings;
};
} }