mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
feat: add LoL
This commit is contained in:
parent
2af6d9e2fb
commit
8990a63a1e
2 changed files with 51 additions and 11 deletions
|
@ -1,14 +1,21 @@
|
||||||
{pkgs, ...}: {
|
{
|
||||||
imports = [
|
lib,
|
||||||
#./games/league-of-legends.nix
|
pkgs,
|
||||||
#./games/steam.nix
|
nixosConfig,
|
||||||
|
...
|
||||||
./discord.nix
|
}: {
|
||||||
./firefox.nix
|
imports =
|
||||||
./kitty.nix
|
[
|
||||||
./signal.nix
|
./discord.nix
|
||||||
./sway.nix
|
./firefox.nix
|
||||||
];
|
./kitty.nix
|
||||||
|
./signal.nix
|
||||||
|
./sway.nix
|
||||||
|
]
|
||||||
|
++ lib.optionals (nixosConfig.node.name == "potksed") [
|
||||||
|
./games/lutris.nix
|
||||||
|
#./games/steam.nix
|
||||||
|
];
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
|
|
33
users/myuser/graphical/games/lutris.nix
Normal file
33
users/myuser/graphical/games/lutris.nix
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
lutris
|
||||||
|
wineWowPackages.stable
|
||||||
|
];
|
||||||
|
|
||||||
|
home.persistence."/state".directories = [
|
||||||
|
".config/lutris"
|
||||||
|
".local/share/lutris"
|
||||||
|
"Games"
|
||||||
|
];
|
||||||
|
|
||||||
|
xdg.desktopEntries.LeagueOfLegends = {
|
||||||
|
name = "League of Legends";
|
||||||
|
icon = "league-of-legends";
|
||||||
|
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