feat: switch to pipewire
This commit is contained in:
parent
b414ba1d17
commit
9791074aec
8 changed files with 101 additions and 11 deletions
home/gaming
7
home/gaming/default.nix
Normal file
7
home/gaming/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ config, pkgs, nixosConfig, ... }:
|
||||
|
||||
{
|
||||
imports = [ ./steam.nix ./lutris.nix ];
|
||||
|
||||
programs.gamemode.enable = true;
|
||||
}
|
31
home/gaming/lutris.nix
Normal file
31
home/gaming/lutris.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ config, pkgs, nixosConfig, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [ lutris ];
|
||||
|
||||
xdg.dataFile = {
|
||||
wine-runner-sc.source = let version = "6.10";
|
||||
in {
|
||||
executable = true;
|
||||
recursive = true;
|
||||
source = builtins.fetchTarball {
|
||||
src =
|
||||
"https://github.com/snatella/wine-runner-sc/releases/download/wine-v${version}/wine-runner-${version}-gold-fsync.tgz";
|
||||
sha256 = "";
|
||||
};
|
||||
target = "lutris/wine/wine-runner-sc";
|
||||
};
|
||||
|
||||
proton-ge = let version = "6.12-GE-1";
|
||||
in {
|
||||
executable = true;
|
||||
recursive = true;
|
||||
source = builtins.fetchTarball {
|
||||
url =
|
||||
"https://github.com/GloriousEggroll/proton-ge-custom/releases/download/${version}/Proton-${version}.tar.gz";
|
||||
sha256 = "12pk1bvjrziszglbrc6f0i555b19ycmf3cc70k63d53lyz3ra9vp";
|
||||
};
|
||||
target = "Steam/compatibilitytools.d/proton-ge";
|
||||
};
|
||||
};
|
||||
}
|
12
home/gaming/steam.nix
Normal file
12
home/gaming/steam.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ config, pkgs, nixosConfig, ... }:
|
||||
|
||||
let
|
||||
steam = pkgs.steam.override {
|
||||
extraLibraries = pkgs:
|
||||
with nixosConfig.hardware.opengl;
|
||||
if pkgs.hostPlatform.is64bit then
|
||||
[ package ] ++ extraPackages
|
||||
else
|
||||
[ package32 ] ++ extraPackages32;
|
||||
};
|
||||
in { home.packages = [ steam steam.run ]; }
|
Loading…
Add table
Add a link
Reference in a new issue