mirror of
https://github.com/thilobillerbeck/dotfiles.git
synced 2025-05-02 23:52:11 +02:00
restructured config directory
This commit is contained in:
parent
0ea46ec3a4
commit
e615e06990
43 changed files with 583 additions and 0 deletions
home-manager/utils
17
home-manager/utils/nixGLWrap.nix
Normal file
17
home-manager/utils/nixGLWrap.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ pkgs, lib, ... }:
|
||||
|
||||
let nixgl = import <nixgl> { };
|
||||
in pkg:
|
||||
pkgs.runCommand "${pkg.name}-nixgl-wrapper" { } ''
|
||||
mkdir $out
|
||||
ln -s ${pkg}/* $out
|
||||
rm $out/bin
|
||||
mkdir $out/bin
|
||||
for bin in ${pkg}/bin/*; do
|
||||
wrapped_bin=$out/bin/$(basename $bin)
|
||||
echo -e "#!/bin/bash\nexec ${
|
||||
lib.getExe nixgl.auto.nixGLDefault
|
||||
} $bin \$@" > $wrapped_bin
|
||||
chmod +x $wrapped_bin
|
||||
done
|
||||
''
|
Loading…
Add table
Add a link
Reference in a new issue