set data folder for vaultwarden
This commit is contained in:
parent
5c0042d455
commit
ec20509dd9
1 changed files with 11 additions and 1 deletions
|
@ -8,7 +8,17 @@ in
|
|||
enable = lib.mkEnableOption "vaultwarden";
|
||||
|
||||
config = lib.mkOption {
|
||||
type = lib.types.attrsOf lib.types.str;
|
||||
type = lib.types.submodule {
|
||||
freeformType = lib.types.attrsOf lib.types.str;
|
||||
options = {
|
||||
DATA_FOLDER = lib.mkOption {
|
||||
type = lib.types.srt;
|
||||
default = "/var/lib/vaultwarden/";
|
||||
readOnly = true;
|
||||
description = "Data directory used by vaultwarden. it cannot be changed as it's using systemd's StateDirectory";
|
||||
};
|
||||
};
|
||||
};
|
||||
description = "Vaultwarden is configured using environment variables";
|
||||
default = {
|
||||
ROCKET_ADDRESS = "::1"; # default to localhost
|
||||
|
|
Loading…
Reference in a new issue