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
mangohud = import ./mangohud args;
in {
imports = [
./firefox
];
xdg.mime.defaultApplications = {
# Use `file -i file.txt` to find file mime type.
# Use `xdg-mime query default "text/plain"` to find default app.

View file

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

View file

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