Rebuild is failing

I’ve been having a bit of trouble switching over. When I try to rebuild using the auxolotl repo, I get this error:

building the system configuration...
error: output '/nix/store/mk27j9i8md7cps2yg9l41g5jnfg3i3zy-nixos-configuration-reference-manpage' is not allowed to refer to the following paths:
         /nix/store/i83sm9a66g3z6hb5l214xbp8nhb6xk1i-nixos
error: 1 dependencies of derivation '/nix/store/mlzljzl0wycnyix3ahgyv3pp3m68rpv0-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/mrpfi5f7f14ma9ih9jrah6i4n7smpiav-nixos-system-xerxes-24.05.20240505.39c77ff.drv' failed to build

Is anyone else having this issue? Am I missing something blindingly obvious?

2 Likes

I’m experiencing the same issue.

error: output '/nix/store/mk27j9i8md7cps2yg9l41g5jnfg3i3zy-nixos-configuration-reference-manpage' is not allowed to refer to the following paths:
         /nix/store/i83sm9a66g3z6hb5l214xbp8nhb6xk1i-nixos
error: 1 dependencies of derivation '/nix/store/0ysh6c1610qwypbsf9k0zhwwbw63r608-man-paths.drv' failed to build
error: 1 dependencies of derivation '/nix/store/00a9mjmmhk11ah5b33rbkjxlvqvnsqyx-nixos-configuration-reference-manpage_fish-completions.drv' failed to build
error: 1 dependencies of derivation '/nix/store/4qvhjylv7m03han230py4mljaay414c3-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/krgbah1hi5ga7784xil01ykyjnxz37j1-nixos-system-davids-laptop-24.05.20240505.39c77ff.drv' failed to build

hey guys just trying to reproduce this myself.

Would you like any extra info?

1 Like

Every little bit helps.

It happened on a fresh install of NixOS with GNOME for me. I’m using a laptop, Intel 10th gen processor (though I can’t imagine that has much to do with it?). I’ll update this post if I think of anything else that may be of use.

1 Like

Weird, I cannot reproduce this issue. I managed a clean rebuild. Are you guys using flakes? And also which branch?

I’m using flakes. My install is from a few weeks ago. Trying to switch from NixOS unstable to axolotl unstable.

1 Like

At first I used the NixOS template in the repo and then I used an old (known working) Nix flake config and simply changed the nixpkgs url. Both presented the exact same error. Using unstable.

1 Like

Would sharing flake inputs help?
My flake inputs:

