Commit ae579d7c645e

Vincent Demeester <vincent@sbr.pm>
2022-02-17 15:23:22
systems/modules: re-enable buildkitd
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 9760cc9
Changed files (2)
systems
modules
profiles
virtualisation
systems/modules/profiles/docker.nix
@@ -26,11 +26,11 @@ in
         enable = true;
         # autostart = false;
       };
-      # buildkitd = {
-      #   enable = true;
-      #   autostart = false;
-      #   extraOptions = "--oci-worker=false --containerd-worker=true";
-      # };
+      buildkitd = {
+        enable = true;
+        extraOptions = "--oci-worker=false --containerd-worker=true";
+        # autostart = false;
+      };
       docker = {
         enable = true;
         package = cfg.package;
systems/modules/virtualisation/buildkit.nix
@@ -14,14 +14,6 @@ in
         '';
     };
 
-    autostart = mkOption {
-      type = types.bool;
-      default = true;
-      description = ''
-        Start buildkitd automatically.
-      '';
-    };
-
     package = mkOption {
       default = pkgs.buildkit;
       type = types.package;
@@ -54,9 +46,8 @@ in
     systemd.packages = [ cfg.package ];
 
     systemd.services.buildkitd = {
-      wants = [ "containerd.service" ];
-      after = [ "containerd.service" ];
-      wantedBy = lib.optional cfg.autostart [ "multi-user.target" ];
+      after = [ "network.target" "containerd.service" ];
+      wantedBy = [ "multi-user.target" ];
       serviceConfig = {
         ExecStart = [
           ""