1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 20:21:14 +00:00
nixpkgs/nixos/modules
Jens Nolte ad6c2dea6a nixos/nixos-container: Always apply extraVeth ip configuration
Fixes that `containers.<name>.extraVeths.<name>` configuration was not
always applied.

When configuring `containers.<name>.extraVeths.<name>` and not
configuring one of `containers.<name>.localAddress`, `.localAddress6`,
`.hostAddress`, `.hostAddress6` or `.hostBridge` the veth was created,
but otherwise no configuration (i.e. no ip) was applied.

nixos-container always configures the primary veth (when `.localAddress`
or `.hostAddress` is set) to be the containers default gateway, so
this fix is required to create a veth in containers that use a different
default gateway.

To test this patch configure the following container and check if the
addresses are applied:
```
  containers.testveth = {
    extraVeths.testveth = {
      hostAddress = "192.168.13.2";
      localAddress = "192.168.13.1";
    };
    config = {...}:{};
  };
```
2020-12-19 04:32:05 +01:00
..
config console: remove console.extraTTYs option 2020-12-17 21:29:33 +01:00
hardware nixos/acpilight: add to packages 2020-11-12 05:22:18 +03:00
i18n/input-method hime: fix enable hime, remove hime-all package 2020-10-17 10:48:31 +08:00
installer nix: 2.3.9 -> 2.3.10 2020-12-18 12:33:49 +01:00
misc Revert "Module-builtin assertions, disabling assertions and submodule assertions" 2020-12-18 16:44:37 +01:00
profiles
programs Merge pull request #103813 from symphorien/firejail 2020-12-04 09:00:15 +01:00
security Merge pull request #103866 from cole-h/doas 2020-11-30 19:02:55 +01:00
services Merge pull request #97362 from martinetd/wakeonlan 2020-12-18 08:39:02 +01:00
system Revert "Module-builtin assertions, disabling assertions and submodule assertions" 2020-12-18 16:44:37 +01:00
tasks nixos auto-upgrade: remove flag when flake 2020-11-25 08:34:04 +01:00
testing nixos/tests: only apply qemu parameters if the options are defined 2020-10-25 13:42:01 +01:00
virtualisation nixos/nixos-container: Always apply extraVeth ip configuration 2020-12-19 04:32:05 +01:00
module-list.nix Merge pull request #92582 from truh/plantuml-server-squash 2020-12-16 22:02:57 +02:00
rename.nix frab: remove package 2020-12-10 22:24:11 +01:00