Configure firefox browser as default web browser

This commit is contained in:
2026-02-24 13:30:40 +01:00
parent bfd348aa6c
commit f0a49296ed
2 changed files with 62 additions and 1 deletions

View File

@@ -0,0 +1,57 @@
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
# New system packages
];
programs.firefox = {
enable = true;
policies = {
AppAutoUpdate = false;
AllowFileSelectionDialogs = true;
AutofillAddressEnabled = true;
AutofillCreditCardEnabled = false;
CaptivePortal = true;
DisableFirefoxAccounts = true;
DisableSecurityBypass = {
InvalidCertificate = false;
SafeBrowsing = false;
};
DisableSetDesktopBackground = true;
DisableTelemetry = true;
ExtensionUpdate = true;
FirefoxHome = {
Search = true;
TopSites = true;
SponsoredTopSites = false;
Highlights = true;
Pocket = false;
Stories = false;
SponsoredPocket = false;
SponsoredStories = false;
Snippets = true;
Locked = true;
};
PictureInPicture = {
Enabled = true;
Locked = false;
};
ExtensionSettings = {
"nextcloud-passwords@nextcloud.com" = {
installation_mode = "force_installed";
install_url = "https://addons.mozilla.org/firefox/downloads/latest/nextcloud-passwords/latest.xpi";
};
"instapaper@instapaper.com" = {
installation_mode = "force_installed";
install_url = "https://addons.mozilla.org/firefox/downloads/latest/instapaper-official/latest.xpi";
};
"weh@mozilla.org" = {
installation_mode = "force_installed";
install_url = "https://addons.mozilla.org/firefox/downloads/latest/video-downloadhelper/latest.xpi";
};
};
};
};
}

View File

@@ -1,5 +1,10 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
imports = [
./browser.nix
];
programs.hyprland = { programs.hyprland = {
enable = true; enable = true;
withUWSM = true; withUWSM = true;
@@ -13,7 +18,6 @@
grim grim
swaynotificationcenter swaynotificationcenter
evolution evolution
firefox-bin
pamixer pamixer
swaylock swaylock
hyprpaper hyprpaper