Commit dabb7ad1a911

Vincent Demeester <vincent@sbr.pm>
2022-02-24 15:47:50
systems/naruhodo: enable buildkit
also fixed a flag in docker profile settings. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent f8963b3
Changed files (2)
systems
hosts
modules
profiles
systems/hosts/naruhodo.nix
@@ -140,19 +140,38 @@ in
     syncthing.guiAddress = "${metadata.hosts.naruhodo.wireguard.addrs.v4}:8384";
   };
 
-  virtualisation.podman.enable = true;
-  virtualisation.containers = {
-    enable = true;
-    registries = {
-      search = [ "registry.fedoraproject.org" "registry.access.redhat.com" "registry.centos.org" "docker.io" "quay.io" ];
+  virtualisation = {
+    buildkitd = {
+      enable = true;
+      settings = {
+        worker.oci.enabled = true;
+        registry = {
+          "r.svc.home:5000" = {
+            http = true;
+            insecure = true;
+          };
+          "r.svc.home" = {
+            http = true;
+            insecure = true;
+          };
+        };
+      };
     };
-    policy = {
-      default = [{ type = "insecureAcceptAnything"; }];
-      transports = {
-        docker-daemon = {
-          "" = [{ type = "insecureAcceptAnything"; }];
+    podman.enable = true;
+    containers = {
+      enable = true;
+      registries = {
+        search = [ "registry.fedoraproject.org" "registry.access.redhat.com" "registry.centos.org" "docker.io" "quay.io" ];
+      };
+      policy = {
+        default = [{ type = "insecureAcceptAnything"; }];
+        transports = {
+          docker-daemon = {
+            "" = [{ type = "insecureAcceptAnything"; }];
+          };
         };
       };
     };
   };
+
 }
systems/modules/profiles/docker.nix
@@ -32,7 +32,7 @@ in
             enabled = false;
           };
           worker.containerd = {
-            enable = true;
+            enabled = true;
             platforms = [ "linux/amd64" "linux/arm64" ];
             namespace = "buildkit";
           };