fix servernet

This commit is contained in:
2023-12-01 11:39:21 +01:00
parent b4ebe4d3f8
commit 140b1d793a

View File

@@ -1,4 +1,7 @@
{ pkgs, ... }: { { pkgs, ... }:
let
json = pkgs.formats.json { };
in {
virtualisation = { virtualisation = {
podman = { podman = {
enable = true; enable = true;
@@ -7,8 +10,8 @@
}; };
}; };
environment.etc."containers/networks/podman.json" = { environment.etc."cni/net.d/servernet.conflist" = {
source = pkgs.formats.json.generate "podman.json" ({ source = json.generate "servernet.conflist" ({
cniVersion = "0.4.0"; cniVersion = "0.4.0";
name = "servernet"; name = "servernet";
plugins = [ plugins = [