deck: LD_PRELOAD unset wrapper thing

This commit is contained in:
NullBite 2024-04-24 23:03:13 -04:00
parent d2ffb11557
commit 0afd550a25
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A

View File

@ -7,6 +7,18 @@
konsole -e bash -c "nix flake metadata --refresh github:Silveere/nixfiles; nh home switch github:Silveere/nixfiles"
'')
(
pkgs.runCommand "deckwrap" {} ''
mkdir -p $out/bin/
cat << EOF > $out/bin/deckwrap
#!/bin/sh
#this shebang is a constant between nixos and non-nixos that can be
#used to unset the two things below so we can get to the real command
unset LD_PRELOAD LD_LIBRARY_PATH
exec "$@"
''
)
];
programs.keychain.enable = false;
nixfiles.packageSets.gaming.enable = true;