From 9d8aa9c3c6f3d7ad29342fc4e8e64c66de6ede74 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Mon, 27 Jun 2022 16:42:46 +0200 Subject: Enable hardware acceleration in selected hosts (phobos, luna) --- hosts/luna/home.nix | 2 -- hosts/phobos/home.nix | 8 ++++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/hosts/luna/home.nix b/hosts/luna/home.nix index 6fd435e..87a5f0c 100644 --- a/hosts/luna/home.nix +++ b/hosts/luna/home.nix @@ -15,9 +15,7 @@ in kcc ]; - #TODO: Can we just not update prev set? programs.firefox.profiles.default.settings = { - "general.autoScroll" = true; #TODO: This is aready set in parent home "media.ffmpeg.vaapi.enabled" = true; #Hardware acceleration }; diff --git a/hosts/phobos/home.nix b/hosts/phobos/home.nix index 3238db6..8708ead 100644 --- a/hosts/phobos/home.nix +++ b/hosts/phobos/home.nix @@ -15,6 +15,10 @@ in kcc ]; + programs.firefox.profiles.default.settings = { + "media.ffmpeg.vaapi.enabled" = true; #Hardware acceleration + }; + xdg.configFile = { "dwmbar/config".text = '' #!/bin/sh @@ -111,6 +115,10 @@ in XF86TouchpadToggle exec ~/.config/i3/scripts/toggletouchpad.sh ''; + + "mpv/mpv.conf".text = '' + hwdec + ''; }; home.file.".cache/nix-index/files".source = inputs.nix-index.legacyPackages.x86_64-linux.database; -- cgit 1.4.1