restructured config directory

This commit is contained in:
Thilo Billerbeck 2023-10-28 23:16:29 +02:00
parent 0ea46ec3a4
commit e615e06990
43 changed files with 583 additions and 0 deletions
home-manager/utils

View 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
''