Closed ghost closed 2 years ago
In order for the home-manager module to work properly, you need to use the home-manager NixOS module (see the Important note part of the home-manager section of the readme). You could also opt to use the users.*
option of the NixOS module to handle user files without relying on home-manager.
I setuped the my home persistence with
environment.persistence.{state}
, then I use home-manager to configuring my home environment withhome.persistence.{home state}
, after home config switched and reboot, my home config disappearhosts/local/default.nix:
user/c4droid/default.nix:
After switching, the directroy contain:
After rebooting, the directory contain:
I tried use
environment.persistence.{state directory}.users.{username}
which home-manager, after I switch new system and home config and reboot, my home directory.nix-profile
and.nix-defexpr
disappear