mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 21:25:30 +03:00
Merge pull request #312771 from mweinelt/garage-data-dir
nixos/garage: support 0.9.0+ data_dir format
This commit is contained in:
commit
a68d0e6819
1 changed files with 9 additions and 2 deletions
|
@ -49,8 +49,15 @@ in
|
||||||
|
|
||||||
data_dir = mkOption {
|
data_dir = mkOption {
|
||||||
default = "/var/lib/garage/data";
|
default = "/var/lib/garage/data";
|
||||||
type = types.path;
|
example = [ {
|
||||||
description = "The main data storage, put this on your large storage (e.g. high capacity HDD)";
|
path = "/var/lib/garage/data";
|
||||||
|
capacity = "2T";
|
||||||
|
} ];
|
||||||
|
type = with types; either path (listOf attrs);
|
||||||
|
description = ''
|
||||||
|
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.
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue