VEGAS/object-storage: set root credentials path in module option

This commit is contained in:
Max Headroom 2021-12-02 21:46:52 +01:00
parent 16a58587d1
commit 40a33a1450

View file

@ -26,13 +26,11 @@ in
};
services.minio = {
enable = true;
# requires https://github.com/NixOS/nixpkgs/pull/123834
# rootCredentialsFile = "/dev/null";
rootCredentialsFile = config.age.secrets.minio-root-credentials.path;
dataDir = [ "/srv/storage/objects" ];
browser = true;
};
systemd.services.minio.serviceConfig = {
EnvironmentFile = config.age.secrets.minio-root-credentials.path;
Slice = "remotefshost.slice";
};
services.nginx.virtualHosts = mappers.mapSubdomains {