nixos-config/pkgs/osu-lazer-container/default.nix

14 lines
369 B
Nix

{ bwrap-helper, osu-lazer, writeShellScriptBin }:
writeShellScriptBin "osu-lazer-container" ''
state_dir="''${XDG_DATA_HOME:-$HOME/.local/share}/osu"
${bwrap-helper}/bin/bwrap-helper \
--audio \
--gui \
--network \
--passwd \
--x11 \
--bind "$state_dir" "$state_dir" \
${osu-lazer}/bin/osu!
''