mirror of
https://github.com/nmasur/dotfiles
synced 2026-02-05 13:29:45 +00:00
try to prevent unnecessary firefox rebuidl
This commit is contained in:
5
overlays/firefox.nix
Normal file
5
overlays/firefox.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
inputs: final: prev: {
|
||||||
|
|
||||||
|
firefox-unwrapped = final.stable.firefox-unwrapped;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -13,5 +13,10 @@
|
|||||||
},
|
},
|
||||||
"action": {
|
"action": {
|
||||||
"default_popup": "popup.html"
|
"default_popup": "popup.html"
|
||||||
|
},
|
||||||
|
"browser_specific_settings": {
|
||||||
|
"gecko": {
|
||||||
|
"id": "firefox-history-exporter@nmasur.com"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,28 +1,19 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
pkgs.stdenv.mkDerivation {
|
pkgs.stdenv.mkDerivation rec {
|
||||||
pname = "firefox-history-exporter";
|
pname = "firefox-history-exporter";
|
||||||
version = "1.0";
|
version = "1.0";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgs.zip ];
|
nativeBuildInputs = [ pkgs.zip ];
|
||||||
|
|
||||||
# We are not building anything, just packaging.
|
# We aren't building, just packaging
|
||||||
dontBuild = true;
|
dontUnpack = true;
|
||||||
|
|
||||||
installPhase = ''
|
buildCommand = ''
|
||||||
# The directory structure expected by Firefox and home-manager.
|
dst="$out/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
|
||||||
# The UUID is the official application ID for Firefox.
|
mkdir -p "$dst"
|
||||||
install_dir=$out/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}
|
(cd ${src}; zip "$dst/firefox-history-exporter@nmasur.com.xpi" manifest.json background.js popup.html popup.js)
|
||||||
mkdir -p $install_dir
|
|
||||||
|
|
||||||
# The filename of the .xpi file serves as the extension's ID.
|
|
||||||
# An email-like format is a common convention.
|
|
||||||
extension_id="firefox-history-exporter@localhost.xpi"
|
|
||||||
|
|
||||||
# Go into the source directory and zip all files into the .xpi archive.
|
|
||||||
# This ensures the manifest.json is at the root of the archive.
|
|
||||||
(cd $src; zip $install_dir/$extension_id *)
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with pkgs.lib; {
|
meta = with pkgs.lib; {
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ in
|
|||||||
vimium
|
vimium
|
||||||
wappalyzer # TODO: only for work profile
|
wappalyzer # TODO: only for work profile
|
||||||
pkgs.nmasur.firefox-history-exporter
|
pkgs.nmasur.firefox-history-exporter
|
||||||
|
copy-as-markdown
|
||||||
# saml-tracer
|
# saml-tracer
|
||||||
# text-fragment
|
# text-fragment
|
||||||
];
|
];
|
||||||
@@ -62,6 +63,7 @@ in
|
|||||||
"trailhead.firstrun.didSeeAboutWelcome" = true; # Disable welcome splash
|
"trailhead.firstrun.didSeeAboutWelcome" = true; # Disable welcome splash
|
||||||
"dom.forms.autocomplete.formautofill" = false; # Disable autofill
|
"dom.forms.autocomplete.formautofill" = false; # Disable autofill
|
||||||
"extensions.formautofill.creditCards.enabled" = false; # Disable credit cards
|
"extensions.formautofill.creditCards.enabled" = false; # Disable credit cards
|
||||||
|
"extensions.autoDisableScopes" = false; # Enable extensions automatically
|
||||||
"dom.payments.defaults.saveAddress" = false; # Disable address save
|
"dom.payments.defaults.saveAddress" = false; # Disable address save
|
||||||
"general.autoScroll" = true; # Drag middle-mouse to scroll
|
"general.autoScroll" = true; # Drag middle-mouse to scroll
|
||||||
"services.sync.prefs.sync.general.autoScroll" = false; # Prevent disabling autoscroll
|
"services.sync.prefs.sync.general.autoScroll" = false; # Prevent disabling autoscroll
|
||||||
|
|||||||
@@ -45,14 +45,6 @@ in
|
|||||||
# Runs the script through /bin/sh automatically
|
# Runs the script through /bin/sh automatically
|
||||||
# RunAtLoad = true;
|
# RunAtLoad = true;
|
||||||
StartCalendarInterval = [
|
StartCalendarInterval = [
|
||||||
{
|
|
||||||
Hour = 11;
|
|
||||||
Minute = 45;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
Hour = 3;
|
|
||||||
Minute = 45;
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
Hour = 4;
|
Hour = 4;
|
||||||
Minute = 45;
|
Minute = 45;
|
||||||
|
|||||||
@@ -15,12 +15,6 @@ in
|
|||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
||||||
nixpkgs.overlays = [
|
|
||||||
(_final: _prev: {
|
|
||||||
firefox-unwrapped = pkgs.stable.firefox-unwrapped;
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
system.defaults.CustomUserPreferences = {
|
system.defaults.CustomUserPreferences = {
|
||||||
"com.apple.dock" = {
|
"com.apple.dock" = {
|
||||||
magnification = true;
|
magnification = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user