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;
                };
          })

        ];
        }
      ];
    };
  };
}
      • ProfessorHoover@infosec.pubOP
        link
        fedilink
        English
        arrow-up
        1
        ·
        15 days ago

        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
          link
          fedilink
          English
          arrow-up
          1
          ·
          15 days ago

          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.pubOP
            link
            fedilink
            English
            arrow-up
            2
            ·
            15 days ago

            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.