From 1e0ee17ea7365988b04fdc65d6f637c9a2d25b48 Mon Sep 17 00:00:00 2001 From: K900 Date: Fri, 29 Sep 2023 21:25:59 +0300 Subject: [PATCH] overlay: only apply steamdeck firmware on steamdeck --- modules/steamdeck/firmware.nix | 5 +++++ overlay.nix | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/steamdeck/firmware.nix b/modules/steamdeck/firmware.nix index 798aa1bb..ec25a5e8 100644 --- a/modules/steamdeck/firmware.nix +++ b/modules/steamdeck/firmware.nix @@ -34,6 +34,11 @@ in }; config = mkMerge [ + (mkIf (cfg.enable) { + nixpkgs.overlays = [ + (_: prev: { linux-firmware = prev.linux-firmware-jupiter; }) + ]; + }) (mkIf (cfg.autoUpdate) { systemd.packages = [pkgs.steamdeck-firmware]; diff --git a/overlay.nix b/overlay.nix index a403d9f2..dfe70857 100644 --- a/overlay.nix +++ b/overlay.nix @@ -7,7 +7,7 @@ let ; in rec { - linux-firmware = final.callPackage ./pkgs/linux-firmware { + linux-firmware-jupiter = final.callPackage ./pkgs/linux-firmware { linux-firmware = super.linux-firmware; }; linuxPackages_jovian = linuxPackagesFor final.linux_jovian;