How to copy home config to restricted environment?
So, I have home-manager flake config on my personal NixOs machine. And I have no-internet rootless-user develop server at work. The only way to interact with it is ssh. How to copy home-manager environment to that server in a cleanest way?
Ideally I want to run home-manager switch --flake . on that server to "install" all the things so I still able to manage generations.
What I've already done is nix pm installed and running through proot. What I've tried is nix-store --export on home-manager and its activation package and nix-store --import on restricted machine. But this way I can only run /nix/store/...-home-manager-generation/activate and it's bad because it doesn't handle generations, hard to update and too much to be done manually. And for whatever reason home-manager switch still tries to download things on github though I've imported everything it needs to the store.
Is there some way to JUST copy home manager and all my programs so I can manage it like I do on my machine?