Firefox : Move from common to desktop.

This commit is contained in:
Dmitry Voronin 2024-05-02 18:14:13 +03:00
parent 3ba1edb4bc
commit 551b6bec97
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
3 changed files with 7 additions and 3 deletions

View file

@ -1,6 +1,10 @@
{ pkgs, ... } @args: let { pkgs, ... } @args: let
mangohud = import ./mangohud args; mangohud = import ./mangohud args;
in { in {
imports = [
./firefox
];
xdg.mime.defaultApplications = { xdg.mime.defaultApplications = {
# Use `file -i file.txt` to find file mime type. # Use `file -i file.txt` to find file mime type.
# Use `xdg-mime query default "text/plain"` to find default app. # Use `xdg-mime query default "text/plain"` to find default app.

View file

@ -1,5 +1,5 @@
{ util, ... }: { { util, ... }: {
config = util.trimTabs '' text = util.trimTabs ''
// Bookmarks. // Bookmarks.
lockPref("browser.microsummary.enabled", true); lockPref("browser.microsummary.enabled", true);
lockPref("browser.places.importBookmarksHTML", true); lockPref("browser.places.importBookmarksHTML", true);

View file

@ -1,5 +1,5 @@
{ pkgs, util, ... } @args: let { pkgs, util, ... } @args: let
firefox = import ./firefox args; config = import ./Config.nix args;
mkExtension = url: { mkExtension = url: {
installation_mode = "force_installed"; installation_mode = "force_installed";
@ -18,7 +18,7 @@ in {
enable = true; enable = true;
package = pkgs.firefox-esr; package = pkgs.firefox-esr;
languagePacks = [ "en-US" "ru" ]; languagePacks = [ "en-US" "ru" ];
autoConfig = firefox.config; autoConfig = config.text;
policies = { policies = {
ManagedBookmarks = [ ManagedBookmarks = [
{ toplevel_name = "Pin"; } { toplevel_name = "Pin"; }