nixpkgs/pkgs
Maximilian Bosch c957341ef5
nixos-container: allow setting custom local and host address
I have a nixops network where I deploy containers using the `container`
backend which uses `nixos-container` intenrally to deploy several
containers to a certain host.

During that time I removed and added new containers and while trying to
deploy those to a different host I realized that it isn't guaranteed
that each container gets the same IP address which is a problem as some
parts of the deployment need to know which container is using which IP
(i.e. to configure port forwarding on the host).

With this change you can specify the container's IP like this (and don't
have to use the arbitrarily used 10.233.0.0/16 subnet):

```
$ nixos-container create test --config-file test-container.nix \
    --local-address 10.235.1.2 --host-address 10.235.1.1
```
2019-04-22 18:13:45 +02:00
..
applications Merge pull request #59889 from sondr3/sondr3/git-ignore-1.0.0 2019-04-20 13:12:30 +02:00
build-support trivial-builders: Fix runCommand examples 2019-04-19 06:29:42 +02:00
common-updater update-source-version: Fixes, add --ignore-same-hash 2019-04-06 19:47:08 -04:00
data fix evaluation with config.allowAliases = false 2019-04-19 10:16:44 +00:00
desktops fix evaluation with config.allowAliases = false 2019-04-19 10:16:44 +00:00
development Merge pull request #59917 from xrelkd/update/cargo-expand 2019-04-20 12:57:56 +03:00
games Merge pull request #59902 from bjpbakker/update-factorio 2019-04-20 08:27:31 +00:00
misc fix evaluation with config.allowAliases = false (#59879) 2019-04-19 15:14:03 +02:00
os-specific Merge pull request #59747 from dtzWill/fix/pam-1.3.1-musl 2019-04-18 11:43:32 -05:00
servers Merge pull request #59852 from Izorkin/memcached 2019-04-19 17:41:40 +02:00
shells oh-my-zsh: 2019-04-04 -> 2019-04-18 2019-04-19 08:11:49 -04:00
stdenv Merge pull request #59338 from matthewbauer/llvm-libc++ 2019-04-12 14:09:00 -04:00
test
tools nixos-container: allow setting custom local and host address 2019-04-22 18:13:45 +02:00
top-level Merge pull request #59862 from JohnAZoidberg/moviepy-1.0.0-deps 2019-04-20 10:57:09 +02:00