18 lines
512 B
Nix
18 lines
512 B
Nix
{ 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;
|
|
})
|
|
];
|
|
}
|