improve gaming tools

This commit is contained in:
Noah Masur 2022-05-28 10:34:00 -04:00
parent 2b72ffb6cf
commit 93de15cec0
6 changed files with 57 additions and 5 deletions

View File

@ -12,8 +12,9 @@ nixpkgs.lib.nixosSystem {
gui.enable = true; gui.enable = true;
gui.compositor.enable = true; gui.compositor.enable = true;
nixpkgs.overlays = [ nur.overlay ]; nixpkgs.overlays = [ nur.overlay ];
gaming.leagueoflegends = true;
gaming.steam = true; gaming.steam = true;
gaming.leagueoflegends = true;
gaming.legendary = true;
} }
./hardware-configuration.nix ./hardware-configuration.nix
../common.nix ../common.nix

View File

@ -1,6 +1,6 @@
{ config, ... }: { { config, ... }: {
imports = [ ./leagueoflegends.nix ./lutris.nix ./steam.nix ]; imports = [ ./leagueoflegends.nix ./lutris.nix ./steam.nix ./legendary.nix ];
config = { config = {
hardware.opengl = { hardware.opengl = {

View File

@ -14,7 +14,7 @@
# Lutris requirement to install the game # Lutris requirement to install the game
lutris lutris
amdvlk amdvlk
wine wineWowPackages.stable
# Required according to https://lutris.net/games/league-of-legends/ # Required according to https://lutris.net/games/league-of-legends/
openssl openssl

View File

@ -0,0 +1,39 @@
{ config, pkgs, lib, ... }: {
options.gaming.legendary =
lib.mkEnableOption "Legendary - Epic Games Launcher";
config = lib.mkIf config.gaming.legendary {
environment.systemPackages = with pkgs; [
legendary-gl
rare # GUI for Legendary (not working)
wineWowPackages.stable # 32-bit and 64-bit wineWowPackages
];
home-manager.users.${config.user} = {
xdg.configFile."legendary/config.ini".text = ''
[Legendary]
; Disables the automatic update check
disable_update_check = false
; Disables the notice about an available update on exit
disable_update_notice = true
; Set install directory
install_dir = /home/${config.user}/media/games
; Make output quiet
log_level = warning
'';
home.file = let
ignorePatterns = ''
.wine/
drive_c/'';
in {
".rgignore".text = ignorePatterns;
".fdignore".text = ignorePatterns;
};
};
};
}

View File

@ -3,7 +3,11 @@
options.gaming.lutris = lib.mkEnableOption "Lutris"; options.gaming.lutris = lib.mkEnableOption "Lutris";
config = lib.mkIf config.gaming.lutris { config = lib.mkIf config.gaming.lutris {
environment.systemPackages = with pkgs; [ lutris amdvlk wine ]; environment.systemPackages = with pkgs; [
lutris
amdvlk # Vulkan drivers (probably already installed)
wineWowPackages.stable # 32-bit and 64-bit wineWowPackages
];
}; };
} }

View File

@ -5,7 +5,15 @@
config = lib.mkIf config.gaming.steam { config = lib.mkIf config.gaming.steam {
hardware.steam-hardware.enable = true; hardware.steam-hardware.enable = true;
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [ steam ]; environment.systemPackages = with pkgs; [
steam
# Enable terminal interaction
steamPackages.steamcmd
steam-tui
];
}; };
} }