dots/users/sam/home.nix
Price Hiller 02334f5601
All checks were successful
Check Formatting of Files / Check-Formatting (push) Successful in 1m14s
refactor!: the big nix refactor
2024-05-03 14:35:00 -05:00

27 lines
603 B
Nix

{ pkgs, lib, ... }:
let
nixGLWrap =
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 "exec ${lib.getExe pkgs.nixgl.nixGLIntel} $bin \$@" > $wrapped_bin
chmod +x $wrapped_bin
done
'';
in
{
imports = [ ../price/home.nix ];
xdg.systemDirs.data = [ "/usr/share" ];
home = {
packages = with pkgs; [
(lib.hiPrio (nixGLWrap neovide))
(lib.hiPrio (nixGLWrap wezterm))
];
};
}