Update firefox.nix

This commit is contained in:
Chris Kruining 2025-03-19 12:15:54 +00:00 committed by GitHub
parent 84f13b8648
commit 6e01d90f3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,21 +33,6 @@ in {
}) })
(mkIf cfg.enable { (mkIf cfg.enable {
home-manager.users.${user}.home.packages = let
inherit (pkgs) makeDesktopItem;
inherit (inputs.firefox.packages.${pkgs.system}) firefox-nightly-bin;
in [
firefox-nightly-bin
(makeDesktopItem {
name = "firefox-nightly-private";
desktopName = "Firefox Nightly (Private)";
genericName = "Launch a private Firefox Nightly instance";
icon = "firefox-nightly";
exec = "${lib.getExe firefox-nightly-bin} --private-window";
categories = ["Network" "WebBrowser"];
})
];
modules.${user}.desktop.browsers.firefox.settings = { modules.${user}.desktop.browsers.firefox.settings = {
# TAB cycle URL's, not buttons.. # TAB cycle URL's, not buttons..
"browser.toolbars.keyboard_navigation" = false; "browser.toolbars.keyboard_navigation" = false;
@ -181,7 +166,23 @@ in {
}; };
# Use a stable profile name so we can target it in themes # Use a stable profile name so we can target it in themes
home-manager.users.${user}.home.file = let home-manager.users.${user}.home = {
packages = let
inherit (pkgs) makeDesktopItem;
inherit (inputs.firefox.packages.${pkgs.system}) firefox-nightly-bin;
in [
firefox-nightly-bin
(makeDesktopItem {
name = "firefox-nightly-private";
desktopName = "Firefox Nightly (Private)";
genericName = "Launch a private Firefox Nightly instance";
icon = "firefox-nightly";
exec = "${lib.getExe firefox-nightly-bin} --private-window";
categories = ["Network" "WebBrowser"];
})
];
file = let
cfgPath = ".mozilla/firefox"; cfgPath = ".mozilla/firefox";
in { in {
firefox-profiles = { firefox-profiles = {
@ -220,6 +221,7 @@ in {
text = cfg.userContent; text = cfg.userContent;
}; };
}; };
};
}) })
(mkIf cfg.privacy.enable { (mkIf cfg.privacy.enable {