forked from mirrors_public/oddlama_nix-config
feat: use bottles instead of lutris
This commit is contained in:
parent
968cd97931
commit
bbcf39a3ae
3 changed files with 17 additions and 43 deletions
|
@ -13,7 +13,7 @@
|
||||||
./sway.nix
|
./sway.nix
|
||||||
]
|
]
|
||||||
++ lib.optionals nixosConfig.graphical.gaming.enable [
|
++ lib.optionals nixosConfig.graphical.gaming.enable [
|
||||||
./games/lutris.nix
|
./games/bottles.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
|
|
16
users/myuser/graphical/games/bottles.nix
Normal file
16
users/myuser/graphical/games/bottles.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
bottles
|
||||||
|
winetricks
|
||||||
|
wineWowPackages.fonts
|
||||||
|
wineWowPackages.stagingFull
|
||||||
|
];
|
||||||
|
|
||||||
|
home.persistence."/state".directories = [
|
||||||
|
".local/share/bottles"
|
||||||
|
];
|
||||||
|
}
|
|
@ -1,42 +0,0 @@
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
(lutris.override {
|
|
||||||
# Needed to stop ntlm_auth warnings in lutris
|
|
||||||
extraLibraries = p: [p.jansson];
|
|
||||||
})
|
|
||||||
|
|
||||||
openssl
|
|
||||||
vulkan-tools
|
|
||||||
dxvk
|
|
||||||
wineWowPackages.stable
|
|
||||||
winetricks
|
|
||||||
];
|
|
||||||
|
|
||||||
home.persistence."/state".directories = [
|
|
||||||
".config/lutris"
|
|
||||||
".local/share/lutris"
|
|
||||||
"Games"
|
|
||||||
];
|
|
||||||
|
|
||||||
xdg.desktopEntries.LeagueOfLegends = {
|
|
||||||
name = "League of Legends";
|
|
||||||
icon = "league-of-legends";
|
|
||||||
# XXX: TODO as popup dunst?
|
|
||||||
exec = toString (pkgs.writeShellScript "league-launcher-script" ''
|
|
||||||
set -euo pipefail
|
|
||||||
if [[ "$(sysctl -n abi.vsyscall32)" != 0 ]]; then
|
|
||||||
echo "Please disable abi.vsyscall32 as root to make the anti-cheat happy:"
|
|
||||||
echo " sysctl -w abi.vsyscall32=0"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
LUTRIS_SKIP_INIT=1 ${pkgs.lutris}/bin/lutris lutris:rungame/league-of-legends
|
|
||||||
'');
|
|
||||||
categories = ["Game"];
|
|
||||||
type = "Application";
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue