this post was submitted on 30 May 2026
4 points (100.0% liked)

Nix / NixOS

2752 readers
12 users here now

Main links

Videos

founded 3 years ago
MODERATORS
 

I've been having trouble rebuilding my system for a few days now. The issue seems to be that a commit to nixpkgs-xr/xrizer added an aarch64 patch. There's been a commit that removes this patch but I can't seem to pull it with nix flake update which makes me think my flake might never have been working properly (although I'm getting the home-manager, stylix and unstable packages I've selected). Could someone please review my flake.nix and tell me if I'm doing something wrong?

{
  description = "Core Flake";

  inputs = {
    # Official NixOS Packages v25.11
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
    home-manager = {
      url = "github:nix-community/home-manager/release-25.11";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    nixpkgs-xr.url = "github:nix-community/nixpkgs-xr";

    unstable = {
      url = "github:NixOS/nixpkgs/nixos-unstable";
    };

    stylix = {
        url =  "github:nix-community/stylix/release-25.11";
        inputs.nixpkgs.follows = "nixpkgs";
        };
  };

  outputs = inputs@ { nixpkgs, nixpkgs-xr, unstable, home-manager, stylix, ... }: {
    nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
      modules = [
        # Import my existing configuration.nix
        ./configuration.nix

        nixpkgs-xr.nixosModules.nixpkgs-xr

        home-manager.nixosModules.home-manager
        {
          home-manager.useGlobalPkgs = true;
          home-manager.useUserPackages = true;
          home-manager.users.professor = import ./home.nix;
        }

        stylix.nixosModules.stylix

        {
        nixpkgs.overlays = [
          (final: prev: {
            unstable = import unstable {
                inherit (final) config;
                inherit (final.stdenv.hostPlatform) system;
                };
          })

        ];
        }
      ];
    };
  };
}
you are viewing a single comment's thread
view the rest of the comments
[–] ProfessorHoover@infosec.pub 1 points 3 days ago (1 children)

Ok, that seems odd to me. The error I get is:

       > Running phase: unpackPhase
       > unpacking source archive /nix/store/6a9kaz88xzhw8gd5v3wf3ifzd8ncxgr9-source
       > source root is source
       > Executing cargoSetupPostUnpackHook
       > Finished cargoSetupPostUnpackHook
       > Running phase: patchPhase
       > applying patch /nix/store/lnx0x0q7xl832j6p2klirgnkjqwfzi51-xrizer-fix-aarch64.patch
       > patching file fakexr/src/monado_xdev.rs
       > Hunk #1 FAILED at 3.
       > Hunk #2 FAILED at 111.
       > 2 out of 2 hunks FAILED -- saving rejects to file fakexr/src/monado_xdev.rs.rej

The commit that removes this patch and I believe would fix my issue is 696b10c. Shouldn't commit 353988 include commit 696b10c?

[–] hallettj@leminal.space 2 points 3 days ago (1 children)

It looks to me like 696b10c removes the filter that previously skipped the xrizer-fix-aarch64 patch. So I would expect that patch to be applied in the latest nixpkgs-xr

[–] ProfessorHoover@infosec.pub 2 points 3 days ago (1 children)

Yeah, you're right. I completely misread that and I've been barking up the wrong tree. I guess that makes this a nixpkgs-xr conversation rather than a flakes one. Thanks for pointing that out.

[–] hallettj@leminal.space 1 points 2 days ago

No problem! We've all been there!