Unverified Commit 0eb887ff authored by Adam C. Stephens's avatar Adam C. Stephens Committed by GitHub
Browse files

nixos/incus: gate bucket support since it requires insecure minio (#514811)

parents 6cd38164 44265515
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -54,8 +54,6 @@ let
      lvm2
      lz4
      lxcfs
      minio
      minio-client
      nftables
      qemu-utils
      qemu_kvm
@@ -99,6 +97,10 @@ let
    ]
    ++ lib.optionals nvidiaEnabled [
      libnvidia-container
    ]
    ++ lib.optionals cfg.bucketSupport [
      minio
      minio-client
    ];

  # https://github.com/lxc/incus/blob/cff35a29ee3d7a2af1f937cbb6cf23776941854b/internal/server/instance/drivers/driver_qemu.go#L123
@@ -211,6 +213,13 @@ in
        description = "The incus client package to use. This package is added to PATH.";
      };

      bucketSupport = lib.mkOption {
        type = lib.types.bool;
        description = "Enable bucket support using minio, which is an insecure and unmaintained S3 provider.";
        default = if lib.versionAtLeast config.system.stateVersion "26.11" then false else null;
        defaultText = lib.literalExpression ''if lib.versionAtLeast config.system.stateVersion "26.11" then false else null;'';
      };

      softDaemonRestart = lib.mkOption {
        type = lib.types.bool;
        default = true;
+1 −0
Original line number Diff line number Diff line
@@ -51,6 +51,7 @@ in
      incus = {
        enable = true;
        package = cfg.package;
        bucketSupport = false;

        preseed = {
          networks = [