Move xrizer overlay into a separate file

This commit is contained in:
2025-11-03 21:57:13 -05:00
parent c3fe86d6b4
commit cc28fe9df6
2 changed files with 22 additions and 28 deletions

View File

@ -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;

21
vr-overlay.nix Normal file
View File

@ -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 = [];
});
})
];
}