Branch: refs/heads/master
Home: https://github.com/NixOS/nixpkgs
Commit: ca0c46040649ab4a6d5d7bc838b393fdcbcae10c
https://github.com/NixOS/nixpkgs/commit/ca0c46040649ab4a6d5d7bc838b393fdcbcae10c
Author: Rickard Nilsson <[email protected]>
Date: 2016-01-01 (Fri, 01 Jan 2016)
Changed paths:
M nixos/modules/installer/tools/nixos-rebuild.sh
Log Message:
-----------
nixos-rebuild: Add option for building and/or deploying on a remote host
This commit adds the options --build-host and --target-host to nixos-rebuild.
--build-host instructs nixos-rebuild to perform all nix builds on the
specified host (via ssh). Build results are then copied back to the
local machine and used when activating the system.
--build-target instructs nixos-rebuild to activate the configuration
not on the local machine but on the specified remote host. Build
results are copied to the target machine and then activated there (via ssh).
It is possible to combine the usage of --build-host and --target-host,
in which case you can perform the build on one remote machine and deploy
the configuration to another remote machine. The only requirement is that
the build host has a working ssh connection to the target host (if the
target is not local), and that the local machine can connect to both
the target and the build host. Also, your user must be allowed to copy
nix closures between the local machine and the target and host machines.
At no point in time are the configuration sources (the nix files) copied
anywhere. Instead, nix evaluation always happens locally
(with nix-instantiate). The drv-file is then copied and realised remotely
(with nix-store).
As a convenience, if only --target-host is specified, --build-host is
implicitly set to that host too. So if you want to build locally and deploy
remotely you have to explicitly set "--build-host localhost".
To activate (test, boot or switch) you need to have root access to the
target host. You can specify this by "--target-host root@myhost".
I have tested the obvious scenarios and they are working. Some of the
combinations of --build-host and --target-host and the various actions might
not make much sense, and should maybe be forbidden (like setting a remote
target host when building a VM), and some combinations might not work at all.
Commit: 448a2af041e940642d70271c17175edf6aea69a0
https://github.com/NixOS/nixpkgs/commit/448a2af041e940642d70271c17175edf6aea69a0
Author: Rickard Nilsson <[email protected]>
Date: 2016-01-01 (Fri, 01 Jan 2016)
Changed paths:
M nixos/doc/manual/man-nixos-rebuild.xml
Log Message:
-----------
nixos-rebuild: Document --build-host and --target-host options
Commit: 104c252b6132aef91c9c18853ece9ad541c5315f
https://github.com/NixOS/nixpkgs/commit/104c252b6132aef91c9c18853ece9ad541c5315f
Author: Eelco Dolstra <[email protected]>
Date: 2016-01-04 (Mon, 04 Jan 2016)
Changed paths:
M nixos/doc/manual/man-nixos-rebuild.xml
M nixos/modules/installer/tools/nixos-rebuild.sh
Log Message:
-----------
Merge pull request #11279 from rickynils/nixos-rebuild-remote
nixos-rebuild: Add option for building and/or deploying on a remote host
Compare: https://github.com/NixOS/nixpkgs/compare/c59277605b4c...104c252b6132_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits