This commit is contained in:
@@ -44,7 +44,8 @@
|
||||
"Bash(statix check *)",
|
||||
"Read(//home/naps62/.config/sunshine/**)",
|
||||
"Read(//home/naps62/**)",
|
||||
"Read(//home/naps62/Games/**)"
|
||||
"Read(//home/naps62/Games/**)",
|
||||
"Bash(hostnamectl)"
|
||||
]
|
||||
},
|
||||
"sandbox": {
|
||||
|
||||
@@ -76,5 +76,15 @@ in
|
||||
|
||||
home.file."roms/.keep".text = "";
|
||||
xdg.configFile."retroarch/system/.keep".text = "";
|
||||
|
||||
# Slang shaders. The in-app Online Updater that normally downloads these is
|
||||
# compiled out of the nixpkgs build, so ship them from nixpkgs instead:
|
||||
# symlink the shader tree into video_shader_dir (~/.config/retroarch/shaders)
|
||||
# so Quick Menu > Shaders > Load Preset can browse shaders_slang/ — e.g.
|
||||
# handheld/lcd3x.slangp or handheld/color-mod/gba-color.slangp.
|
||||
# Read-only (it's a store path); "Save Core Preset" still works since that
|
||||
# writes to retroarch/config/<core>/, not here.
|
||||
xdg.configFile."retroarch/shaders".source =
|
||||
"${pkgs.libretro-shaders-slang}/share/libretro/shaders";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -397,7 +397,13 @@ in
|
||||
general = {
|
||||
after_sleep_cmd = "hyprctl dispatch dpms on";
|
||||
before_sleep_cmd = "loginctl lock-session";
|
||||
ignore_dbus_inhibit = false;
|
||||
# Must be true on this streaming box. GameMode (via Sunshine/Moonlight)
|
||||
# raises a dbus ScreenSaver inhibitor; if one arrives *after* the dpms-off
|
||||
# timeout has fired, hypridle's onResumed() sees inhibit_locks > 0 and
|
||||
# silently skips the on-resume `dpms on` — leaving every display (and the
|
||||
# Moonlight stream) stuck black until a hard power-cycle. Ignoring dbus
|
||||
# inhibits keeps the lock count at 0 so resume always turns displays back on.
|
||||
ignore_dbus_inhibit = true;
|
||||
# guard against launching a second hyprlock over an existing one
|
||||
lock_cmd = "pidof hyprlock || hyprlock";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user