summaryrefslogtreecommitdiff
path: root/scripts/desktop/install-as-needed
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2025-05-28 14:24:58 -0400
committerAndrew Opalach <andrew@akon.city> 2025-05-28 14:24:58 -0400
commita28487fe6fbac72c7b1a752acab42dcc6ab46476 (patch)
treec3b1b9b751dd5e96b4afc835decf14ce38fd35f8 /scripts/desktop/install-as-needed
parent75ad6c3fcad1f19c4f4f5c345fbb43ce80d9c461 (diff)
downloaddotfiles-a28487fe6fbac72c7b1a752acab42dcc6ab46476.tar.gz
dotfiles-a28487fe6fbac72c7b1a752acab42dcc6ab46476.tar.bz2
dotfiles-a28487fe6fbac72c7b1a752acab42dcc6ab46476.zip
Post server fs corruption
Diffstat (limited to 'scripts/desktop/install-as-needed')
-rwxr-xr-xscripts/desktop/install-as-needed5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/desktop/install-as-needed b/scripts/desktop/install-as-needed
new file mode 100755
index 0000000..9db4ff1
--- /dev/null
+++ b/scripts/desktop/install-as-needed
@@ -0,0 +1,5 @@
+#! /usr/bin/env sh
+export NIXPKGS_ALLOW_UNFREE=1
+PKG=$1
+shift
+nix shell --impure --expr "with (import (builtins.getFlake ''nixpkgs'') {});$PKG" --command "$@"