Move all allowUnfreePredicate declarations to global configs to prevent the "last definition wins" merging issue. Unfree packages are now managed in two central locations: - NixOS system packages: nixos/common/global/default.nix - Home Manager packages: home-manager/sajenim/global/default.nix
30 lines
719 B
Nix
30 lines
719 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: {
|
|
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 -"
|
|
];
|
|
}
|