From dc676b6f8ced3c102ae01533cf844943d7038f98 Mon Sep 17 00:00:00 2001 From: Daniel Fainberg Date: Mon, 13 Jul 2026 08:03:43 +0200 Subject: [PATCH] refactor(i18n): make `defaultLocale` overridable via `mkDefault` Template hard-set `en_US.UTF-8`, so a consumer setting `i18n.defaultLocale` in the private inventory hit a conflicting-definition eval error. Wrap the template default in `lib.mkDefault` per the overrides-are-options contract. Co-Authored-By: Claude Opus 4.8 --- modules/nixos.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nixos.nix b/modules/nixos.nix index 4b7f4d9..fa85331 100644 --- a/modules/nixos.nix +++ b/modules/nixos.nix @@ -45,7 +45,7 @@ time.timeZone = "Europe/Berlin"; # Internationalisation properties. Template defaults — override per region. - i18n.defaultLocale = "en_US.UTF-8"; + i18n.defaultLocale = lib.mkDefault "en_US.UTF-8"; console = { font = "Lat2-Terminus16"; keyMap = "de";