From 9332c72fb2036eaf7e1d3220e5ef2676a47547fd Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Mon, 8 Jul 2024 17:26:25 +0200 Subject: [PATCH] Fix syntax errors --- lib/modules/i18n.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/modules/i18n.nix b/lib/modules/i18n.nix index fb1905c3..db65565b 100644 --- a/lib/modules/i18n.nix +++ b/lib/modules/i18n.nix @@ -1,6 +1,7 @@ { lib, config, ... }: let inherit (lib) + mkOption types ; @@ -8,13 +9,13 @@ in { options = { i18n = { - localeSettings = { + localeSettings = mkOption { type = types.attrsOf types.str; description = "The system wide locale settings"; default = {}; }; - locales = { + locales = mkOption { type = types.listOf types.str; description = "The locales of the system"; }; @@ -22,6 +23,6 @@ }; config = { - locales = builtins.attrValues cfg.localeSettings; + i18n.locales = builtins.attrValues cfg.localeSettings; }; }