[Nix-dev] NixOps - How is the configuration applied when using targetEnv none?
zimbatm
zimbatm at zimbatm.com
Mon Sep 19 14:50:10 CEST 2016
The whole system is a derivation itself, a bit like a buildEnv that
aggregates all the installed packages and srfvixes, and has an activation
script. So this gets built locally, shipped over to the target with scp,
the system symlink is replaced and finally the activation script is run.
The activation script deals with shutting and starting service and various
other impurities.
On Fri, 16 Sep 2016, 21:46 Kevin Cox, <kevincox at kevincox.ca> wrote:
>
>
> On Sep 16, 2016 19:50, "Wilhelm Schuster" <ws at wilhelm.re> wrote:
>
> Hi,
>
> I’m trying to use NixOps to deploy onto an existing NixOs instance
> (physical server; targetEnv = “none") and was wondering how the system
> configuration is applied. Specifically, does my NixOps description of the
> server get merged with the local configuration (meaning the one on the
> server itself in /etc/nixos/configuration.nix), or does it completely
> replace it?
>
>
> It completely replaces it. In general nixops doesn't read anything from
> the target server. Everything is built first, then pushed to the target.
> The only reason that the state of the target will have any effect is if you
> have a runtime program that reads an explicit path.
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160919/1ec5a5f7/attachment.html>
More information about the nix-dev
mailing list