wip: switch to librewolf
This commit is contained in:
parent
0b79642f7e
commit
af0bb8743e
4 changed files with 48 additions and 11 deletions
|
@ -44,6 +44,21 @@
|
|||
];
|
||||
};
|
||||
|
||||
librewolf = {
|
||||
executable = "${pkgs.librewolf}/bin/librewolf";
|
||||
profile = "${pkgs.firejail}/etc/firejail/librewolf.profile";
|
||||
extraArgs = [
|
||||
# Required for U2F USB stick
|
||||
"--ignore=private-dev"
|
||||
# Enforce dark mode
|
||||
"--env=GTK_THEME=Adwaita:dark"
|
||||
# Enable system notifications
|
||||
"--dbus-user.talk=org.freedesktop.Notifications"
|
||||
# For screen sharing
|
||||
"--dbus-user.talk=org.freedesktop.portal.*"
|
||||
];
|
||||
};
|
||||
|
||||
nyxt = {
|
||||
executable = "${pkgs.nyxt}/bin/nyxt";
|
||||
profile = "${pkgs.firejail}/etc/firejail/chromium-browser.profile";
|
||||
|
|
|
@ -1,7 +1,22 @@
|
|||
{
|
||||
{pkgs, ...}: let
|
||||
package = pkgs.librewolf;
|
||||
in {
|
||||
imports = [
|
||||
./brave.nix
|
||||
./firefox.nix
|
||||
#./firefox.nix
|
||||
./librewolf.nix
|
||||
./nyxt.nix
|
||||
];
|
||||
|
||||
environment.sessionVariables.DEFAULT_BROWSER =
|
||||
"${package}/bin/"
|
||||
+ builtins.replaceStrings [".desktop"] [""] package.desktopItem.name;
|
||||
|
||||
xdg.mime.defaultApplications = let
|
||||
browser_desktop_file = package.desktopItem.name;
|
||||
in {
|
||||
"text/html" = browser_desktop_file;
|
||||
"x-scheme-handler/http" = browser_desktop_file;
|
||||
"x-scheme-handler/https" = browser_desktop_file;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,13 +1,10 @@
|
|||
{pkgs, ...}: {
|
||||
{pkgs, ...}: let
|
||||
package = pkgs.firefox;
|
||||
in {
|
||||
# The logical browser of choice
|
||||
programs.firefox.enable = true;
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
|
||||
xdg.mime.defaultApplications = let
|
||||
browser_desktop_file = "firefox.desktop";
|
||||
in {
|
||||
"text/html" = browser_desktop_file;
|
||||
"x-scheme-handler/http" = browser_desktop_file;
|
||||
"x-scheme-handler/https" = browser_desktop_file;
|
||||
package = package;
|
||||
};
|
||||
environment.sessionVariables.DEFAULT_BROWSER = "${pkgs.firefox}/bin/firefox";
|
||||
}
|
||||
|
|
10
modules/software/browser/librewolf.nix
Normal file
10
modules/software/browser/librewolf.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{pkgs, ...}: let
|
||||
package = pkgs.librewolf;
|
||||
in {
|
||||
# The logical browser of choice
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
|
||||
package = package;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue