I am trying to set up a ~/nix directory linked to this github repo: GitHub - mars-monkey/nix. However, when I run home-manager switch --flake ~/nix/home#"mars-monkey"
, it gives the following error:
error: getting status of '/nix/store/9spbll1al33y6a46s7fssgrv97a6dvis-source/home': No such file or directory
If it makes any difference, I am running a standalone installation of Home Manager but I have installed the home-manager
package in my main configuration.nix
file, rather than in my profile.
I also tried using home-manager init
with the new directory, but it still didn’t work.
For reference, when I run home-manager switch --flake ~/.config/home-manager#"mars-monkey"
, it works fine.