some stuff

This commit is contained in:
xunuwu 2024-05-21 22:15:08 +02:00
parent cd8343c0c4
commit d2fd9fda8a
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
26 changed files with 377 additions and 83 deletions

View file

@ -1,3 +1,4 @@
{pkgs, ...}: {
jdnbtexplorer = pkgs.qt6Packages.callPackage ./jdnbtexplorer {};
gamesand = pkgs.callPackage ./gamesand {};
}

24
pkgs/gamesand/default.nix Normal file
View file

@ -0,0 +1,24 @@
{
steamPackages,
symlinkJoin,
}:
symlinkJoin {
name = "gamesand";
paths = [
((steamPackages.steam-fhsenv-without-steam.override
{
extraBwrapArgs = [
"--ro-bind ./files /game/files"
"--bind ./appdata /home/$USER"
"--chdir /game"
"--ro-bind ./start.sh /game/start.sh"
"--cap-add ALL"
];
})
.run)
];
postBuild = ''
mv $out/bin/steam-run $out/bin/gamesand
sed -i 's/ignored=(\/nix \/dev \/proc \/etc )/ignored=(\/nix \/dev \/proc \/etc \/home )/' $out/bin/gamesand
'';
}