nix-config/home/gburd/features/games/runescape.nix
Greg Burd f3fd89af54
A fork of Misterio77 and his standard template.
Many thangs to the hard work and generous availability of:
git@github.com:Misterio77/nix-config.git
2023-09-15 10:53:38 -04:00

36 lines
813 B
Nix

{ pkgs, lib, ... }:
let
# Add PULSE_LATENCY_MSEC to .desktop file
pulse_latency = 100;
runescape = pkgs.runescape.overrideAttrs (oa: {
nativeBuildInputs = (oa.nativeBuildInputs or []) ++ [
pkgs.makeWrapper
];
buildCommand = (oa.buildCommand or "") + ''
wrapProgram "$out/bin/RuneScape" \
--set PULSE_LATENCY_MSEC ${toString pulse_latency} \
--run 'echo $PULSE_LATENCY_MSEC'
'';
});
openssl = lib.head (lib.filter (p: p.pname == "openssl") runescape.fhsenv.targetPaths);
in {
home.packages = [
runescape
pkgs.hdos
pkgs.runelite
];
nixpkgs.config.permittedInsecurePackages = [
openssl.name
];
home.persistence = {
"/persist/home/misterio" = {
allowOther = true;
directories = [
"Jagex"
];
};
};
}