Is it possible to remotely deploy home-manager to a fresh ubuntu install without internet

I have ssh access to a fresh (shared) ubuntu box that doesn’t have internet access. I would like to push a custom home-manager setup to my user account there. I’ve searched for remote deployment options but the only options i’ve found require nix to already be present on the target (like deploy-rs). Is there anything like “nixos-anywhere”, but for home-manager?

If not, is it possible to bootstrap the target to have a local (non-root, i don’t want to change anything outside the home directory), offline nix install that can receive from deploy-rs? The wiki talks about nix-user-chroot for a non-root install, but my searching for an offline install hasn’t found much.

1 Like