diff options
Diffstat (limited to 'accounts/gkleen@sif')
-rw-r--r-- | accounts/gkleen@sif/hyprland.nix | 4 | ||||
-rw-r--r-- | accounts/gkleen@sif/systemd.nix | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/accounts/gkleen@sif/hyprland.nix b/accounts/gkleen@sif/hyprland.nix index 88c71f7f..8c920354 100644 --- a/accounts/gkleen@sif/hyprland.nix +++ b/accounts/gkleen@sif/hyprland.nix | |||
@@ -23,6 +23,10 @@ in { | |||
23 | "QT_AUTO_SCREEN_SCALE_FACTOR,1" | 23 | "QT_AUTO_SCREEN_SCALE_FACTOR,1" |
24 | "SDL_VIDEODRIVER,wayland" | 24 | "SDL_VIDEODRIVER,wayland" |
25 | # "AQ_DRM_DEVICES,/dev/dri/by-path/pci-0000:01:00.0-card" | 25 | # "AQ_DRM_DEVICES,/dev/dri/by-path/pci-0000:01:00.0-card" |
26 | "__NV_PRIME_RENDER_OFFLOAD,1" | ||
27 | "__NV_PRIME_RENDER_OFFLOAD_PROVIDER,NVIDIA-G0" | ||
28 | "__GLX_VENDOR_LIBRARY_NAME,nvidia" | ||
29 | "__VK_LAYER_NV_optimus,NVIDIA_only" | ||
26 | ]; | 30 | ]; |
27 | 31 | ||
28 | xwayland.force_zero_scaling = true; | 32 | xwayland.force_zero_scaling = true; |
diff --git a/accounts/gkleen@sif/systemd.nix b/accounts/gkleen@sif/systemd.nix index 20db64a0..d654811e 100644 --- a/accounts/gkleen@sif/systemd.nix +++ b/accounts/gkleen@sif/systemd.nix | |||
@@ -287,8 +287,9 @@ in { | |||
287 | WatchdogSec = "30min"; | 287 | WatchdogSec = "30min"; |
288 | Environment = [ | 288 | Environment = [ |
289 | "PATH=${lib.makeBinPath (with pkgs; [atomicparsley ffmpeg-headless rtmpdump])}" | 289 | "PATH=${lib.makeBinPath (with pkgs; [atomicparsley ffmpeg-headless rtmpdump])}" |
290 | "DSCP=8" | ||
290 | ]; | 291 | ]; |
291 | ExecStart = pkgs.writers.writePython3 "yt-dlp" { | 292 | ExecStart = ''${lib.getExe pkgs.dscp} ${pkgs.writers.writePython3 "yt-dlp" { |
292 | libraries = with pkgs.python3Packages; [ yt-dlp sdnotify ]; | 293 | libraries = with pkgs.python3Packages; [ yt-dlp sdnotify ]; |
293 | } '' | 294 | } '' |
294 | import json | 295 | import json |
@@ -316,7 +317,7 @@ in { | |||
316 | with YoutubeDL(ydl_opts) as ytdl: | 317 | with YoutubeDL(ydl_opts) as ytdl: |
317 | n.notify('READY=1') | 318 | n.notify('READY=1') |
318 | ytdl.download(args['urls']) | 319 | ytdl.download(args['urls']) |
319 | ''; | 320 | ''}''; |
320 | ExecStopPost = "${pkgs.coreutils}/bin/rm -rfv \"$CACHE_DIRECTORY\""; | 321 | ExecStopPost = "${pkgs.coreutils}/bin/rm -rfv \"$CACHE_DIRECTORY\""; |
321 | }; | 322 | }; |
322 | }; | 323 | }; |