You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
610 B
26 lines
610 B
{ pkgs, ... }:
|
|
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'
|
|
'';
|
|
});
|
|
in {
|
|
home.packages = [ runescape ];
|
|
|
|
home.persistence = {
|
|
"/persist/home/misterio" = {
|
|
allowOther = true;
|
|
directories = [
|
|
"Jagex"
|
|
];
|
|
};
|
|
};
|
|
}
|
|
|