commit dfd7424d226beace40a09685402339e4e476aeaa
parent fa87dab3614743d88ad77dd52fca8ab8210a2c29
Author: Peter <peter@minskio.co.uk>
Date: Thu, 8 Oct 2026 10:19:19 +0100
Add languagePack to Firefox
Derived from locale variable
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/home/firefox.nix b/home/firefox.nix
@@ -1,8 +1,9 @@
-{ lib, config, ... }:
+{ lib, config, vars, ... }:
{
programs.firefox = {
enable = true;
+ languagePacks = [ (builtins.replaceStrings [ "_" ".UTF8" ] [ "-" "" ] vars.user.locale) ];
configPath = "${config.xdg.configHome}/mozilla/firefox";
profiles = {