Update firefox.nix
This commit is contained in:
parent
84f13b8648
commit
6e01d90f3c
1 changed files with 53 additions and 51 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue