Commit Graph

74526 Commits

Author SHA1 Message Date
Rickard Nilsson ca0c460406 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.
2016-01-01 18:21:59 +01:00
Shea Levy 35cf6c428f Merge branch 'patch-4' of git://github.com/leenaars/nixpkgs
xf86-input-wacom: 0.31.0 -> 0.32.0
2016-01-01 09:50:05 -05:00
Tobias Geerinckx-Rice 3a250b2518 Merge pull request #12050 from nckx/fix-mturk-hash
aws-mturk-clt: update sha256 hash
2016-01-01 14:59:53 +01:00
leenaars 3bd03f3141 xf86-input-wacom: 0.31.0 -> 0.32.0 2016-01-01 14:16:32 +01:00
Michael Raskin a413b8fde1 libreoffice: 5.0.2.2 -> 5.0.4.2 2016-01-01 12:30:17 +03:00
Michael Raskin ff853a98fb libreoffice: readd and fix the script to generate fetch list for LibreOffice. Migrating all of these to system packages would not work without patching the build system, I am afraid… 2016-01-01 12:30:17 +03:00
Michael Raskin 8efa3745c7 libmwaw: 0.3.5 -> 0.3.7 2016-01-01 12:30:17 +03:00
Michael Raskin 3279ab1de4 libodfgen: 0.1.4 -> 0.1.6 2016-01-01 12:30:17 +03:00
Michael Raskin b02d4c5d27 librem: 0.4.6 -> 0.4.7 2016-01-01 12:30:17 +03:00
Michael Raskin 1a085b0c54 libre: 0.4.13 -> 0.4.14 2016-01-01 12:30:17 +03:00
Michael Raskin e00cdaa6a2 librevenge: 0.0.2 -> 0.0.3 2016-01-01 12:30:17 +03:00
Michael Raskin c8b9753882 eigen: 3.2.5 -> 3.3-alpha1 2016-01-01 12:30:17 +03:00
Michael Raskin b2ac241e95 iptables: 1.4.21 -> 1.6.0 2016-01-01 12:30:17 +03:00
Michael Raskin 8d81c0ada2 cdk: a new release… 2016-01-01 12:30:17 +03:00
Michael Raskin 1dba4b4e6a scons: 2.3.6 -> 2.4.1 2016-01-01 12:30:17 +03:00
Michael Raskin 81aa158838 botanUnstable: 1.11.19 -> 1.11.25 2016-01-01 12:30:17 +03:00
Michael Raskin 1406e8e693 angelscript: 2.30.1 -> 2.30.2 2016-01-01 12:30:17 +03:00
Michael Raskin 4251a1aacb asdf: 3.1.5 -> 3.1.6 2016-01-01 12:30:17 +03:00
Michael Raskin 9449464024 libgphoto2: 2.5.8 -> 2.5.9 2016-01-01 12:30:17 +03:00
Michael Raskin 761340140c luarocks: 2.2.2 -> 2.3.0 2016-01-01 12:30:17 +03:00
Michael Raskin 8431b84d9a tcpflow: 1.4.4 -> 1.4.5 2016-01-01 12:30:17 +03:00
Michael Raskin f638adb107 apache-jena: 3.0.0 -> 3.0.1 2016-01-01 12:30:17 +03:00
Michael Raskin 5446554002 lazarus: 1.2.6 -> 1.4.4 2016-01-01 12:30:17 +03:00
Michael Raskin 9201598227 compiz: 0.9.12.1 -> 0.9.12.2 2016-01-01 12:30:17 +03:00
Michael Raskin 0f9a361064 firejail: 0.9.26 -> 0.9.36 2016-01-01 12:30:17 +03:00
Michael Raskin 5db11e97e7 conspy: 1.10 -> 1.13 2016-01-01 12:30:17 +03:00
Michael Raskin f1eeed7a29 ised: 2.6.0 -> 2.7.0 2016-01-01 12:30:17 +03:00
Michael Raskin df9efd4f1b sysdig: 0.5.1 -> 0.6.0 2016-01-01 12:30:17 +03:00
Michael Raskin a2f76a89bb gajim: 0.16.4 -> 0.16.5 2016-01-01 12:30:17 +03:00
Michael Raskin a102de361b fpc: 2.6.4 -> 3.0.0 2016-01-01 12:30:17 +03:00
Michael Raskin a2ddd89932 baresip: 0.4.15 -> 0.4.16 2016-01-01 12:30:17 +03:00
Michael Raskin 51f8932c8e pari (PARI/GP): 2.7.4 -> 2.7.5 2016-01-01 12:30:17 +03:00
Michael Raskin 247c419427 ipmiutil: 2.9.6 -> 2.9.8 2016-01-01 12:30:17 +03:00
Michael Raskin 119de110a3 glusterfs: 3.7.3 -> 3.7.6 2016-01-01 12:30:17 +03:00
Michael Raskin ab3277e68a nginxUnstable: 1.9.7 -> 1.9.9 2016-01-01 12:30:17 +03:00
Mateusz Kowalczyk 581e9f0b32 tibia: 10.81 -> 10.90 2016-01-01 03:57:55 +00:00
Peter Simons 365ed9e37f haskell-binary: prefer version 0.7.x over 0.8.x for GHC 7.0.x 2015-12-31 23:43:10 +01:00
Michael Alan Dorman 09956eab48 pointfree: now builds with haskell-src-exts-1.17. 2015-12-31 23:43:10 +01:00
Peter Simons d464c85fdf haskell-modules: remove obsolete re-build triggers 2015-12-31 23:43:09 +01:00
Peter Simons 5f47b751b3 haskell-semigroups: fix build with GHC 7.8.x and 7.6.x 2015-12-31 23:43:09 +01:00
Peter Simons 9955602aa0 configuration-hackage2nix.yaml: update list of broken packages 2015-12-31 23:43:09 +01:00
Peter Simons 63c8129bc6 hackage-packages.nix: update Haskell package set
This update was generated by hackage2nix v20151217-3-gd4ae18a using the following inputs:

  - Nixpkgs: 579e6bb797
  - Hackage: e1530f9f9a
  - LTS Haskell: d3e5ae70f9
  - Stackage Nightly: db90cf927d
2015-12-31 23:43:04 +01:00
Aristid Breitkreuz 0c7db6c696 jpegoptim: init at 1.4.3 2015-12-31 16:55:50 +01:00
Michael Raskin f50aca5157 cl-launch: 4.1.4 -> 4.1.4.1 2015-12-31 16:52:05 +01:00
Michael Raskin 7dc2f1632c qpdfview: 0.4.15 -> 0.4.16 2015-12-31 16:51:13 +01:00
Peter Simons a174c20de8 Merge pull request #12048 from exi/fix-wireshark-qt
wireshark-qt: make wireshark-qt build and run again
2015-12-31 15:07:21 +01:00
Reno Reckling 28fd7afd02 wireshark-qt: make wireshark-qt build and run again 2015-12-31 13:56:50 +01:00
Tobias Geerinckx-Rice 6a903c1f87 aws-mturk-clt: update sha256 hash
Stable tarballs are so 2015.
2015-12-31 13:48:07 +01:00
Domen Kožar 2be814f21e Merge pull request #11985 from mayflower/update-thinkfan
thinkfan: 0.8.1 -> 0.9.2
2015-12-31 13:41:30 +01:00
Domen Kožar 680659023c Merge pull request #12034 from bjornfor/add-meta-platforms-to-xorg
xorg: add meta.platforms
2015-12-31 13:41:13 +01:00