hades: secret config for mealie

This commit is contained in:
Antoine Martin 2025-01-17 17:09:53 +01:00
parent 6aca4f9f62
commit 78b96dd311
5 changed files with 17 additions and 0 deletions

View file

@ -29,11 +29,23 @@ in {
example = 8080;
description = "Internal port for Mealie webapp";
};
credentialsFile = lib.mkOption {
type = types.nullOr types.path;
default = null;
example = "/run/secrets/mealie-credentials.env";
description = ''
File containing credentials used in mealie such as {env}`POSTGRES_PASSWORD`
or sensitive LDAP options.
Expects the format of an `EnvironmentFile=`, as described by {manpage}`systemd.exec(5)`.
'';
};
};
config = mkIf cfg.enable {
services.mealie = {
inherit listenAddress;
inherit (cfg) credentialsFile;
enable = true;
package = pkgs.unstable.mealie;