From 7974ca628c638e113ec40dc49bcf66cf34f0623c Mon Sep 17 00:00:00 2001 From: Toast Date: Thu, 29 Jun 2023 16:35:22 +0200 Subject: [PATCH 1/4] Firefox: enable HTTPS only mode --- roles/desktop/firefox.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/desktop/firefox.nix b/roles/desktop/firefox.nix index 797fd9e..76c431a 100644 --- a/roles/desktop/firefox.nix +++ b/roles/desktop/firefox.nix @@ -31,6 +31,10 @@ "Value" = true; "Status" = "default"; }; + "dom.security.https_only_mode" = { + "Value" = true; + "Status" = "locked"; + }; }; "Permissions" = { "Autoplay" = { From f9e71005a428fc5ab29ab2c7893b9db249a57e70 Mon Sep 17 00:00:00 2001 From: Toast Date: Thu, 29 Jun 2023 16:36:06 +0200 Subject: [PATCH 2/4] Firefox: integrate better with kde --- roles/desktop/firefox.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/roles/desktop/firefox.nix b/roles/desktop/firefox.nix index 76c431a..238149b 100644 --- a/roles/desktop/firefox.nix +++ b/roles/desktop/firefox.nix @@ -35,6 +35,20 @@ "Value" = true; "Status" = "locked"; }; + # Make firefox use the kde file picker + "widget.use-xdg-desktop-portal.file-picker" = { + "Value" = 1; + "Status" = "default"; + }; + /* + Not sure what this does, + but https://wiki.archlinux.org/title/Firefox#KDE_integration + tells me to enable it + */ + "widget.use-xdg-desktop-portal.mime-handler" = { + "Value" = 1; + "Status" = "default"; + }; }; "Permissions" = { "Autoplay" = { From 52f70f88291bb694859e0489ed9c61dd458e4416 Mon Sep 17 00:00:00 2001 From: Toast Date: Thu, 29 Jun 2023 16:47:17 +0200 Subject: [PATCH 3/4] Firefox: disable the password manager --- roles/desktop/firefox.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/desktop/firefox.nix b/roles/desktop/firefox.nix index 238149b..3e31b0f 100644 --- a/roles/desktop/firefox.nix +++ b/roles/desktop/firefox.nix @@ -50,6 +50,8 @@ "Status" = "default"; }; }; + # I use an external password manager, so the built in one just bothers me + "PasswordManagerEnabled" = false; "Permissions" = { "Autoplay" = { "Allow" = [ "https://www.youtube.com" ]; From 1167b979d9a71fb40264b4eeb8ba490c9ca792d3 Mon Sep 17 00:00:00 2001 From: Toast Date: Thu, 29 Jun 2023 16:48:13 +0200 Subject: [PATCH 4/4] Firefox: always ask where to download files --- roles/desktop/firefox.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/desktop/firefox.nix b/roles/desktop/firefox.nix index 3e31b0f..5a44b3f 100644 --- a/roles/desktop/firefox.nix +++ b/roles/desktop/firefox.nix @@ -50,6 +50,7 @@ "Status" = "default"; }; }; + "PromptForDownloadLocation" = true; # I use an external password manager, so the built in one just bothers me "PasswordManagerEnabled" = false; "Permissions" = {