Skip to content

Commit dbb305f

Browse files
committed
firefox: userChrome utilize path
Supported in nix-community/home-manager#6761 We can use the path to also copy the images over to the proper location, as well.
1 parent 263bd17 commit dbb305f

File tree

1 file changed

+1
-17
lines changed
  • modules/home/programs/graphical/browsers/firefox

1 file changed

+1
-17
lines changed

modules/home/programs/graphical/browsers/firefox/default.nix

+1-17
Original file line numberDiff line numberDiff line change
@@ -63,22 +63,6 @@ in
6363
};
6464

6565
config = mkIf cfg.enable {
66-
home.file =
67-
let
68-
firefoxPath =
69-
if pkgs.stdenv.hostPlatform.isLinux then
70-
".mozilla/firefox/${config.${namespace}.user.name}"
71-
else
72-
"/Users/${config.${namespace}.user.name}/Library/Application Support/Firefox/Profiles/${config.${namespace}.user.name}";
73-
in
74-
{
75-
"${firefoxPath}/chrome/img" = {
76-
source = lib.cleanSourceWith { src = lib.cleanSource ./chrome/img/.; };
77-
78-
recursive = true;
79-
};
80-
};
81-
8266
programs.firefox = {
8367
enable = true;
8468
package = if pkgs.stdenv.hostPlatform.isLinux then pkgs.firefox-devedition else null;
@@ -165,7 +149,7 @@ in
165149
];
166150

167151
# TODO: support alternative theme loading
168-
userChrome = ./chrome/userChrome.css;
152+
userChrome = ./chrome;
169153
};
170154
};
171155
};

0 commit comments

Comments
 (0)