Hi Rickard,

> I have started to look into Charon for deploying a set of NixOS machines
> with inter-dependencies.
>
> Is there a simple way to let different servers in the network use
> different versions of the nixos and nixpkgs repositories? I'm specifically
> looking at keeping some machines more stable, with a (somehow) tested
> version of nixpkgs, while letting other machines using try out bleeding
> edge stuff.

You can run 'charon create -I
nixos=<location-of-machine-specific-nixos> -I
nixpkgs=<location-of-machine-specific-nixpkgs> network.nix' . It will
make nix evaluation use the specified nix-path entries.

>From the man page:

   Options
       -I path
           Add path to the Nix expression search path for all future
evaluations of the deployment specification. Charon stores
           path in the state file. This option may be given multiple
times. See the description of the -I option in nix-
           instantiate(1) for details.

Hope that helps,
Cheers,
Rob

-- 
Rob Vermaas

[email] [email protected]
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to