diff --git a/common.nix b/common.nix index cfa5499..9f18dd2 100644 --- a/common.nix +++ b/common.nix @@ -91,7 +91,7 @@ clean = "sudo nix-collect-garbage -d"; ll = "ls -alh"; clear = "command clear"; - reboot = "sudo systemctl reboot"; + reboot = "bash -c 'if [ \"$(hostname)\" = \"FredOS-Mediaserver\" ]; then read -r -p \"Reboot $(hostname)? [y/N] \" confirm; case \"$confirm\" in [Yy]) ;; *) exit 0 ;; esac; fi; sudo systemctl reboot'"; }; # Add packages diff --git a/hosts/FredOS-Gaming.nix b/hosts/FredOS-Gaming.nix index 105a1c3..93ec77a 100644 --- a/hosts/FredOS-Gaming.nix +++ b/hosts/FredOS-Gaming.nix @@ -33,9 +33,6 @@ programs.steam = { enable = true; remotePlay.openFirewall = true; - extraCompatPackages = [ - inputs.proton-cachyos-nix.packages.${pkgs.stdenv.hostPlatform.system}.proton-cachyos-x86_64-v3 - ]; package = pkgs.steam.override { extraPkgs = pkgs: with pkgs; [ adwaita-icon-theme @@ -84,6 +81,11 @@ home-manager.users.fred = { ... }: { wayland.windowManager.hyprland.settings.monitor = [ "DP-2,3440x1440@180,0x0,1" ]; + + # Faugus scans compatibilitytools.d directly, not STEAM_EXTRA_COMPAT_TOOLS_PATHS, + # so we symlink the nix-managed tool into the directory it actually checks. + home.file.".local/share/Steam/compatibilitytools.d/proton-cachyos".source = + inputs.proton-cachyos-nix.packages.x86_64-linux.proton-cachyos-x86_64-v3.steamcompattool; }; }; }