configure firefoxpwa

This commit is contained in:
Sean Kovacs 2026-01-14 14:50:25 -05:00
commit 9ef9476f80
Signed by: sckova
GPG key ID: 00F325187C68651A
2 changed files with 217 additions and 179 deletions

View file

@ -170,9 +170,7 @@
input-leap
libreoffice-qt-fresh
# nur.repos.forkprince.helium-nightly
bitwarden-desktop
qbittorrent
whatsapp-electron
nautilus
# gui applications ( multimedia )

View file

@ -52,7 +52,46 @@
force = true;
};
programs.firefox = {
home.file.".local/share/firefoxpwa/profiles/01KEYXH9TC4B54J5CTPNE75JP0/prefs.js" = {
text = ''
user_pref("firefoxpwa.alwaysUseNativeWindowControls", true);
user_pref("firefoxpwa.displayUrlBar", 1);
user_pref("firefoxpwa.enableHidingIconBar", true);
user_pref("firefoxpwa.dynamicWindowTitle", true);
user_pref("ui.key.menuAccessKeyFocuses", false);
user_pref("browser.aboutConfig.showWarning", false);
user_pref("browser.ml.enable", false);
'';
force = true;
};
programs = {
firefoxpwa = {
enable = true;
settings.config = {
always_patch = false;
runtime_enable_wayland = true;
runtime_use_xinput2 = true;
runtime_use_portals = true;
use_linked_runtime = false;
};
profiles = {
"01KEYXH9TC4B54J5CTPNE75JP0".sites."01KEYXHK7XQQJ0M3J7SX4VD9PG" = {
name = "WhatsApp";
url = "https://web.whatsapp.com/";
manifestUrl = "https://web.whatsapp.com/data/manifest.json";
desktopEntry = {
icon = "${pkgs.colloid-icon-theme}/share/icons/Colloid/apps/scalable/whatsapp.svg";
categories = [
"Network"
"Chat"
"Telephony"
];
};
};
};
};
firefox = {
enable = true;
package = pkgs.firefox.override {
nativeMessagingHosts = with pkgs; [
@ -241,4 +280,5 @@
};
};
};
};
}