1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-01 00:39:45 +01:00

brave: fix config dir path (#2173)

Changes install path for extensions from `~/.config/brave` to
`~/.config/BraveSoftware/Brave-Browser` on Linux.
This commit is contained in:
Colin Summers 2021-07-11 19:19:10 -06:00 committed by GitHub
parent 4971b9cad0
commit 9e3c402972
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -114,10 +114,12 @@ let
brave = "BraveSoftware/Brave-Browser"; brave = "BraveSoftware/Brave-Browser";
}; };
linuxDirs = { brave = "BraveSoftware/Brave-Browser"; };
configDir = if pkgs.stdenv.isDarwin then configDir = if pkgs.stdenv.isDarwin then
"Library/Application Support/${getAttr browser darwinDirs}" "Library/Application Support/" + (darwinDirs."${browser}" or browser)
else else
"${config.xdg.configHome}/${browser}"; "${config.xdg.configHome}/" + (linuxDirs."${browser}" or browser);
extensionJson = ext: extensionJson = ext:
assert ext.crxPath != null -> ext.version != null; assert ext.crxPath != null -> ext.version != null;