From 1827e84344ff7cb814e3e4dfad51a45856ea50f6 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Wed, 16 Apr 2025 14:33:33 -0500 Subject: [PATCH] mkFirefoxModule: fix userChrome --- modules/programs/firefox/mkFirefoxModule.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/programs/firefox/mkFirefoxModule.nix b/modules/programs/firefox/mkFirefoxModule.nix index ec7a77cd0..7cf51777c 100644 --- a/modules/programs/firefox/mkFirefoxModule.nix +++ b/modules/programs/firefox/mkFirefoxModule.nix @@ -869,7 +869,11 @@ in ++ lib.flip mapAttrsToList cfg.profiles ( _: profile: let - chromePath = if lib.pathIsDirectory profile.userChrome then "chrome" else "chrome/userChrome.css"; + chromePath = + if (lib.isPath profile.userChrome && lib.pathIsDirectory profile.userChrome) then + "chrome" + else + "chrome/userChrome.css"; sourcePath = if lib.types.path.check profile.userChrome then profile.userChrome else null; in # Merge the regular profile settings with extension settings