Files
nix-config/users/guest/common/optional/graphical/steam.nix

38 lines
700 B
Nix

{
pkgs,
...
}:
{
home.packages = with pkgs; [
gamescope
steam
];
home.persistence."/persist".directories = [
".config/gamescope"
".local/share/Steam"
".local/share/vulkan"
".steam"
];
systemd.user.services.steam-big-picture = {
Unit = {
Description = "Steam Big Picture in Gamescope";
After = [
"graphical.target"
"default.target"
];
};
Service = {
ExecStart = ''
${pkgs.gamescope}/bin/gamescope --rt --backend drm --steam -- \
${pkgs.steam}/bin/steam -pipewire-dmabuf -tenfoot
'';
Restart = "always";
};
Install = {
WantedBy = [ "default.target" ];
};
};
}