63 lines
1.1 KiB
Nix
Executable File
63 lines
1.1 KiB
Nix
Executable File
{ lib, ... }:
|
|
with lib;
|
|
{
|
|
options.nas-apps.mariadb = {
|
|
enable = mkEnableOption "mariadb docker service";
|
|
|
|
autoStart = mkOption {
|
|
type = types.bool;
|
|
default = true;
|
|
};
|
|
|
|
port = mkOption {
|
|
type = types.str;
|
|
default = "3306";
|
|
};
|
|
|
|
name = mkOption {
|
|
type = types.str;
|
|
default = "mariadb";
|
|
};
|
|
|
|
image = mkOption {
|
|
type = types.str;
|
|
default = "linuxserver/mariadb";
|
|
};
|
|
|
|
configPath = mkOption {
|
|
type = types.str;
|
|
default = "/media/nas/ssd/mariadb";
|
|
};
|
|
|
|
puid = mkOption {
|
|
type = types.str;
|
|
default = "911";
|
|
};
|
|
|
|
pgid = mkOption {
|
|
type = types.str;
|
|
default = "1000";
|
|
};
|
|
|
|
timeZone = mkOption {
|
|
type = types.str;
|
|
default = "America/Chicago";
|
|
};
|
|
|
|
databaseName = mkOption {
|
|
type = types.str;
|
|
default = "jallen_nextcloud";
|
|
};
|
|
|
|
databaseUser = mkOption {
|
|
type = types.str;
|
|
default = "nextcloud";
|
|
};
|
|
|
|
environmentFiles = mkOption {
|
|
type = with types; listOf path;
|
|
default = [ ];
|
|
};
|
|
};
|
|
}
|