mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 22:50:39 +00: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:
parent
90493027e3
commit
b840707a87
2 changed files with 10 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue