add bottles, move with lutris
This commit is contained in:
parent
d02a6d028d
commit
a3eead9419
@ -13,6 +13,7 @@
|
||||
nixosProfiles.attic
|
||||
nixosProfiles.emulators
|
||||
nixosProfiles.minecraft
|
||||
nixosProfiles.wine-games
|
||||
];
|
||||
|
||||
virtualisation.libvirt.guests = {
|
||||
|
26
profiles/applications/games/steam.nix
Normal file
26
profiles/applications/games/steam.nix
Normal 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"
|
||||
];
|
||||
}
|
10
profiles/applications/games/wine-games.nix
Normal file
10
profiles/applications/games/wine-games.nix
Normal 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"
|
||||
];
|
||||
}
|
@ -74,7 +74,6 @@ with config.deviceSpecific; {
|
||||
ceserver
|
||||
gamescope
|
||||
# goverlay
|
||||
lutris
|
||||
moonlight-qt
|
||||
# reshade-shaders
|
||||
# parsec
|
||||
|
@ -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" ];
|
||||
# };
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user