Open pdg137 opened 4 months ago
Here is my workaround for this strange issue:
https://github.com/pdg137/config/commit/8c3de2f5d475760e7dd224365feb5f59ae765cb4
This allows me to build a home-manager switch
script that runs fine after a garbage collection and that I can copy to another machine with nix-copy-closure
.
I noticed something weird about the way this installs home-manager. Starting with a fresh checkout of the repo:
Let's look at what nix thinks the dependencies of home-manager are:
But look, there's a store path in there that was not picked up:
I can reproduce this basic thing just by running
nix-build https://github.com/nix-community/home-manager/archive/refs/heads/master.zip -A home-manager
so it's not necessarily a problem with this repository. And it probably won't cause a problem with the way this repository is structured. But it means that if you set up a gcroot for home-manager and collect garbage, you'll be left with a broken home-manager. Or if you try to use nix-copy-closure to copy home-manager somewhere, it will fail to copy the "home-manager-src" path.What's going on?