Firefox: move kde specific settings to kde role

This commit is contained in:
Toast 2023-08-28 18:30:04 +02:00
parent a0221784e7
commit a0e2825acd
3 changed files with 26 additions and 14 deletions

View file

@ -35,20 +35,6 @@
"Value" = true; "Value" = true;
"Status" = "locked"; "Status" = "locked";
}; };
# 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";
};
}; };
"PromptForDownloadLocation" = true; "PromptForDownloadLocation" = true;
# I use an external password manager, so the built in one just bothers me # I use an external password manager, so the built in one just bothers me

View file

@ -3,5 +3,6 @@
{ {
imports = [ imports = [
./kate.nix ./kate.nix
./firefox.nix
]; ];
} }

View file

@ -0,0 +1,25 @@
{ config, pkgs, ... }:
{
# KDE specific firefox settings
programs.firefox = {
policies = {
"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";
};
};
};
};
}