tweaking and tidying
This commit is contained in:
parent
b9e4db2a38
commit
260910529d
10 changed files with 225 additions and 357 deletions
119
core/gaming.nix
119
core/gaming.nix
|
|
@ -2,6 +2,34 @@
|
|||
|
||||
{
|
||||
|
||||
environment = {
|
||||
|
||||
# These are important apparently :uh:
|
||||
sessionVariables = {
|
||||
XDG_CACHE_HOME = "$HOME/.cache";
|
||||
XDG_CONFIG_HOME = "$HOME/.config";
|
||||
XDG_BIN_HOME = "$HOME/.local/bin";
|
||||
XDG_DATA_HOME = "$HOME/.local/share";
|
||||
# Steam needs this to find Proton-GE
|
||||
STEAM_EXTRA_COMPAT_TOOLS_PATHS = "\${HOME}/.steam/root/compatibilitytools.d";
|
||||
# Note: this doesn't replace PATH, it just adds this to it
|
||||
PATH = [ "\${XDG_BIN_HOME}" ];
|
||||
NIXOS_OZONE_WL = "1";
|
||||
SDL_VIDEODRIVER = "x11,wayland,windows";
|
||||
};
|
||||
|
||||
# Games and misc.
|
||||
systemPackages = with pkgs; [
|
||||
piper # Open mouse config
|
||||
vassal # FOSSy board game sim
|
||||
cockatrice # Magical the gathering, but free
|
||||
prismlauncher # Modded Minecraft client
|
||||
osu-lazer-bin # Rhythm is just a click away!
|
||||
inputs.nix-gaming.packages.${pkgs.system}.osu-mime
|
||||
#inputs.nix-gaming.packages.${pkgs.system}.osu-lazer-bin
|
||||
];
|
||||
};
|
||||
|
||||
# Adding primary user to gamemode group
|
||||
users.users.${user}.extraGroups = [ "gamemode" ];
|
||||
# Gaming mouse config
|
||||
|
|
@ -18,54 +46,40 @@
|
|||
];
|
||||
};
|
||||
|
||||
environment = {
|
||||
# Games and misc.
|
||||
systemPackages = with pkgs; [
|
||||
piper # Open mouse config
|
||||
vassal # FOSSy board game sim
|
||||
cockatrice # Magical the gathering, but free
|
||||
prismlauncher # Modded Minecraft client
|
||||
osu-lazer-bin # Rhythm is just a click away!
|
||||
inputs.nix-gaming.packages.${pkgs.system}.osu-mime
|
||||
#inputs.nix-gaming.packages.${pkgs.system}.osu-lazer-bin
|
||||
];
|
||||
|
||||
# These are important apparently :uh:
|
||||
sessionVariables = {
|
||||
XDG_CACHE_HOME = "$HOME/.cache";
|
||||
XDG_CONFIG_HOME = "$HOME/.config";
|
||||
XDG_BIN_HOME = "$HOME/.local/bin";
|
||||
XDG_DATA_HOME = "$HOME/.local/share";
|
||||
# Steam needs this to find Proton-GE
|
||||
STEAM_EXTRA_COMPAT_TOOLS_PATHS = "\${HOME}/.steam/root/compatibilitytools.d";
|
||||
# Note: this doesn't replace PATH, it just adds this to it
|
||||
PATH = [ "\${XDG_BIN_HOME}" ];
|
||||
NIXOS_OZONE_WL = "1";
|
||||
SDL_VIDEODRIVER = "x11,wayland,windows";
|
||||
};
|
||||
};
|
||||
|
||||
## TIDY BELOW ##
|
||||
|
||||
programs = {
|
||||
|
||||
# Java, just in case i guess ?
|
||||
java.enable = true;
|
||||
# This should help games run more betterer
|
||||
java.enable = true; # just in case
|
||||
gamescope = {
|
||||
enable = true;
|
||||
capSysNice = true;
|
||||
enable = true; # compositor for games
|
||||
capSysNice = true; # should make games run better
|
||||
};
|
||||
|
||||
# Steam
|
||||
steam = {
|
||||
enable = true; # enables steam itself
|
||||
protontricks.enable = true; # enables protontricks
|
||||
gamescopeSession.enable = true; # compositor for games
|
||||
extraCompatPackages = with pkgs; [ proton-ge-bin ]; # glorious eggroll
|
||||
package = pkgs.steam.override { # no clue lol
|
||||
extraLibraries = pkgs: [ pkgs.xorg.libxcb ]; # what
|
||||
extraPkgs = pkgs: with pkgs; [ # absolutely clueless lol
|
||||
libpng
|
||||
libpulseaudio
|
||||
libvorbis
|
||||
stdenv.cc.cc.lib
|
||||
libkrb5
|
||||
keyutils
|
||||
gamemode
|
||||
] ++ (with pkgs.xorg; [ libXi libXcursor libXinerama libXScrnSaver ]);
|
||||
};
|
||||
};
|
||||
|
||||
# "GameMode" - https://nixos.wiki/wiki/Gamemode
|
||||
# (config copy-pasted from mynixos)
|
||||
gamemode = {
|
||||
enable = false;
|
||||
settings = {
|
||||
general = {
|
||||
renice = 10;
|
||||
};
|
||||
## Warning: GPU optimisations have the potential to damage hardware
|
||||
general.renice = 10;
|
||||
# Warning: GPU optimisations have the potential to damage hardware
|
||||
gpu = {
|
||||
apply_gpu_optimisations = "accept-responsibility";
|
||||
gpu_device = 0;
|
||||
|
|
@ -78,33 +92,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
# Steam itself
|
||||
steam = {
|
||||
# Enables steam itself
|
||||
enable = true;
|
||||
# Enables protontricks
|
||||
protontricks.enable = true;
|
||||
# This should help games run more betterer
|
||||
gamescopeSession.enable = true;
|
||||
## No clue what this is doing
|
||||
#package = pkgs.steam.override {
|
||||
#extraLibraries = pkgs: [ pkgs.xorg.libxcb ];
|
||||
## No clue what this shit does
|
||||
#extraPkgs = pkgs:
|
||||
#with pkgs; [
|
||||
#libpng
|
||||
#libpulseaudio
|
||||
#libvorbis
|
||||
#stdenv.cc.cc.lib
|
||||
#libkrb5
|
||||
#keyutils
|
||||
#gamemode
|
||||
#] ++ (with pkgs.xorg; [ libXi libXcursor libXinerama libXScrnSaver ]);
|
||||
#};
|
||||
#extraPackages = with pkgs; [ ];
|
||||
# Gotta have the glorious eggroll
|
||||
extraCompatPackages = with pkgs; [ proton-ge-bin ];
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue