about summary refs log tree commit diff stats
path: root/home-manager
diff options
context:
space:
mode:
Diffstat (limited to 'home-manager')
-rw-r--r--home-manager/config/firefox/default.nix106
1 files changed, 54 insertions, 52 deletions
diff --git a/home-manager/config/firefox/default.nix b/home-manager/config/firefox/default.nix
index df312a6c..9341e391 100644
--- a/home-manager/config/firefox/default.nix
+++ b/home-manager/config/firefox/default.nix
@@ -16,7 +16,60 @@
     mkdir $out;
     cat "${user_js}/user.js" > $out/user.js;
     cat "${user_js_override}" >> $out/user.js;
-    # TODO look for wehre my configs gets append to, to top or the bottom of the file
+
+    cat << EOF >> $out/user.js;
+    // Allow my custom css
+    "toolkit.legacyUserProfileCustomizations.stylesheets" = true;
+
+    // might improve performance TODO
+    "gfx.webrender.all" = true;
+
+    // disable updates (pretty pointless with nix)
+    "extensions.update.autoUpdateDefault" = false;
+    "extensions.update.enabled" = false;
+    "app.update.channel" = "default";
+
+    "browser.ctrlTab.recentlyUsedOrder" = false;
+
+    "browser.download.useDownloadDir" = true;
+    "browser.download.dir" = "${config.home.homeDirectory}/media/downloads";
+    "browser.download.folderList" = 2; # TODO
+    "browser.download.viewableInternally.typeWasRegistered.svg" = true;
+    "browser.download.viewableInternally.typeWasRegistered.webp" = true;
+    "browser.download.viewableInternally.typeWasRegistered.xml" = true;
+
+    // TODO what does this do?
+    "browser.search.widget.inNavBar" = true;
+
+    "browser.shell.checkDefaultBrowser" = false;
+    "browser.tabs.loadInBackground" = true;
+    "browser.urlbar.placeholderName" = "Brave";
+
+    "general.autoScroll" = true;
+
+    // Set the tabs and bookmarks
+    "browser.tabs.inTitlebar" = 1;
+    "browser.toolbars.bookmarks.visibility" = "always";
+
+    // Theme
+    "extensions.activeThemeID" = "firefox-alpenglow@mozilla.org";
+    "extensions.extensions.activeThemeID" = "firefox-alpenglow@mozilla.org";
+
+    // highlight all entries when searching
+    "findbar.highlightAll" = true;
+
+    // TODO
+    //"extensions.webcompat.enable_picture_in_picture_overrides" = true;
+    //"extensions.webcompat.enable_shims" = true;
+    //"extensions.webcompat.perform_injections" = true;
+    //"extensions.webcompat.perform_ua_overrides" = true;
+
+    // onlykey / copied from a yubikey config
+    //"security.webauth.u2f" = true;
+    //"security.webauth.webauthn" = true;
+    //"security.webauth.webauthn_enable_softtoken" = true;
+    //"security.webauth.webauthn_enable_usbtoken" = true;
+    EOF
   '';
   #"${strip_js_comments.app.${system}.default.program}" $out/user.js > $out/user_clean.js;
   #    echo "{" > $out/user.nix.tmp
@@ -58,57 +111,6 @@
     };
 
   settings = {
-    # Allow my custom css
-    "toolkit.legacyUserProfileCustomizations.stylesheets" = true;
-
-    # might improve performance TODO
-    "gfx.webrender.all" = true;
-
-    # disable updates (pretty pointless with nix)
-    "extensions.update.autoUpdateDefault" = false;
-    "extensions.update.enabled" = false;
-    "app.update.channel" = "default";
-
-    "browser.ctrlTab.recentlyUsedOrder" = false;
-
-    "browser.download.useDownloadDir" = true;
-    "browser.download.dir" = "${config.home.homeDirectory}/media/downloads";
-    "browser.download.folderList" = 2; # TODO
-    "browser.download.viewableInternally.typeWasRegistered.svg" = true;
-    "browser.download.viewableInternally.typeWasRegistered.webp" = true;
-    "browser.download.viewableInternally.typeWasRegistered.xml" = true;
-
-    # TODO what does this do?
-    "browser.search.widget.inNavBar" = true;
-
-    "browser.shell.checkDefaultBrowser" = false;
-    "browser.tabs.loadInBackground" = true;
-    "browser.urlbar.placeholderName" = "Brave";
-
-    "general.autoScroll" = true;
-
-    # Set the tabs and bookmarks
-    "browser.tabs.inTitlebar" = 1;
-    "browser.toolbars.bookmarks.visibility" = "always";
-
-    # Theme
-    "extensions.activeThemeID" = "firefox-alpenglow@mozilla.org";
-    "extensions.extensions.activeThemeID" = "firefox-alpenglow@mozilla.org";
-
-    # highlight all entries when searching
-    "findbar.highlightAll" = true;
-
-    # TODO
-    #"extensions.webcompat.enable_picture_in_picture_overrides" = true;
-    #"extensions.webcompat.enable_shims" = true;
-    #"extensions.webcompat.perform_injections" = true;
-    #"extensions.webcompat.perform_ua_overrides" = true;
-
-    # onlykey / copied from a yubikey config
-    #"security.webauth.u2f" = true;
-    #"security.webauth.webauthn" = true;
-    #"security.webauth.webauthn_enable_softtoken" = true;
-    #"security.webauth.webauthn_enable_usbtoken" = true;
   };
 in {
   home.packages = [