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

15 lines
393 B
Nix
Raw Normal View History

2021-01-07 17:31:22 +01:00
{ bwrap-helper, osu-lazer, writeShellScriptBin }:
writeShellScriptBin "osu-lazer-container" ''
state_dir="''${XDG_DATA_HOME:-$HOME/.local/share}/osu"
mkdir -p "$state_dir"
2021-01-07 17:31:22 +01:00
${bwrap-helper}/bin/bwrap-helper \
--audio \
--gui \
--network \
--passwd \
--x11 \
--bind "$state_dir" "$state_dir" \
2021-01-07 17:31:22 +01:00
${osu-lazer}/bin/osu!
''