add osu launch script

This commit is contained in:
LavaDesu 2021-05-31 15:47:09 +07:00
parent adfd624f6f
commit 0782725ff8
Signed by: cilly
GPG key ID: 6500251E087653C9
3 changed files with 24 additions and 1 deletions

View file

@ -72,4 +72,13 @@
services = {
clipmenu.enable = true;
};
home.file.".local/bin/ipc-bridge.exe".source = builtins.fetchurl {
url = "https://github.com/0e4ef622/wine-discord-ipc-bridge/releases/download/v0.0.1/winediscordipcbridge.exe";
sha256 = "1swn9spxpq6blm74kjmfz4ipq6a8qjzccvb2msb25pf5b1z7jnns";
};
home.file.".local/bin/osu" = {
executable = true;
source = ./scripts/osu;
};
}

10
users/rin/scripts/osu Normal file
View file

@ -0,0 +1,10 @@
#!/bin/sh
cd ~/Games/osu
export DRI_PRIME=1
export vblank_mode=0
export STAGING_AUDIO_DURATION=200000
wine ~/.local/bin/ipc-bridge.exe &
wine osu\!.exe

View file

@ -120,7 +120,11 @@ in rec {
WINEARCH = "win64";
EDITOR = "nvim";
PATH = "${config.xdg.dataHome}/npm/bin:$PATH";
PATH = builtins.concatStringsSep ":" [
"${config.home.homeDirectory}/.local/bin"
"${config.xdg.dataHome}/npm/bin"
"$PATH"
];
DIRENV_LOG_FORMAT = "";
CARGO_HOME = "${config.xdg.dataHome}/cargo";
};