# minio

## Options

### services.minio.enable

Whether to enable MinIO Object Storage.

*Type:* boolean

*Default:*

```nix
false
```

*Example:*

```nix
true
```

*Declared by:*

* <https://github.com/cachix/devenv/blob/main/src/modules/services/minio.nix>

### services.minio.package

MinIO package to use.

*Type:* package

*Default:*

```nix
pkgs.minio
```

*Declared by:*

* <https://github.com/cachix/devenv/blob/main/src/modules/services/minio.nix>

### services.minio.accessKey

Access key of 5 to 20 characters in length that clients use to access the server.

*Type:* string

*Default:*

```nix
"minioadmin"
```

*Declared by:*

* <https://github.com/cachix/devenv/blob/main/src/modules/services/minio.nix>

### services.minio.afterStart

Bash code to execute after minio is running.

*Type:* strings concatenated with “\n”

*Default:*

```nix
""
```

*Example:*

```nix
''
  mc anonymous set download local/mybucket
''
```

*Declared by:*

* <https://github.com/cachix/devenv/blob/main/src/modules/services/minio.nix>

### services.minio.browser

Enable or disable access to web UI.

*Type:* boolean

*Default:*

```nix
true
```

*Declared by:*

* <https://github.com/cachix/devenv/blob/main/src/modules/services/minio.nix>

### services.minio.buckets

List of buckets to ensure exist on startup.

*Type:* list of string

*Default:*

```nix
[ ]
```

*Declared by:*

* <https://github.com/cachix/devenv/blob/main/src/modules/services/minio.nix>

### services.minio.clientConfig

Contents of the mc `config.json`, as a nix attribute set.

By default, `local` is configured to connect to the devenv minio service. Use `lib.mkForce null` to use your regular mc configuration from `$HOME/.mc` instead.

*Type:* null or JSON value

*Declared by:*

* <https://github.com/cachix/devenv/blob/main/src/modules/services/minio.nix>

### services.minio.clientPackage

MinIO client package to use.

*Type:* package

*Default:*

```nix
pkgs.minio-client
```

*Declared by:*

* <https://github.com/cachix/devenv/blob/main/src/modules/services/minio.nix>

### services.minio.consoleAddress

IP address and port of the web UI (console).

*Type:* string

*Default:*

```nix
"127.0.0.1:9001"
```

*Declared by:*

* <https://github.com/cachix/devenv/blob/main/src/modules/services/minio.nix>

### services.minio.listenAddress

IP address and port of the server.

*Type:* string

*Default:*

```nix
"127.0.0.1:9000"
```

*Declared by:*

* <https://github.com/cachix/devenv/blob/main/src/modules/services/minio.nix>

### services.minio.region

The physical location of the server. By default it is set to us-east-1, which is same as AWS S3’s and MinIO’s default region.

*Type:* string

*Default:*

```nix
"us-east-1"
```

*Declared by:*

* <https://github.com/cachix/devenv/blob/main/src/modules/services/minio.nix>

### services.minio.secretKey

Specify the Secret key of 8 to 40 characters in length that clients use to access the server.

*Type:* string

*Default:*

```nix
"minioadmin"
```

*Declared by:*

* <https://github.com/cachix/devenv/blob/main/src/modules/services/minio.nix>