add bottles, move with lutris

This commit is contained in:
Dmitriy Kholkin 2023-08-11 11:01:40 +03:00
parent d02a6d028d
commit a3eead9419
5 changed files with 37 additions and 46 deletions

View File

@ -13,6 +13,7 @@
nixosProfiles.attic nixosProfiles.attic
nixosProfiles.emulators nixosProfiles.emulators
nixosProfiles.minecraft nixosProfiles.minecraft
nixosProfiles.wine-games
]; ];
virtualisation.libvirt.guests = { virtualisation.libvirt.guests = {

View File

@ -0,0 +1,26 @@
{ pkgs, lib, config, ... }: {
programs.steam.enable = true;
programs.steam.extraCompatPackages = [
pkgs.proton-ge
];
startupApplications = [
"${pkgs.steam}/bin/steam"
];
systemd.user.services.x11-ownership = rec {
script = ''
doas chown ${config.mainuser} /tmp/.X11-unix
'';
after = [ "hyprland-session.target" ];
wantedBy = [ "hyprland-session.target" ];
};
persist.state.homeDirectories = [
".local/share/Steam"
".steam"
] ++ [
# Games configs
".config/WarThunder"
];
}

View File

@ -0,0 +1,10 @@
{ pkgs, lib, config, ... }: {
home-manager.users.${config.mainuser}.home.packages = [
pkgs.lutris pkgs.bottles
];
persist.state.homeDirectories = [
".config/lutris"
".local/share/lutris"
".local/share/bottles"
];
}

View File

@ -74,7 +74,6 @@ with config.deviceSpecific; {
ceserver ceserver
gamescope gamescope
# goverlay # goverlay
lutris
moonlight-qt moonlight-qt
# reshade-shaders # reshade-shaders
# parsec # parsec

View File

@ -1,45 +0,0 @@
{ pkgs, lib, config, ... }: {
programs.steam.enable = true;
programs.steam.extraCompatPackages = [
pkgs.proton-ge
];
startupApplications = [
"${pkgs.steam}/bin/steam"
];
systemd.user.services.x11-ownership = rec {
script = ''
doas chown ${config.mainuser} /tmp/.X11-unix
'';
after = [ "hyprland-session.target" ];
wantedBy = [ "hyprland-session.target" ];
};
persist.state.homeDirectories = [
".local/share/Steam"
".steam"
".config/lutris"
".local/share/lutris"
] ++ [
# Games configs
".config/WarThunder"
];
# Start Steam only after the network is up
# home-manager.users.${config.mainuser}.systemd.user.services.steam-startup = {
# Service = {
# ExecStart = "${pkgs.steam}/bin/steam";
# Type = "oneshot";
# };
# Unit = rec {
# After = if config.deviceSpecific.vpn.mullvad.enable then [
# "mullvad-daemon.service"
# ] else [
# "network-online.target"
# ];
# Wants = After;
# };
# Install.WantedBy = [ "hyprland-session.target" ];
# };
}