From f66312d479710995e7c7f97fec594270a32d1b98 Mon Sep 17 00:00:00 2001 From: Frank LoTurco Date: Sun, 30 Aug 2026 12:17:11 -0400 Subject: [PATCH] nero: backport older linux-firmware to work around GCN video decode issues --- flake.lock | 17 +++++++++++++++++ flake.nix | 14 ++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/flake.lock b/flake.lock index f7e126f..ab94ce5 100644 --- a/flake.lock +++ b/flake.lock @@ -495,6 +495,22 @@ "type": "github" } }, + "nixpkgs-firmware": { + "locked": { + "lastModified": 1782201461, + "narHash": "sha256-41VI8i5RESlcU7+LdPQ9ibz+4HQWixlE6wat2IYPrE0=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "220e781eee89fa86f26d05c40a57eea1c691adec", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "220e781eee89fa86f26d05c40a57eea1c691adec", + "type": "github" + } + }, "nixpkgs-lib": { "locked": { "lastModified": 1785031560, @@ -848,6 +864,7 @@ "nix-flatpak": "nix-flatpak", "nix-gaming": "nix-gaming", "nixpkgs": "nixpkgs_10", + "nixpkgs-firmware": "nixpkgs-firmware", "nixpkgs-unstable": "nixpkgs-unstable", "nixpkgs-xr": "nixpkgs-xr", "scopebuddy": "scopebuddy" diff --git a/flake.nix b/flake.nix index 6603f15..d86cd85 100644 --- a/flake.nix +++ b/flake.nix @@ -2,6 +2,7 @@ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05"; nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; + nixpkgs-firmware.url = "github:NixOS/nixpkgs?rev=220e781eee89fa86f26d05c40a57eea1c691adec"; home-manager = { url = "github:nix-community/home-manager/release-26.05"; @@ -39,6 +40,7 @@ self, nixpkgs, nixpkgs-xr, + nixpkgs-firmware, home-manager, nix-darwin, nix-flatpak, @@ -58,6 +60,9 @@ users.frank = ./home/frank.nix; }; }; + + nixos-system = "x86_64-linux"; + nixos-pkgs = nixpkgs.legacyPackages.${nixos-system}; in { nixosConfigurations = { @@ -74,6 +79,15 @@ ./hosts/nero/hardware.nix ./hosts/nero/configuration.nix + + { + nixpkgs.overlays = [ + (final: prev: { + linux-firmware = + nixpkgs-firmware.legacyPackages.${nixos-pkgs.stdenv.hostPlatform.system}.linux-firmware; + }) + ]; + } ]; };