1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-26 16:38:34 +02:00

firefox: Always create profile directories

Write ".keep" file in profile dir for each profile regardless of any
other settings to creare profile dir.
This commit is contained in:
Rosario Pulella 2021-05-24 11:28:12 -04:00 committed by Robert Helgesson
parent 90493027e3
commit b840707a87
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89
2 changed files with 10 additions and 1 deletions

View File

@ -318,6 +318,8 @@ in
};
}]
++ flip mapAttrsToList cfg.profiles (_: profile: {
"${profilesPath}/${profile.path}/.keep".text = "";
"${profilesPath}/${profile.path}/chrome/userChrome.css" =
mkIf (profile.userChrome != "") {
text = profile.userChrome;

View File

@ -6,7 +6,12 @@ with lib;
config = {
programs.firefox = {
enable = true;
profiles.test.settings = { "general.smoothScroll" = false; };
profiles.basic.isDefault = true;
profiles.test = {
id = 1;
settings = { "general.smoothScroll" = false; };
};
};
nixpkgs.overlays = [
@ -28,6 +33,8 @@ with lib;
home-path/bin/firefox \
MOZ_APP_LAUNCHER
assertDirectoryExists home-files/.mozilla/firefox/basic
assertFileContent \
home-files/.mozilla/firefox/test/user.js \
${./profile-settings-expected-user.js}