Move xrizer overlay into a separate file
This commit is contained in:
29
flake.nix
29
flake.nix
@ -39,33 +39,6 @@
|
|||||||
nixosConfigurations.pewter =
|
nixosConfigurations.pewter =
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
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 {
|
pkgs = import nixpkgs {
|
||||||
system = system;
|
system = system;
|
||||||
@ -76,8 +49,8 @@
|
|||||||
specialArgs = inputs;
|
specialArgs = inputs;
|
||||||
modules = [
|
modules = [
|
||||||
lix-module.nixosModules.default
|
lix-module.nixosModules.default
|
||||||
|
./vr-overlay.nix
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
xrizer
|
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
|
|||||||
21
vr-overlay.nix
Normal file
21
vr-overlay.nix
Normal 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 = [];
|
||||||
|
});
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user