firefox: add nix-prefetch-firefox-extension script
This commit is contained in:
parent
80a42cc578
commit
f6f7e72089
3 changed files with 21 additions and 0 deletions
|
|
@ -145,6 +145,10 @@
|
||||||
print-battery-icon = [ ];
|
print-battery-icon = [ ];
|
||||||
controller-battery = [ print-battery-icon ];
|
controller-battery = [ print-battery-icon ];
|
||||||
mouse-battery = [ print-battery-icon ];
|
mouse-battery = [ print-battery-icon ];
|
||||||
|
nix-prefetch-firefox-extension = [
|
||||||
|
nix
|
||||||
|
];
|
||||||
|
|
||||||
_docker-block-external-connections = [
|
_docker-block-external-connections = [
|
||||||
iptables
|
iptables
|
||||||
gawk
|
gawk
|
||||||
|
|
|
||||||
7
scripts/nix-prefetch-firefox-extension
Executable file
7
scripts/nix-prefetch-firefox-extension
Executable file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
hash="$(nix-prefetch-url --type sha256 "$@")"
|
||||||
|
|
||||||
|
nix-hash --to-sri --type sha256 "$hash" 2>/dev/null
|
||||||
|
|
@ -87,6 +87,11 @@ in
|
||||||
url = "https://addons.mozilla.org/firefox/downloads/file/1176165/corretor-65.2018.12.8.xpi";
|
url = "https://addons.mozilla.org/firefox/downloads/file/1176165/corretor-65.2018.12.8.xpi";
|
||||||
hash = "sha256-/rFQtJHdgemMkGAd+KWuWxVA/BwSIkn6sk0XZE0LrGk=";
|
hash = "sha256-/rFQtJHdgemMkGAd+KWuWxVA/BwSIkn6sk0XZE0LrGk=";
|
||||||
})
|
})
|
||||||
|
(pkgs.fetchFirefoxAddon {
|
||||||
|
name = "new_tab_same_group";
|
||||||
|
url = "https://addons.mozilla.org/firefox/downloads/file/4602621/new_tab_same_group-1.7.0.xpi";
|
||||||
|
hash = "sha256-oIpQdhW3ma/MCs1hLQMcZluUnaxeW7u9nEM6iovV40E=";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
profiles = {
|
profiles = {
|
||||||
|
|
@ -139,6 +144,11 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
nix-prefetch-firefox-extension
|
||||||
|
];
|
||||||
|
|
||||||
wayland.windowManager.sway = {
|
wayland.windowManager.sway = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
exec firefox-devedition
|
exec firefox-devedition
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue