-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On unstable channel, home manager can't be built anymore because of manual combined #1479
Comments
If you're using home-manager from master, you probably need to update your home-manager channel. The commit I made actually fixed this issue. |
I also tried to update the channel, but cannot have this solved. |
I guess it's a matter of updating the version on nixpkg right? |
@real34 Depends. If your home-manager channel is on your user, then @happysalada If you're running nixos-unstable, I would recommend using home-manager's master branch as a channel (or through some other method). As you can see by the version ( |
@cole-h Thanks for the confirmation! |
@real34 Assuming your dotfiles haven't changed much, I think the problem lies here: https://github.com/real34/dotfiles/blob/23885123e0699d9b13f4771c2b55d777df899e44/home.nix#L136-L139. You're using home-manager from 19.09, which still has Feel free to correct me if it's changed and you just haven't pushed anything, but that's what would make the most sense to me. |
Sorry for the noob question here. To install nur, I have had to do something like that
Perhaps it's something similar? |
When will you add a |
I've been hitting something similar (?) as well in the past couple of days:
|
@davidak Considering the 20.09 beta hasn't officially begun yet, I feel like creating that branch would be slightly premature. However, consider opening another issue asking this same question (just so we don't derail this one)? @happysalada Unfortunately, I'm totally unfamiliar with the darwin story for h-m and nixpkgs... @jpotier Yep, that's the issue that was fixed (or should have been; you guys are making me doubt myself now...) by #1473. Could anybody still having problems after updating their home-manager channel try one of the following things:
and report back with what did or didn't work? |
using the nix-shell command you suggested, everything worked fine. I'm going to research on nix darwin and report if I find a solution. |
It looks like a PR has already been merged on nixpkgs It's a matter of a couple of days before, nixpkgs unstable gets updated I think. |
I run home-manager as part of my system configuration, ie:
I'm currently at commit 249650a of home-manager (https://github.com/nix-community/home-manager) from master branch. Running install… Well, broke my user environment (because I don't have a home.nix in a well known place, maybe?) I had to restart my home-manager-jpotier.service to get my user environment back. Full system I don't have the change that @happysalada mentionned in my local nixpkgs, so let's see in a few days if that fixes anything. |
For those that still have issues, please run $ nix run nixpkgs.nix-info --command nix-info ; nix eval '(<home-manager>)' hopefully you'll find an old Home Manager package there. |
digging a little further, it looks like one of the checks on the nixpkgs PR hasn't completed, the ofBorg one. |
@rycee Here the output I get running your command
I've tried adding --experimental-features nix-command at the end, but then I still get the first error and then I get this one
|
The first command should be |
Thanks for taking the time to help! running the first command I get
trying to fix it with
I get then
I can't fix this one despite adding the experimental-features flag. |
Let's try without requiring
(Note: I made a typo in my above message -- should have been |
Thanks for the help. Both command work. This is the output I get
and
|
@happysalada And does $ grep -R loaOf /Users/raphael/.nix-defexpr/channels/home-manager/ print anything? Also $ grep 'for path' $(which home-manager) |
my home-manager is coming from nix-darwin. so that is the path that I get when I run indeed running your second grep gives me I definitely thing that the home manager version is old, since nix-darwin is set to use the nixpkgs-unstable channel, no doubt about that. I'll try again in a few days when the channel has been updated Thanks again for all the help! |
I'll close this meanwhile. |
I'm having trouble getting this to work on the bqv-flakes branch. I've tried updating the nixpkgs input and rebasing on master to incorporate the latest changes, but still the same error. |
Just FYI, flakes are now on master. |
For me, running |
@austinbutler can you check that you have the unstable channel in your packages? I can confirm that on sunday updating the channel and with the unstable version of nixpkgs it all works. |
@happysalada sorry if I was not clear, |
Problem solved, after I forcefully flushed my outdated /var/src/home-manager clone. For some reason, it didn't update properly, but that's on me :) |
@rycee Guess the error I got is similar to the op's and I worked around it setting
I used Info:
error: file 'home-manager' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:2 |
This is how I install home-manager: https://github.com/sgraf812/.nixpkgs/blob/92003c2ae396ae6d67c9a360e9fcd7980a715670/home/user-common.nix#L125 I was hoping that I could just bump the version in my The solution to the bootstrapping problem in my case was to follow #1479 (comment) and install the newest version of
This will create the new generation with an updated |
Today I installed a new system and I am facing this very specific issue. I have the following channels enabled, for the system:
Then I have added it to
There is something wrong. I tried the suggestions from previous comments but it did not help. Any idea how to find out the culprit? |
Until recently, the |
This continues to be an issue for me. Like otavio, I've tried a bunch of different fixes listed in here, and nothing's working; even after re-adding a new nix-channel, updating that, and reinstalling home-manager, I can't update. Has anybody considered checking manual-combined.xml for typos? |
Seriously, where is this manual-combined.xml file? Because looking closer at the line here: |
It's not a typo. That was the docbook representation of |
I may be still having this issue. This is my configuration files for nix and I got an error when executing
The error I got when executing home-manager switch
|
@diohabara That error seems unrelated to this issue. Probably some change in Nixpkgs that causes the compiler-rt build to fail. Edit: I'll lock this issue to avoid it being resurrected again. Please open a new issue instead. |
Issue description
Updating the latest unstable channel, home manager doesn't build anymore. Here are the logs
trace:
types.loaOf
has been removed and mixing lists with attribute valuesis no longer possible; please use
types.attrsOf
instead.See NixOS/nixpkgs#1800 for the motivation.
these derivations will be built:
/nix/store/0v2pwmpjm3rfdn1imzffp6c30dx4hfvm-manual-combined.drv
/nix/store/0xkiy24j3xc5xvzshg57g6fmjhvp7sxf-manual-olinkdb.drv
/nix/store/hzxx7qscdim6w2jc7zlids0ld6jdj2d4-man-pages.drv
/nix/store/45p3nxvj23xwngdf9frdlh1mf78xvyky-man-pages-fish-completions.drv
/nix/store/wb5xpsliz02ibmvhjwym5m0xb4cn0gvw-neovim-0.4.4.drv
/nix/store/dzfzms49h83dvxb3vqgjdvsji4r7j49d-neovim-0.4.4-fish-completions.drv
/nix/store/4w950gn1myfj8rgibm7xgiaqwxggfjf2-raphael-fish-completions.drv
/nix/store/rhv7yvk8ffsdq4pxp7yvfj21asa5i229-home-manager-path.drv
/nix/store/vdd7pp9vjnh10bz5immhayivf4pkcj0d-activation-script.drv
/nix/store/y631s1jz0z1f52y3hypqpcw3w7gsmsy5-home-manager-files.drv
/nix/store/xbahw25n43gy42w0qm9agc8v2f81m66d-home-manager-generation.drv
building '/nix/store/wb5xpsliz02ibmvhjwym5m0xb4cn0gvw-neovim-0.4.4.drv'...
building '/nix/store/0v2pwmpjm3rfdn1imzffp6c30dx4hfvm-manual-combined.drv'...
Generating remote plugin manifest
/nix/store/d4gdyn7qk2v83l17ay7qnarbrydf6q8g-manual-combined/manual-combined.xml:9206: element xref: validity error : IDREF attribute linkend references an unknown ID "opt-home.file.name_.source"
9202 This release has the following notable changes:
9203
9204
9205
9206 The option now allows source files to be
9207 hidden, that is, having a name starting with the . character. It
9208 also allows the source file name to contain characters not typically
/nix/store/d4gdyn7qk2v83l17ay7qnarbrydf6q8g-manual-combined/manual-combined.xml fails to validate
builder for '/nix/store/0v2pwmpjm3rfdn1imzffp6c30dx4hfvm-manual-combined.drv' failed with exit code 3
cannot build derivation '/nix/store/hzxx7qscdim6w2jc7zlids0ld6jdj2d4-man-pages.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/rhv7yvk8ffsdq4pxp7yvfj21asa5i229-home-manager-path.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/45p3nxvj23xwngdf9frdlh1mf78xvyky-man-pages-fish-completions.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/xbahw25n43gy42w0qm9agc8v2f81m66d-home-manager-generation.drv': 1 dependencies couldn't be built
error: build of '/nix/store/xbahw25n43gy42w0qm9agc8v2f81m66d-home-manager-generation.drv' failed
Meta
Maintainer CC
@cole-h the warning I get, seems to be related to a commit you made. It looks like you fixed what the message complains about. Perhaps the latest channel hasn't caught up with master?
Technical details
"x86_64-darwin"
Darwin 19.6.0, macOS 10.15.6
no
no
nix-env (Nix) 2.3.7
"darwin, home-manager, nixpkgs-20.09pre242495.3c0e3697520, nixpkgs-unstable-20.09pre242495.3c0e3697520"
/Users/raphael/.nix-defexpr/channels/nixpkgs
The text was updated successfully, but these errors were encountered: