ryantm / home-manager-template

A quick-start template for using home-manager in a more reproducible way.

Home Page:https://github.com/ryantm/home-manager-template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

do not use/update this - it's not working / tested

InLaw opened this issue · comments

commented
    "home-manager": {
        "branch": "master",
        "description": "Manage a user environment using Nix",
        "homepage": "https://rycee.gitlab.io/home-manager/",
        "owner": "rycee",
        "repo": "home-manager",
        "rev": "8537920706fafab12a2c2a138dfb6f5c35a6b240",
        "sha256": "1rkwiyag1i0r7ms6y6fl7m610z4rlbwmvja617bi710hybhsx8y9",
        "type": "tarball",
        "url": "https://github.com/rycee/home-manager/archive/8537920706fafab12a2c2a138dfb6f5c35a6b240.tar.gz",
        "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
    },
warning: unknown setting 'experimental-features'
warning: unknown setting 'experimental-features'
error: executing 'git': No such file or directory
error: executing 'git': No such file or directory
error: while evaluating the attribute 'buildCommand' of the derivation 'home-manager-generation' at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/pkgs/build-support/trivial-builders.nix:7:7:
while evaluating the attribute 'text' of the derivation 'activation-script' at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/pkgs/build-support/trivial-builders.nix:7:7:
while evaluating 'mkCmd' at /nix/store/m8i7r0j9ib3jph8azpcqpa3dlmicbzkv-source/modules/home-environment.nix:502:17, called from undefined position:
while evaluating the attribute 'data' at /nix/store/m8i7r0j9ib3jph8azpcqpa3dlmicbzkv-source/modules/lib/dag.nix:91:37:
while evaluating the attribute 'data' at /nix/store/m8i7r0j9ib3jph8azpcqpa3dlmicbzkv-source/modules/lib/dag.nix:85:9:
while evaluating the attribute 'data' at undefined position:
while evaluating 'g' at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/attrsets.nix:276:19, called from undefined position:
while evaluating anonymous function at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/modules.nix:98:72, called from /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/attrsets.nix:279:20:
while evaluating the attribute 'value' at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/modules.nix:471:9:
while evaluating the option `home.activation.installPackages.data':
while evaluating the attribute 'mergedValue' at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/modules.nix:503:5:
while evaluating the attribute 'values' at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/modules.nix:497:9:
while evaluating the attribute 'values' at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/modules.nix:596:7:
while evaluating anonymous function at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/modules.nix:483:28, called from /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/modules.nix:483:17:
while evaluating definitions from `/nix/store/m8i7r0j9ib3jph8azpcqpa3dlmicbzkv-source/modules/home-environment.nix':
while evaluating 'dischargeProperties' at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/modules.nix:555:25, called from /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/modules.nix:484:137:
while evaluating the attribute 'value' at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/modules.nix:338:44:
while evaluating the attribute 'passAsFile' of the derivation 'home-manager-path' at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/pkgs/build-support/trivial-builders.nix:7:7:
while evaluating the attribute 'packages' at undefined position:
while evaluating 'g' at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/attrsets.nix:276:19, called from undefined position:
while evaluating anonymous function at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/modules.nix:98:72, called from /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/attrsets.nix:279:20:
while evaluating the attribute 'value' at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/modules.nix:471:9:
while evaluating the option `home.packages':
while evaluating the attribute 'mergedValue' at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/modules.nix:503:5:
while evaluating 'merge' at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/types.nix:300:20, called from /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/modules.nix:505:59:
while evaluating anonymous function at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/types.nix:301:35, called from undefined position:
while evaluating anonymous function at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/lists.nix:116:29, called from undefined position:
while evaluating anonymous function at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/types.nix:302:21, called from /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/lists.nix:116:32:
while evaluating the attribute 'optionalValue' at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/modules.nix:515:5:
while evaluating the attribute 'values' at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/modules.nix:497:9:
while evaluating the attribute 'values' at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/modules.nix:596:7:
while evaluating anonymous function at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/modules.nix:483:28, called from /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/modules.nix:483:17:
while evaluating definitions from `/nix/store/m8i7r0j9ib3jph8azpcqpa3dlmicbzkv-source/modules/programs/firefox.nix':
while evaluating 'dischargeProperties' at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/modules.nix:555:25, called from /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/modules.nix:484:137:
while evaluating the attribute 'value' at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/types.nix:306:38:
while evaluating the attribute 'package.override' at undefined position:
while evaluating 'g' at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/attrsets.nix:276:19, called from undefined position:
while evaluating anonymous function at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/modules.nix:98:72, called from /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/attrsets.nix:279:20:
while evaluating the attribute 'value' at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/modules.nix:471:9:
while evaluating the option `programs.firefox.package':
while evaluating the attribute 'mergedValue' at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/modules.nix:503:5:
while evaluating the attribute 'values' at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/modules.nix:497:9:
while evaluating the attribute 'values' at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/modules.nix:596:7:
while evaluating anonymous function at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/modules.nix:483:28, called from /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/modules.nix:483:17:
while evaluating definitions from `/home/ae/ae_share_VM/z_DS_setup/home-manager/home.nix':
while evaluating 'dischargeProperties' at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/modules.nix:555:25, called from /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/modules.nix:484:137:
while evaluating the attribute 'value' at /nix/store/ia8qfk4dyv21j956ccmaf6gy9zq7x650-source/lib/modules.nix:338:44:
program 'git' failed with exit code 1

There are 137 unread and relevant news items.
Read them by running the command 'home-manager news'.

This is an error you got when you tried to use the template? Is your version of the repo public somewhere?

commented

sure, git is installed via hm -> so its is missung

commented

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.

commented

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

commented

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.

in pure
then there is nix-build missing

Try

nix-shell --pure -p nix --run "home-manager switch"
commented
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.

commented

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.

commented

add git to buildInputs

Yeah, until home-manager is fixed, we could add git and nix to the template shell.nix.

commented

thanks
but that was less funny!

commented

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.