Kde/firefox: manage with home-manager
This commit is contained in:
parent
90b1e43b99
commit
0bd973fb25
1 changed files with 32 additions and 27 deletions
|
|
@ -1,19 +1,22 @@
|
||||||
{...}: {
|
{pkgs, ...}: {
|
||||||
|
home-manager.sharedModules = [
|
||||||
|
{
|
||||||
# KDE specific firefox settings
|
# KDE specific firefox settings
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
|
nativeMessagingHosts = [pkgs.kdePackages.plasma-browser-integration];
|
||||||
policies = {
|
policies = {
|
||||||
"ExtensionSettings" = {
|
ExtensionSettings = {
|
||||||
# TODO: Install extensions the NUR instead of from AMO
|
# TODO: Install extensions the NUR instead of from AMO
|
||||||
"plasma-browser-integration@kde.org" = {
|
"plasma-browser-integration@kde.org" = {
|
||||||
"installation_mode" = "normal_installed";
|
installation_mode = "normal_installed";
|
||||||
"install_url" = "https://addons.mozilla.org/firefox/downloads/latest/plasma-integration/latest.xpi";
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/plasma-integration/latest.xpi";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"Preferences" = {
|
Preferences = {
|
||||||
# Make firefox use the kde file picker
|
# Make firefox use the kde file picker
|
||||||
"widget.use-xdg-desktop-portal.file-picker" = {
|
"widget.use-xdg-desktop-portal.file-picker" = {
|
||||||
"Value" = 1;
|
Value = 1;
|
||||||
"Status" = "default";
|
Status = "default";
|
||||||
};
|
};
|
||||||
/*
|
/*
|
||||||
https://wiki.archlinux.org/title/Firefox#KDE_integration tells me to enable this,
|
https://wiki.archlinux.org/title/Firefox#KDE_integration tells me to enable this,
|
||||||
|
|
@ -21,10 +24,12 @@
|
||||||
every time you start it up, so I'll disable it
|
every time you start it up, so I'll disable it
|
||||||
*/
|
*/
|
||||||
"widget.use-xdg-desktop-portal.mime-handler" = {
|
"widget.use-xdg-desktop-portal.mime-handler" = {
|
||||||
"Value" = 0;
|
Value = 0;
|
||||||
"Status" = "default";
|
Status = "default";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue