fix: add offload condition to bind

This commit is contained in:
DACHXY 2025-01-05 16:18:22 +08:00
parent c93bc1099c
commit 4d0a35652c
3 changed files with 9 additions and 6 deletions

View file

@ -1,8 +1,9 @@
{ mainMod }:
{ mainMod, nvidia-offload-enabled }:
let
prefix = if nvidia-offload-enabled then "offload " else "";
uwsm = "uwsm app --";
browser = "offload firefox";
terminal = "offload ghostty";
browser = "${prefix}firefox";
terminal = "${prefix}ghostty";
filemanager = "nemo";
scripts = "~/.config/scripts";