From cc28fe9df6bbe1bf31d9e7ac032e45b582ac70ce Mon Sep 17 00:00:00 2001 From: pager Date: Mon, 3 Nov 2025 21:57:13 -0500 Subject: [PATCH] Move xrizer overlay into a separate file --- flake.nix | 29 +---------------------------- vr-overlay.nix | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 28 deletions(-) create mode 100644 vr-overlay.nix diff --git a/flake.nix b/flake.nix index d58d5fd..fd48174 100644 --- a/flake.nix +++ b/flake.nix @@ -39,33 +39,6 @@ nixosConfigurations.pewter = let system = "x86_64-linux"; - xrizer = ({config, pkgs, lib, ... }: - { - nixpkgs.overlays = [ - (final: prev: { - xrizer = - let - src = final.fetchFromGitHub { - owner = "Mr-Zero88"; - repo = "xrizer"; - # IMPORTANT: Fill the below field with the latest commit hash from https://github.com/Mr-Zero88-FBT/xrizer/commits/experimental2 (click the Copy full SHA button on the right side) - rev = "63f6c00"; - # IMPORTANT: Replace the below field with the correct hash, the error when building with this empty will give you the expected hash. - hash = "sha256-ilPNar7sfdQ5aSeypy5BStEGeVAoXtHw/iWLhqKEsPQ="; - }; - in - prev.xrizer.overrideAttrs (drv: { - cargoDeps = drv.cargoDeps.overrideAttrs { - src = src; - outputHashMode = "recursive"; - outputHash = "sha256-Z6zTjiuY4avAH/Bh9kofk+nbmHSSvCXaSCQp++w3cOE="; - }; - patches = []; - # cargoSha256 = ""; - }); - }) - ]; - }); pkgs = import nixpkgs { system = system; @@ -76,8 +49,8 @@ specialArgs = inputs; modules = [ lix-module.nixosModules.default + ./vr-overlay.nix ./configuration.nix - xrizer home-manager.nixosModules.home-manager { home-manager.useGlobalPkgs = true; diff --git a/vr-overlay.nix b/vr-overlay.nix new file mode 100644 index 0000000..0cc38f6 --- /dev/null +++ b/vr-overlay.nix @@ -0,0 +1,21 @@ +# Overlay to get vr working on my bsb2 +{config, pkgs, lib, ... }: +{ + nixpkgs.overlays = [ + (final: prev: { + xrizer = prev.xrizer.overrideAttrs (oldAttrs: rec { + src = final.fetchFromGitHub { + owner = "Mr-Zero88"; + repo = "xrizer"; + rev = "63f6c00"; + hash = "sha256-ilPNar7sfdQ5aSeypy5BStEGeVAoXtHw/iWLhqKEsPQ="; + }; + cargoDeps = prev.rustPackages.rustPlatform.fetchCargoVendor { + inherit src; + hash = "sha256-Ra0Mxx02E8GIkLLGfnMVQdDAxhdwjmhK3T7XrFpBDus="; + }; + patches = []; + }); + }) + ]; +}