inputs = {
    nixpkgs.url = "github:auxolotl/nixpkgs/nixos-unstable";

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

    nixos-cosmic = {
      url = "github:lilyinstarlight/nixos-cosmic";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    
    home-manager = {
      url = "github:nix-community/home-manager";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    
    rust-overlay = {
      url = "github:oxalica/rust-overlay";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

I don’t think so… Maybe using the follows syntax might. But I can’t really debug this since i don’t have anyway to reproduce this.

1 Like

Probably want a lockfile as well.

2 Likes

Lock file:

{
  "nodes": {
    "disko": {
      "inputs": {
        "nixpkgs": [
          "nixpkgs"
        ]
      },
      "locked": {
        "lastModified": 1714959124,
        "narHash": "sha256-oYmauPDpSgWjY9hvzwd815igGfP8Ds5Bk6bTo5JrBRk=",
        "owner": "nix-community",
        "repo": "disko",
        "rev": "e1b3ae2b4ebc3c7b83154b9361e3d154e64e362d",
        "type": "github"
      },
      "original": {
        "owner": "nix-community",
        "repo": "disko",
        "type": "github"
      }
    },
    "flake-compat": {
      "flake": false,
      "locked": {
        "lastModified": 1688025799,
        "narHash": "sha256-ktpB4dRtnksm9F5WawoIkEneh1nrEvuxb5lJFt1iOyw=",
        "owner": "nix-community",
        "repo": "flake-compat",
        "rev": "8bf105319d44f6b9f0d764efa4fdef9f1cc9ba1c",
        "type": "github"
      },
      "original": {
        "owner": "nix-community",
        "repo": "flake-compat",
        "type": "github"
      }
    },
    "flake-utils": {
      "inputs": {
        "systems": "systems"
      },
      "locked": {
        "lastModified": 1705309234,
        "narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=",
        "owner": "numtide",
        "repo": "flake-utils",
        "rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26",
        "type": "github"
      },
      "original": {
        "owner": "numtide",
        "repo": "flake-utils",
        "type": "github"
      }
    },
    "home-manager": {
      "inputs": {
        "nixpkgs": [
          "nixpkgs"
        ]
      },
      "locked": {
        "lastModified": 1714981474,
        "narHash": "sha256-b3/U21CJjCjJKmA9WqUbZGZgCvospO3ArOUTgJugkOY=",
        "owner": "nix-community",
        "repo": "home-manager",
        "rev": "6ebe7be2e67be7b9b54d61ce5704f6fb466c536f",
        "type": "github"
      },
      "original": {
        "owner": "nix-community",
        "repo": "home-manager",
        "type": "github"
      }
    },
    "nixos-cosmic": {
      "inputs": {
        "flake-compat": "flake-compat",
        "nixpkgs": [
          "nixpkgs"
        ]
      },
      "locked": {
        "lastModified": 1714980446,
        "narHash": "sha256-SZLOdVXaCIxbtS8fwuKG2tbczQ5ta4UpjfL/64FSLAk=",
        "owner": "lilyinstarlight",
        "repo": "nixos-cosmic",
        "rev": "b24b3344f0eab00503da8c99ad546539699bbdd5",
        "type": "github"
      },
      "original": {
        "owner": "lilyinstarlight",
        "repo": "nixos-cosmic",
        "type": "github"
      }
    },
    "nixpkgs": {
      "locked": {
        "lastModified": 1714930819,
        "narHash": "sha256-A+XeHE/YbsDV5fEROEiQDLCnHojdSwkvK1iv6vdy1o8=",
        "owner": "auxolotl",
        "repo": "nixpkgs",
        "rev": "39c77ffe3193820e988d9551e390295d181a09c1",
        "type": "github"
      },
      "original": {
        "owner": "auxolotl",
        "ref": "nixos-unstable",
        "repo": "nixpkgs",
        "type": "github"
      }
    },
    "root": {
      "inputs": {
        "disko": "disko",
        "home-manager": "home-manager",
        "nixos-cosmic": "nixos-cosmic",
        "nixpkgs": "nixpkgs",
        "rust-overlay": "rust-overlay"
      }
    },
    "rust-overlay": {
      "inputs": {
        "flake-utils": "flake-utils",
        "nixpkgs": [
          "nixpkgs"
        ]
      },
      "locked": {
        "lastModified": 1714961776,
        "narHash": "sha256-LiIxWRKbm1DZ+7l1a6FMmIO8leQx5yrRLIApCMai1DY=",
        "owner": "oxalica",
        "repo": "rust-overlay",
        "rev": "f3b20ea4131408ea585bddb1f41f91c4de9499cf",
        "type": "github"
      },
      "original": {
        "owner": "oxalica",
        "repo": "rust-overlay",
        "type": "github"
      }
    },
    "systems": {
      "locked": {
        "lastModified": 1681028828,
        "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
        "owner": "nix-systems",
        "repo": "default",
        "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
        "type": "github"
      },
      "original": {
        "owner": "nix-systems",
        "repo": "default",
        "type": "github"
      }
    }
  },
  "root": "root",
  "version": 7
}

Rightttt, our reflog is a bit messy again. fun.

@srxl I’m thinking we discard commits nixos-unstable and rebuild it off a locked commit from nixpkgs master. Just need to find a good commit.

Our current process for maintaining the Nixpkgs fork isn’t looking very maintainable. I wonder if we should just track nixos-unstable and forget about everything else for now. Would at least solve the whole mess we have going on with cutting a release ourselves.

Question does then become “how do we start doing that without throwing out the extra commits we already have”, though. I guess we can cherry-pick, assuming we can find hashes for all of them.

3 Likes

Yeahhhh, honestly just worth waiting for that thing i mentioned earlier on matrix. Might be wroth just pulling all their changes or something.

1 Like

im still :eyes: on that

(this was in Lix’s Matrix rooms, for outside observers - we don’t have our own rooms yet, unfortunately)

2 Likes

doing my best not to leak something…

5 Likes