Compare commits
No commits in common. "ed77751a02d805f2ce89c9c1f364ee3b26f5c2fd" and "e3fc26134e475ecc97490af3b06150657066d023" have entirely different histories.
ed77751a02
...
e3fc26134e
3 changed files with 31 additions and 7 deletions
|
@ -60,7 +60,6 @@
|
|||
"easyeffects"
|
||||
"gamescope"
|
||||
"overskride"
|
||||
"ungoogled-chromium"
|
||||
|
||||
; gtk
|
||||
"wxwidgets"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{ pkgs, nixgl, ... }:
|
||||
let
|
||||
lock-false = {
|
||||
Value = false;
|
||||
|
@ -209,11 +209,6 @@
|
|||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/privacy-badger17/latest.xpi";
|
||||
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
|
||||
|
|
30
home/nix/programs/nixGL.nix
Normal file
30
home/nix/programs/nixGL.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ 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