mirror of
https://github.com/nix-community/home-manager
synced 2025-01-15 05:29:49 +01: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: {
|
++ flip mapAttrsToList cfg.profiles (_: profile: {
|
||||||
|
"${profilesPath}/${profile.path}/.keep".text = "";
|
||||||
|
|
||||||
"${profilesPath}/${profile.path}/chrome/userChrome.css" =
|
"${profilesPath}/${profile.path}/chrome/userChrome.css" =
|
||||||
mkIf (profile.userChrome != "") {
|
mkIf (profile.userChrome != "") {
|
||||||
text = profile.userChrome;
|
text = profile.userChrome;
|
||||||
|
|
|
@ -6,7 +6,12 @@ with lib;
|
||||||
config = {
|
config = {
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
profiles.test.settings = { "general.smoothScroll" = false; };
|
profiles.basic.isDefault = true;
|
||||||
|
|
||||||
|
profiles.test = {
|
||||||
|
id = 1;
|
||||||
|
settings = { "general.smoothScroll" = false; };
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
|
@ -28,6 +33,8 @@ with lib;
|
||||||
home-path/bin/firefox \
|
home-path/bin/firefox \
|
||||||
MOZ_APP_LAUNCHER
|
MOZ_APP_LAUNCHER
|
||||||
|
|
||||||
|
assertDirectoryExists home-files/.mozilla/firefox/basic
|
||||||
|
|
||||||
assertFileContent \
|
assertFileContent \
|
||||||
home-files/.mozilla/firefox/test/user.js \
|
home-files/.mozilla/firefox/test/user.js \
|
||||||
${./profile-settings-expected-user.js}
|
${./profile-settings-expected-user.js}
|
||||||
|
|
Loading…
Reference in a new issue