Compare commits
2 commits
e3fc26134e
...
ed77751a02
Author | SHA1 | Date | |
---|---|---|---|
ed77751a02 | |||
f473641826 |
3 changed files with 7 additions and 31 deletions
|
@ -60,6 +60,7 @@
|
||||||
"easyeffects"
|
"easyeffects"
|
||||||
"gamescope"
|
"gamescope"
|
||||||
"overskride"
|
"overskride"
|
||||||
|
"ungoogled-chromium"
|
||||||
|
|
||||||
; gtk
|
; gtk
|
||||||
"wxwidgets"
|
"wxwidgets"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, nixgl, ... }:
|
{ pkgs, ... }:
|
||||||
let
|
let
|
||||||
lock-false = {
|
lock-false = {
|
||||||
Value = false;
|
Value = false;
|
||||||
|
@ -209,6 +209,11 @@
|
||||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/privacy-badger17/latest.xpi";
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/privacy-badger17/latest.xpi";
|
||||||
installation_mode = "force_installed";
|
installation_mode = "force_installed";
|
||||||
};
|
};
|
||||||
|
# FoxyProxy
|
||||||
|
"foxyproxy@eric.h.jung" = {
|
||||||
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/foxyproxy-standard/latest.xpi";
|
||||||
|
installation_mode = "force_installed";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# about:config Preferences
|
# about:config Preferences
|
||||||
|
|
|
@ -1,30 +0,0 @@
|
||||||
{ pkgs, nixgl, ... }:
|
|
||||||
|
|
||||||
let
|
|
||||||
nixGL = "${nixgl.packages.${pkgs.system}.nixGLIntel}/bin/nixGLIntel";
|
|
||||||
in
|
|
||||||
pkg:
|
|
||||||
(pkg.overrideAttrs (old: {
|
|
||||||
buildCommand = ''
|
|
||||||
set -eo pipefail
|
|
||||||
|
|
||||||
${
|
|
||||||
# Heavily inspired by https://stackoverflow.com/a/68523368/6259505
|
|
||||||
pkgs.lib.concatStringsSep "\n" (map (outputName: ''
|
|
||||||
echo "Copying output ${outputName}"
|
|
||||||
set -x
|
|
||||||
cp -rs --no-preserve=mode "${pkg.${outputName}}" "''$${outputName}"
|
|
||||||
set +x
|
|
||||||
'') (old.outputs or [ "out" ]))}
|
|
||||||
|
|
||||||
rm -rf $out/bin/*
|
|
||||||
shopt -s nullglob # Prevent loop from running if no files
|
|
||||||
for file in ${pkg.out}/bin/*; do
|
|
||||||
echo "#!${pkgs.bash}/bin/bash" > "$out/bin/$(basename $file)"
|
|
||||||
echo "exec -a \"\$0\" ${nixGL} $file \"\$@\"" >> "$out/bin/$(basename $file)"
|
|
||||||
chmod +x "$out/bin/$(basename $file)"
|
|
||||||
done
|
|
||||||
shopt -u nullglob # Revert nullglob back to its normal default state
|
|
||||||
'';
|
|
||||||
}))
|
|
||||||
|
|
Loading…
Reference in a new issue