From 0afd550a252f3fddcf11bbf3766f5aaa342cdc44 Mon Sep 17 00:00:00 2001 From: NullBite Date: Wed, 24 Apr 2024 23:03:13 -0400 Subject: [PATCH] deck: LD_PRELOAD unset wrapper thing --- users/deck/home.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/users/deck/home.nix b/users/deck/home.nix index 3fcc217..a1f7b02 100644 --- a/users/deck/home.nix +++ b/users/deck/home.nix @@ -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;