From bc5366e041f693bcf47abeab123b948d620e9f0c Mon Sep 17 00:00:00 2001 From: Myned Date: Wed, 11 Dec 2024 21:25:08 -0600 Subject: [PATCH] looking-glass: add igpu option Signed-off-by: Myned --- machines/mynix/default.nix | 5 +++++ options/custom/programs/firefox.nix | 2 +- options/custom/programs/looking-glass.nix | 1 + profiles/desktop/default.nix | 1 - 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/machines/mynix/default.nix b/machines/mynix/default.nix index df66691..c0ec7eb 100644 --- a/machines/mynix/default.nix +++ b/machines/mynix/default.nix @@ -10,6 +10,11 @@ height = 1440; refresh = 100; + programs.looking-glass = { + enable = true; + igpu = true; + }; + settings = { storage.mnt = ["gayme" "myve"]; diff --git a/options/custom/programs/firefox.nix b/options/custom/programs/firefox.nix index 14b8349..7fec3bd 100644 --- a/options/custom/programs/firefox.nix +++ b/options/custom/programs/firefox.nix @@ -231,7 +231,7 @@ in { "extensions.formautofill.creditCards.enabled" = locked false; "general.autoScroll" = locked false; "general.smoothScroll" = locked true; - "gfx.webrender.software" = locked true; + "gfx.webrender.software" = locked config.custom.programs.looking-glass.igpu; # Reduce load on iGPU "layers.acceleration.force-enabled" = locked true; "layout.css.always_underline_links" = locked false; "layout.css.backdrop-filter.enabled" = locked true; diff --git a/options/custom/programs/looking-glass.nix b/options/custom/programs/looking-glass.nix index e6fa8ef..86a95e7 100644 --- a/options/custom/programs/looking-glass.nix +++ b/options/custom/programs/looking-glass.nix @@ -8,6 +8,7 @@ with lib; let in { options.custom.programs.looking-glass = { enable = mkOption {default = false;}; + igpu = mkOption {default = false;}; kvmfr = mkOption {default = true;}; }; diff --git a/profiles/desktop/default.nix b/profiles/desktop/default.nix index 6a2fe8e..5633b88 100644 --- a/profiles/desktop/default.nix +++ b/profiles/desktop/default.nix @@ -3,7 +3,6 @@ full = true; profile = "desktop"; wallpaper = true; - programs.looking-glass.enable = true; services.power-profiles-daemon.enable = true; }; }