Add proton-launch
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
17
hosts/common/configs/user/gui/gaming/proton/default.nix
Normal file
17
hosts/common/configs/user/gui/gaming/proton/default.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ user, home }:
|
||||
{ lib, pkgs, ... }:
|
||||
{
|
||||
environment.persistence."/persist/state"."${home}/.local/share/proton" = { };
|
||||
|
||||
home-manager.users.${user}.home.packages = [
|
||||
(pkgs.writeShellApplication {
|
||||
name = "proton-launch";
|
||||
runtimeInputs = with pkgs; [ coreutils ];
|
||||
runtimeEnv = {
|
||||
PROTON = lib.makeSearchPathOutput "steamcompattool" "" [ pkgs.proton-ge-bin ];
|
||||
STEAM_RUN = lib.meta.getExe pkgs.steam-run;
|
||||
};
|
||||
text = builtins.readFile ./proton-launch.sh;
|
||||
})
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user