A while ago someone suggested (on this very mailing list I believe) using `environment.etc.<name>.source = <path>;` to cover that very flaw (on a local context, without NixOps). You could possibly use it to copy your system configuration to the remote /etc/nixos.
On 28/04/18 07:37, André Bubel wrote:
Hi,
I want to keep my server up to date automatically, likely with the system.autoUpgrade mechanism. For that the system configuration needs to be available on the server. How can I achieve this for a NixOps deployment, i.e. how do I best "copy" the NixOps config over to the client machines automatically?
My first idea for using system.copySystemConfiguration didn't work out, as it only supports a single configuration file.
I could rsync the config after each deployment, but I think it'd be more ideometic if this is also handled by NixOps itself.
Best,
Andre Bubel
--
You received this message because you are subscribed to the Google Groups "nix-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nix-devel+unsubscribe@googlegroups.com <mailto:nix-devel+unsubscribe@googlegroups.com>.
To post to this group, send email to nix-...@googlegroups.com <mailto:nix-devel@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/nix-devel/db4cf107-46bc-4d2c-b6ca-4c1ea3f1510b%40googlegroups.com <https://groups.google.com/d/msgid/nix-devel/db4cf107-46bc-4d2c-b6ca-4c1ea3f1510b%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "nix-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nix-devel+unsubscribe@googlegroups.com.
To post to this group, send email to nix-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nix-devel/93d3078c-b065-84a9-170b-b210ac3cd34c%40gmail.com.