home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

commit efcb6a7b42082242bc78fd207fd921f054d589c4
parent 811664d952dbf10430e8af333d182dabcfd86f1c
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Tue,  6 Sep 2022 21:17:52 +0200

systems/modules: add grpc address for buildkit

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Msystems/hosts/aomi.nix | 9+++++++++
Msystems/modules/dev/containers.nix | 14++++++++++++++
2 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/systems/hosts/aomi.nix b/systems/hosts/aomi.nix @@ -88,6 +88,15 @@ in enable = true; docker.enable = true; podman.enable = true; + buildkit = { + enable = true; + grpcAddress = [ + "unix:///run/buildkit/buildkitd.sock" + "tcp://aomi.home:1234" + "tcp://${metadata.hosts.aomi.addrs.v4}:1234" + "tcp://${metadata.hosts.aomi.wireguard.addrs.v4}:1234" + ]; + }; image-mirroring = { enable = true; targets = [ "quay.io/vdemeest" "ghcr.io/vdemeester" ]; diff --git a/systems/modules/dev/containers.nix b/systems/modules/dev/containers.nix @@ -24,6 +24,17 @@ in podman = { enable = mkEnableOption "Enable podman containers"; }; + buildkit = { + enable = mkEnableOption "Enable podman containers"; + grpcAddress = mkOption { + type = types.listOf types.str; + default = [ "unix:///run/buildkit/buildkitd.sock" ]; + example = [ "unix:///run/buildkit/buildkitd.sock" "tcp://0.0.0.0:1234" ]; + description = lib.mdDoc '' + A list of address to listen to for the grpc service. + ''; + }; + }; }; }; config = mkIf cfg.enable (mkMerge [ @@ -38,6 +49,9 @@ in buildkitd = { enable = true; settings = { + grpc = { + address = cfg.buildkit.grpcAddress; + }; worker.oci = { enabled = false; };