46 lines
1.1 KiB
Nix
Raw Normal View History

2022-01-29 00:55:10 +03:00
{ pkgs, lib, config, ... }: {
2021-06-29 22:29:22 +03:00
programs.steam.enable = true;
2023-03-27 15:59:04 +03:00
programs.steam.extraCompatPackages = [
pkgs.proton-ge
];
2022-01-29 00:55:10 +03:00
2022-12-14 23:46:25 +03:00
startupApplications = [
"${pkgs.steam}/bin/steam"
];
2023-02-14 07:04:20 +03:00
systemd.user.services.x11-ownership = rec {
script = ''
doas chown ${config.mainuser} /tmp/.X11-unix
'';
after = [ "hyprland-session.target" ];
wantedBy = [ "hyprland-session.target" ];
};
2022-10-21 13:57:17 +03:00
2023-03-27 16:00:57 +03:00
persist.state.homeDirectories = [
".local/share/Steam"
2023-04-08 17:59:55 +03:00
".steam"
".config/lutris"
".local/share/lutris"
] ++ [
# Games configs
".config/WarThunder"
2023-03-27 16:00:57 +03:00
];
2022-10-21 13:57:17 +03:00
# Start Steam only after the network is up
2022-12-10 22:34:39 +03:00
# home-manager.users.${config.mainuser}.systemd.user.services.steam-startup = {
2022-11-21 02:53:20 +03:00
# Service = {
# ExecStart = "${pkgs.steam}/bin/steam";
# Type = "oneshot";
# };
# Unit = rec {
2023-02-14 07:04:20 +03:00
# After = if config.deviceSpecific.vpn.mullvad.enable then [
# "mullvad-daemon.service"
# ] else [
# "network-online.target"
# ];
2022-11-21 02:53:20 +03:00
# Wants = After;
# };
2023-02-14 07:04:20 +03:00
# Install.WantedBy = [ "hyprland-session.target" ];
2022-11-21 02:53:20 +03:00
# };
2022-10-08 04:38:45 +03:00
}