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