Garage
services.garage.enable
Whether to enable Garage Object Storage (S3 compatible).
Type: boolean
Default
false
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-servers/garage.nix
services.garage.environmentFile
File containing environment variables to be passed to the Garage server.
Type: null or path
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-servers/garage.nix
services.garage.extraEnvironment
Extra environment variables to pass to the Garage server.
Type: attribute set of string
Default
{ }
Example
{RUST_BACKTRACE = "yes";}
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-servers/garage.nix
services.garage.logLevel
Garage log level, see https://garagehq.deuxfleurs.fr/documentation/quick-start/#launching-the-garage-server for examples.
Type: one of "error", "warn", "info", "debug", "trace"
Default
"info"
Example
"debug"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-servers/garage.nix
services.garage.package
Garage package to use, needs to be set explicitly. If you are upgrading from a major version, please read NixOS and Garage release notes for upgrade instructions.
Type: package
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-servers/garage.nix
services.garage.settings
Garage configuration, see https://garagehq.deuxfleurs.fr/documentation/reference-manual/configuration/ for reference.
Type: TOML value
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-servers/garage.nix
services.garage.settings.data_dir
The directory in which Garage will store the data blocks of objects. This folder can be placed on an HDD. Since v0.9.0, Garage supports multiple data directories, refer to https://garagehq.deuxfleurs.fr/documentation/reference-manual/configuration/#data_dir for the exact format.
Type: path or list of (attribute set)
Default
"/var/lib/garage/data"
Example
[{capacity = "2T";path = "/var/lib/garage/data";}]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-servers/garage.nix
services.garage.settings.metadata_dir
The metadata directory, put this on a fast disk (e.g. SSD) if possible.
Type: path
Default
"/var/lib/garage/meta"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-servers/garage.nix