nixos-flake icon indicating copy to clipboard operation
nixos-flake copied to clipboard

Remote deployment: allow local builds

Open srid opened this issue 1 year ago • 1 comments

When using small VPS, it doesn't make sense to build everything remotely. For this, provide an option to so we can build everything locally and nix copy it before doing remote deployment.

For now, we must do this manually, e.g.:

nix copy $(nix build .\#nixosConfigurations.naivete-me.config.system.build.toplevel --no-link --print-out-paths)  --to ssh-ng://root@<ip>q

srid avatar Oct 27 '24 22:10 srid

Workaround in the meanwhile:

image

https://github.com/srid/naivete-me/blob/2f5321e6bd30afd1d9e0f2e5a1bd7c486d358a83/justfile#L23-L29

srid avatar Oct 27 '24 22:10 srid