Also jellyfin-mpv-shim, mangohud logging, portal-backed xdg-open, systemd-resolved with fallback DNS, and keyring under the user manager. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
38 lines
1.4 KiB
Nix
38 lines
1.4 KiB
Nix
{ inputs, pkgs, ... }:
|
|
|
|
let
|
|
sc = inputs.nix-citizen.packages.${pkgs.stdenv.hostPlatform.system};
|
|
in
|
|
|
|
# Star Citizen via nix-citizen's RSI Launcher (wine-astral). The module also
|
|
# sets the LUG prerequisites: vm.max_map_count, file limits, joystick udev, ntsync.
|
|
{
|
|
imports = [ inputs.nix-citizen.nixosModules.StarCitizen ];
|
|
|
|
nix.settings = {
|
|
substituters = [ "https://nix-citizen.cachix.org" ];
|
|
trusted-public-keys = [ "nix-citizen.cachix.org-1:lPMkWc2X8XD4/7YPEEwXKKBg+SVbYTVrAaLA2wQTKCo=" ];
|
|
};
|
|
|
|
programs.rsi-launcher = {
|
|
enable = true;
|
|
# The overlay rebuilds wine-astral + mingw gcc against our nixpkgs (no cache
|
|
# hit; froze terra), and its fallback indexes packages by the platform attrset.
|
|
includeOverlay = false;
|
|
package = sc.rsi-launcher;
|
|
wine = sc.wine-astral;
|
|
location = "/mnt/ssd_01/games/rsi-launcher"; # ~130G, wants an SSD
|
|
# No gamescope: nested it has no clipboard sync and a us keymap, and it can't
|
|
# wrap just the game (the launcher spawns it). Workspace: home/desktop/hyprland.nix.
|
|
# Back onto wine's X11 driver: the Wayland one's clipboard dies on Hyprland
|
|
# ("opcode 3 of zwlr_data_control_device_v1 is NULL"). Runs after the script disables it.
|
|
preCommands = ''WINEDLLOVERRIDES="''${WINEDLLOVERRIDES%;winex11.drv=d}"'';
|
|
};
|
|
|
|
# The game peaks above terra's 32G and has no swap to fall back on.
|
|
zramSwap = {
|
|
enable = true;
|
|
memoryPercent = 50;
|
|
};
|
|
}
|