mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-05 16:41:04 +01:00
mkFirefoxModule: fix userChrome with leading comment (#6836)
userChrome lines that started with a leading comment would cause an eval failure.
This commit is contained in:
parent
c6b75d69b6
commit
c3c91dd8b4
4 changed files with 24 additions and 9 deletions
|
|
@ -874,7 +874,11 @@ in
|
|||
"chrome"
|
||||
else
|
||||
"chrome/userChrome.css";
|
||||
sourcePath = if lib.types.path.check profile.userChrome then profile.userChrome else null;
|
||||
sourcePath =
|
||||
if ((i: lib.isPath i && lib.types.path.check i) profile.userChrome) then
|
||||
profile.userChrome
|
||||
else
|
||||
null;
|
||||
in
|
||||
# Merge the regular profile settings with extension settings
|
||||
mkMerge (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue