nix-config/nixos/common/users/sajenim/steam/default.nix
♥ Minnie ♥ 9cf14b2a8c
Remove deprecated protonup-ng and add missing proton-ge-bin compatibility
- Removed `protonup-ng` from home-manager configuration for games, as it is no longer used.
- Added `unstable.proton-ge-bin` to Steam's compatibility packages in the NixOS user configuration.
2025-02-18 14:13:01 +08:00

27 lines
706 B
Nix

{pkgs, ...}: {
fileSystems."/home/sajenim/.local/share/Steam" = {
device = "/dev/disk/by-label/data";
fsType = "btrfs";
options = [
"subvol=steam"
"compress=zstd:3"
];
};
programs.steam = {
enable = true;
extraCompatPackages = [
pkgs.unstable.proton-ge-bin
];
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
};
# When we mount our steam filesystem parent directories created are owned by root.
# Lets fix that to avoid home-manager failing to start due to permission errors.
systemd.tmpfiles.rules = [
"d /home/sajenim/.local 0755 sajenim users -"
"d /home/sajenim/.local/share 0755 sajenim users -"
];
}