firefox: add nix-prefetch-firefox-extension script
This commit is contained in:
parent
80a42cc578
commit
fd8180ce67
3 changed files with 16 additions and 0 deletions
|
|
@ -145,6 +145,10 @@
|
|||
print-battery-icon = [ ];
|
||||
controller-battery = [ print-battery-icon ];
|
||||
mouse-battery = [ print-battery-icon ];
|
||||
nix-prefetch-firefox-extension = [
|
||||
nix
|
||||
];
|
||||
|
||||
_docker-block-external-connections = [
|
||||
iptables
|
||||
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
|
||||
|
|
@ -139,6 +139,11 @@ in
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
nix-prefetch-firefox-extension
|
||||
];
|
||||
|
||||
wayland.windowManager.sway = {
|
||||
extraConfig = ''
|
||||
exec firefox-devedition
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue