Switch to uwsm
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
localNetworkGameTransfers.openFirewall = true;
|
||||
extest.enable = true;
|
||||
protontricks.enable = true;
|
||||
extraCompatPackages = with pkgs; [ proton-ge-bin ];
|
||||
};
|
||||
|
||||
gamescope = {
|
||||
@@ -33,53 +34,47 @@
|
||||
gamemode.enable = true;
|
||||
};
|
||||
|
||||
home-manager.users.${user} = {
|
||||
systemd.user = {
|
||||
services.steam-ln =
|
||||
let
|
||||
steamLn = lib.meta.getExe (
|
||||
pkgs.writeShellApplication {
|
||||
name = "steam-ln";
|
||||
runtimeInputs = with pkgs; [ coreutils ];
|
||||
text = builtins.readFile ./steam-ln.sh;
|
||||
}
|
||||
);
|
||||
in
|
||||
{
|
||||
Unit = {
|
||||
Description = "Sync Steam games with Games directory";
|
||||
After = [
|
||||
config.environment.persistence."/persist/state"."${home}/.local/share/Steam".mount
|
||||
config.environment.persistence."/persist/user"."${home}/Games".mount
|
||||
];
|
||||
DefaultDependencies = false;
|
||||
};
|
||||
|
||||
Service = {
|
||||
ExecStart = steamLn;
|
||||
Type = "oneshot";
|
||||
};
|
||||
|
||||
Install.WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
|
||||
paths.steam-ln = {
|
||||
home-manager.users.${user}.systemd.user = {
|
||||
services.steam-ln =
|
||||
let
|
||||
steamLn = lib.meta.getExe (
|
||||
pkgs.writeShellApplication {
|
||||
name = "steam-ln";
|
||||
runtimeInputs = with pkgs; [ coreutils ];
|
||||
text = builtins.readFile ./steam-ln.sh;
|
||||
}
|
||||
);
|
||||
in
|
||||
{
|
||||
Unit = {
|
||||
Description = "Monitor Steam games directory for changes";
|
||||
Description = "Sync Steam games with Games directory";
|
||||
After = [
|
||||
config.environment.persistence."/persist/state"."${home}/.local/share/Steam".mount
|
||||
config.environment.persistence."/persist/user"."${home}/Games".mount
|
||||
];
|
||||
DefaultDependencies = false;
|
||||
};
|
||||
|
||||
Path.PathChanged = "${home}/.local/share/Steam/steamapps/common";
|
||||
Install.WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
};
|
||||
Service = {
|
||||
ExecStart = steamLn;
|
||||
Type = "oneshot";
|
||||
};
|
||||
|
||||
home = {
|
||||
packages = with pkgs; [ protonup ];
|
||||
sessionVariables.STEAM_EXTRA_COMPAT_TOOLS_PATHS = "${home}/.steam/root/compatibilitytools.d";
|
||||
Install.WantedBy = [ "default.target" ];
|
||||
};
|
||||
|
||||
paths.steam-ln = {
|
||||
Unit = {
|
||||
Description = "Monitor Steam games directory for changes";
|
||||
After = [
|
||||
config.environment.persistence."/persist/state"."${home}/.local/share/Steam".mount
|
||||
config.environment.persistence."/persist/user"."${home}/Games".mount
|
||||
];
|
||||
};
|
||||
|
||||
Path.PathChanged = "${home}/.local/share/Steam/steamapps/common";
|
||||
|
||||
Install.WantedBy = [ "default.target" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user