Misterio77 / nix-config

Personal nixos and home-manager configurations.
https://m7.rs/git/nix-config/
MIT License
712 stars 42 forks source link

QUESTION: impermanence and standalone home-manager #36

Open aShabat opened 3 months ago

aShabat commented 3 months ago

Hello, in nix-starter-config you say that to use impermanence with home-manager we have to use home-manager as a module. But it seems that you use it standalone. What is your solution? Thanks for all the great stuff

nakoo commented 4 weeks ago

The trick is importing home.nix from hosts setup. home-manager.users.user = import ./home.nix

If you're doing this, you would find that home-manager command is not available. so he added pkgs.home-manager for this purpose.

In my case, I added alias nix run .#homeConfigurations."user@host".activationPackage