Home-manager remote deployment

nixos-rebuild with options such as --target-host etc. allows remote deployment of NixOS configurations. Alternatively there are tools such as morph or colmena for doing similar things.

Is it possible to deploy home-manager configurations remotely?

(I’d prefer a flake-based solution, if possible.)

2 Likes

There is nothing like that OOTB.

But you can script something using nix copy --to and ssh.

deploy-rs can push a profile, this may be working?

Cachix Deploy supports home manager and has an example flake: Deploying to agents — documentation

1 Like

Is this supposed to work if home-manager is used as a module?
I’m just trying to figure out why no home-manager config is applied to the remote host (using --target-host)