mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 23:55:37 +00:00
improve gaming tools
This commit is contained in:
parent
2b72ffb6cf
commit
93de15cec0
@ -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
|
||||||
|
@ -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 = {
|
||||||
|
@ -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
|
||||||
|
39
modules/gaming/legendary.nix
Normal file
39
modules/gaming/legendary.nix
Normal 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;
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -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
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user