mirror of
https://github.com/gburd/nix-config.git
synced 2024-09-16 21:56:55 +00:00
36 lines
813 B
Nix
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"
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
}
|