Closed InLaw closed 3 years ago
This is an error you got when you tried to use the template? Is your version of the repo public somewhere?
sure, git is installed via hm -> so its is missung
with git installed
building '/nix/store/yf2qfwwh45i5i9ngz062bcy21rq7mgrq-nmd-documents.drv'...
created 25 symlinks in user environment
building '/nix/store/41d9n70dvjv35x19kgyy3gmg1iyrsh7w-manual-combined.drv'...
/nix/store/fpwfqskm40lk8zy7cbpsqira2h67fpz7-manual-combined/manual-combined.xml:13138: element xref: validity error : IDREF attribute linkend references an unknown ID "opt-home.file._name__.source"
13134 <simpara>This release has the following notable changes:</simpara>
13135 <itemizedlist>
13136 <listitem>
13137 <simpara>
13138 The <xref linkend="opt-home.file._name__.source"/> option now allows source files to be
13139 hidden, that is, having a name starting with the <literal>.</literal> character. It
13140 also allows the source file name to contain characters not typically
/nix/store/fpwfqskm40lk8zy7cbpsqira2h67fpz7-manual-combined/manual-combined.xml fails to validate
builder for '/nix/store/41d9n70dvjv35x19kgyy3gmg1iyrsh7w-manual-combined.drv' failed with exit code 3
cannot build derivation '/nix/store/k7fhrqjl33jb0m0m1p5gmk0wc8hd0awh-man-pages.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/v87vhjip7f7h29vsmyzs97rni76j4659-home-manager-path.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/6m4dw0varz4a2mqmbjaxk35p89vqn91i-home-manager-generation.drv': 1 dependencies couldn't be built
error: build of '/nix/store/6m4dw0varz4a2mqmbjaxk35p89vqn91i-home-manager-generation.drv' failed
There are 127 unread and relevant news items.
Read them by running the command 'home-manager news'.
There is a lot going on in your repo, so I'd like to try to get a more minimal example of the issue. We can check if git is an undeclared runtime dependency of home-manager by adding --pure
to switch.sh
.
most is not used at all / only for testing
with git it is building and switching
but nothing is changed in path
warning: unknown setting 'experimental-features'
warning: unknown setting 'experimental-features'
/nix/store/711r18fp0hrlsrccgsbc5aim3j49f3vw-home-manager-generation
There are 137 unread and relevant news items.
Read them by running the command 'home-manager news'.
nix-env -q
warning: unknown setting 'experimental-features'
freeoffice-2018.978
git-2.28.0
texlive-combined-full-2019
There is a lot going on in your repo, so I'd like to try to get a more minimal example of the issue. We can check if git is an undeclared runtime dependency of home-manager by adding
--pure
toswitch.sh
.
in pure then there is nix-build missing
Try
nix-shell --pure -p nix --run "home-manager switch"
nix-shell --pure -p nix --run "home-manager switch"
warning: unknown setting 'experimental-features'
these paths will be fetched (0.10 MiB download, 0.46 MiB unpacked):
/nix/store/2hccgxb5wvldgc9frv2c26x3ll392c4v-nix-2.3.7-dev
/nix/store/3wxqx4nx9nk6xqadnmvdwdh7fxzrr018-boehm-gc-8.0.4-dev
copying path '/nix/store/3wxqx4nx9nk6xqadnmvdwdh7fxzrr018-boehm-gc-8.0.4-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/2hccgxb5wvldgc9frv2c26x3ll392c4v-nix-2.3.7-dev' from 'https://cache.nixos.org'...
/tmp/nix-shell-4575-0/rc: line 1: home-manager: command not found
Oh, sorry, when you use -p it doesn't use the shell.nix file!
https://github.com/nix-community/home-manager/blob/master/home-manager/home-manager#L4 is probably the part that needs to get fixed to include nix and git.
there is something "funny"
sometimes random it builds
warning: unknown setting 'experimental-features'
warning: unknown setting 'experimental-features'
/nix/store/711r18fp0hrlsrccgsbc5aim3j49f3vw-home-manager-generation
Starting home manager activation
warning: unknown setting 'experimental-features'
warning: unknown setting 'experimental-features'
Activating checkFilesChanged
Activating checkLinkTargets
Activating writeBoundary
Activating installPackages
warning: unknown setting 'experimental-features'
installing 'home-manager-path'
building '/nix/store/nghmi0vzcbha18jjq1ird7h30mh8k5fz-user-environment.drv'...
error: packages '/nix/store/nx7fy1aggn09yphdhwlliahnd825xvps-git-2.28.0/bin/git-credential-netrc' and '/nix/store/1jybaamrwc6c0f7dynidbc3a55cbrb85-home-manager-path/bin/git-credential-netrc' have the same priority 5; use 'nix-env --set-flag priority NUMBER INSTALLED_PKGNAME' to change the priority of one of the conflicting packages (0 being the highest priority)
builder for '/nix/store/nghmi0vzcbha18jjq1ird7h30mh8k5fz-user-environment.drv' failed with exit code 1
error: build of '/nix/store/nghmi0vzcbha18jjq1ird7h30mh8k5fz-user-environment.drv' failed
There are 137 unread and relevant news items.
Read them by running the command 'home-manager news'.
You could add nix to the buildInputs in the shell.nix file.
add git to buildInputs
Yeah, until home-manager is fixed, we could add git and nix to the template shell.nix.
thanks but that was less funny!
even I uninstalled home-manager
still python is at 2.7, should be at 3.7. or 3.8, right?
why?
I added nix and git to the template's shell.nix.
This template doesn't do anything with python, so maybe your question is better directed to home-manager.