diff options
author | Patryk Wychowaniec <pwychowaniec@pm.me> | 2022-05-03 12:24:13 +0200 |
---|---|---|
committer | Patryk Wychowaniec <pwychowaniec@pm.me> | 2022-05-03 12:24:13 +0200 |
commit | 56ab4f61bc8f9210f76412c615beef64246e50f3 (patch) | |
tree | db600d60a8389115a78b6d028ae1926c3bbf835f /nixos/tests/common | |
parent | d33eace057c830a5c1b43914d1e4287f7db605bb (diff) | |
download | nixpkgs-56ab4f61bc8f9210f76412c615beef64246e50f3.tar nixpkgs-56ab4f61bc8f9210f76412c615beef64246e50f3.tar.gz nixpkgs-56ab4f61bc8f9210f76412c615beef64246e50f3.tar.bz2 nixpkgs-56ab4f61bc8f9210f76412c615beef64246e50f3.tar.lz nixpkgs-56ab4f61bc8f9210f76412c615beef64246e50f3.tar.xz nixpkgs-56ab4f61bc8f9210f76412c615beef64246e50f3.tar.zst nixpkgs-56ab4f61bc8f9210f76412c615beef64246e50f3.zip |
nixos/lxd: improve tests
- Make tests/lxd.nix use NixOS's lxdMeta & lxdImage to avoid relying on 3rd party containers such as Alpine Linux for testing purposes. - Merge tests/lxd-image.nix into tests/lxd.nix, since now both have a similar structure. - Extract duplicated inline LXD configuration into a separate file, - Add passthru.lxd-nftables & passthru.lxd-image-server.
Diffstat (limited to 'nixos/tests/common')
-rw-r--r-- | nixos/tests/common/lxd/config.yaml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/nixos/tests/common/lxd/config.yaml b/nixos/tests/common/lxd/config.yaml new file mode 100644 index 00000000000..3bb667ed43f --- /dev/null +++ b/nixos/tests/common/lxd/config.yaml @@ -0,0 +1,24 @@ +storage_pools: + - name: default + driver: dir + config: + source: /var/lxd-pool + +networks: + - name: lxdbr0 + type: bridge + config: + ipv4.address: auto + ipv6.address: none + +profiles: + - name: default + devices: + eth0: + name: eth0 + network: lxdbr0 + type: nic + root: + path: / + pool: default + type: disk |