Hello! I’m getting the following output for sudo systemctl status home-manager.service:
× home-manager-tornax.service - Home Manager environment for tornax
Loaded: loaded (/etc/systemd/system/home-manager-tornax.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Tue 2023-06-13 01:41:16 CEST; 3min 42s ago
Process: 3093 ExecStart=/nix/store/0yiywc863z3ipsmm3aj3k9y2k8cf6s7i-hm-setup-env /nix/store/fnx8g82cg35g3iv69ckl25svq3is8p7p-home-manager-generation (code=exited, status=1/FAILURE)
Main PID: 3093 (code=exited, status=1/FAILURE)
IP: 0B in, 0B out
CPU: 137ms
Jun 13 01:41:16 pc hm-activate-tornax[3093]: Activating writeBoundary
Jun 13 01:41:16 pc hm-activate-tornax[3093]: Activating installPackages
Jun 13 01:41:16 pc hm-activate-tornax[3093]: Activating linkGeneration
Jun 13 01:41:16 pc hm-activate-tornax[3093]: Creating profile generation 1
Jun 13 01:41:16 pc hm-activate-tornax[3121]: don't know how to build these paths:
Jun 13 01:41:16 pc hm-activate-tornax[3121]: /nix/store/fnx8g82cg35g3iv69ckl25svq3is8p7p-home-manager-generation
Jun 13 01:41:16 pc hm-activate-tornax[3121]: error: build of '/nix/store/fnx8g82cg35g3iv69ckl25svq3is8p7p-home-manager-generation' failed
Jun 13 01:41:16 pc systemd[1]: home-manager-tornax.service: Main process exited, code=exited, status=1/FAILURE
Jun 13 01:41:16 pc systemd[1]: home-manager-tornax.service: Failed with result 'exit-code'.
Jun 13 01:41:16 pc systemd[1]: Failed to start Home Manager environment for tornax.
I think the important lines are:
Jun 13 01:41:16 pc hm-activate-tornax[3121]: don't know how to build these paths:
Jun 13 01:41:16 pc hm-activate-tornax[3121]: /nix/store/fnx8g82cg35g3iv69ckl25svq3is8p7p-home-manager-generation
Jun 13 01:41:16 pc hm-activate-tornax[3121]: error: build of '/nix/store/fnx8g82cg35g3iv69ckl25svq3is8p7p-home-manager-generation' failed
I would expect that path being built already when you build your system. Maybe you missed something when setting HM up. Can you please share your configuration?
After having built your configuration, I can’t find a reference to that string in it.
All I can find is the user activation service refering to /nix/store/dinnl5sa8bml8vb6hzzhbvjn838kvrf3-home-manager-generation, if searching for the name rather than the hash.
That path does exist after the build of the system generation for me.
Can you still reproduce the problem with the repository and does the error messages path mentioned change?
I just cloned my repository again and executed sudo nixos-rebuild switch --flake .#pc but with a different hash(?) now (like yours):
Jun 13 09:49:07 pc hm-activate-tornax[15400]: don't know how to build these paths:
Jun 13 09:49:07 pc hm-activate-tornax[15400]: /nix/store/dinnl5sa8bml8vb6hzzhbvjn838kvrf3-home-manager-generation
Jun 13 09:49:07 pc hm-activate-tornax[15400]: error: build of '/nix/store/dinnl5sa8bml8vb6hzzhbvjn838kvrf3-home-manager-generation' failed
The path /nix/store/dinnl5sa8bml8vb6hzzhbvjn838kvrf3-home-manager-generation also exists on my machine. At least I can cd into it.
That’s the whole output with home-manager.nixosModules.home-manager.home-manager.verbose = true and sudo nixos-rebuild switch --flake .#pc:
warning: Git tree '/home/tornax/Programming/projects/dotfiles' is dirty
building the system configuration...
warning: Git tree '/home/tornax/Programming/projects/dotfiles' is dirty
activating the configuration...
setting up /etc...
reloading user units for tornax...
setting up tmpfiles
warning: the following units failed: home-manager-tornax.service
× home-manager-tornax.service - Home Manager environment for tornax
Loaded: loaded (/etc/systemd/system/home-manager-tornax.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Tue 2023-06-13 10:05:09 CEST; 59ms ago
Process: 21093 ExecStart=/nix/store/0yiywc863z3ipsmm3aj3k9y2k8cf6s7i-hm-setup-env /nix/store/dinnl5sa8bml8vb6hzzhbvjn838kvrf3-home-manager-generation (code=exited, status=1/FAILURE)
Main PID: 21093 (code=exited, status=1/FAILURE)
IP: 0B in, 0B out
CPU: 132ms
Jun 13 10:05:09 pc hm-activate-tornax[21093]: Activating writeBoundary
Jun 13 10:05:09 pc hm-activate-tornax[21093]: Activating installPackages
Jun 13 10:05:09 pc hm-activate-tornax[21093]: Activating linkGeneration
Jun 13 10:05:09 pc hm-activate-tornax[21093]: Creating profile generation 1
Jun 13 10:05:09 pc hm-activate-tornax[21130]: don't know how to build these paths:
Jun 13 10:05:09 pc hm-activate-tornax[21130]: /nix/store/dinnl5sa8bml8vb6hzzhbvjn838kvrf3-home-manager-generation
Jun 13 10:05:09 pc hm-activate-tornax[21130]: error: build of '/nix/store/dinnl5sa8bml8vb6hzzhbvjn838kvrf3-home-manager-generation' failed
Jun 13 10:05:09 pc systemd[1]: home-manager-tornax.service: Main process exited, code=exited, status=1/FAILURE
Jun 13 10:05:09 pc systemd[1]: home-manager-tornax.service: Failed with result 'exit-code'.
Jun 13 10:05:09 pc systemd[1]: Failed to start Home Manager environment for tornax.
warning: error(s) occurred while switching to the new configuration
I don’t know if that helps, but as you can see from my hardware-configuration.nix, I have an extra home partition for my /home/tornax. I was using Arch before I tried out NixOS and I had nix on my arch system installed (and also used it a bit). So maybe there are some directories in my home-directory which were set up by nix from my arch-system which are maybe causing this issue?
ok, I think that I’ll try to reinstall everything. Like with a fresh home directory as well. If it still doesn’t work, then I’ll have to drop nixos then I think…
however, I’m really appreciating for your time and help! Thank you! c(^-^)c