Kde/firefox: manage with home-manager

This commit is contained in:
Toast 2025-03-25 12:41:23 +01:00
parent 90b1e43b99
commit 0bd973fb25

View file

@ -1,30 +1,35 @@
{...}: { {pkgs, ...}: {
# KDE specific firefox settings home-manager.sharedModules = [
programs.firefox = { {
policies = { # KDE specific firefox settings
"ExtensionSettings" = { programs.firefox = {
# TODO: Install extensions the NUR instead of from AMO nativeMessagingHosts = [pkgs.kdePackages.plasma-browser-integration];
"plasma-browser-integration@kde.org" = { policies = {
"installation_mode" = "normal_installed"; ExtensionSettings = {
"install_url" = "https://addons.mozilla.org/firefox/downloads/latest/plasma-integration/latest.xpi"; # TODO: Install extensions the NUR instead of from AMO
"plasma-browser-integration@kde.org" = {
installation_mode = "normal_installed";
install_url = "https://addons.mozilla.org/firefox/downloads/latest/plasma-integration/latest.xpi";
};
};
Preferences = {
# Make firefox use the kde file picker
"widget.use-xdg-desktop-portal.file-picker" = {
Value = 1;
Status = "default";
};
/*
https://wiki.archlinux.org/title/Firefox#KDE_integration tells me to enable this,
but strangely enough doing so makes firefox ask to be set as the default browser
every time you start it up, so I'll disable it
*/
"widget.use-xdg-desktop-portal.mime-handler" = {
Value = 0;
Status = "default";
};
};
}; };
}; };
"Preferences" = { }
# Make firefox use the kde file picker ];
"widget.use-xdg-desktop-portal.file-picker" = {
"Value" = 1;
"Status" = "default";
};
/*
https://wiki.archlinux.org/title/Firefox#KDE_integration tells me to enable this,
but strangely enough doing so makes firefox ask to be set as the default browser
every time you start it up, so I'll disable it
*/
"widget.use-xdg-desktop-portal.mime-handler" = {
"Value" = 0;
"Status" = "default";
};
};
};
};
} }