From 36c16a56c366d78e5a11b06b4e4019b361f2e817 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 2 Sep 2024 11:25:23 +0200 Subject: ... --- accounts/gkleen@sif/hyprland.nix | 4 ++++ accounts/gkleen@sif/systemd.nix | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'accounts/gkleen@sif') 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 { "QT_AUTO_SCREEN_SCALE_FACTOR,1" "SDL_VIDEODRIVER,wayland" # "AQ_DRM_DEVICES,/dev/dri/by-path/pci-0000:01:00.0-card" + "__NV_PRIME_RENDER_OFFLOAD,1" + "__NV_PRIME_RENDER_OFFLOAD_PROVIDER,NVIDIA-G0" + "__GLX_VENDOR_LIBRARY_NAME,nvidia" + "__VK_LAYER_NV_optimus,NVIDIA_only" ]; 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 { WatchdogSec = "30min"; Environment = [ "PATH=${lib.makeBinPath (with pkgs; [atomicparsley ffmpeg-headless rtmpdump])}" + "DSCP=8" ]; - ExecStart = pkgs.writers.writePython3 "yt-dlp" { + ExecStart = ''${lib.getExe pkgs.dscp} ${pkgs.writers.writePython3 "yt-dlp" { libraries = with pkgs.python3Packages; [ yt-dlp sdnotify ]; } '' import json @@ -316,7 +317,7 @@ in { with YoutubeDL(ydl_opts) as ytdl: n.notify('READY=1') ytdl.download(args['urls']) - ''; + ''}''; ExecStopPost = "${pkgs.coreutils}/bin/rm -rfv \"$CACHE_DIRECTORY\""; }; }; -- cgit v1.2.3