enable mariadb

This commit is contained in:
mjallen18
2024-02-20 15:37:53 -06:00
parent 3373cb2757
commit 680f579d7e
2 changed files with 23 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ in
./nas-apps/sonarr.nix
./nas-apps/radarr.nix
./nas-apps/sabnzbd.nix
./nas-apps/mariadb.nix
];
# Enable nix flakes and nix-command tools
@@ -232,6 +233,7 @@ in
programs = {
fish.enable = true;
virt-manager.enable = true;
nix-ld.enable = true;
};
# Configure nixpkgs

21
nas-apps/mariadb.nix Normal file
View File

@@ -0,0 +1,21 @@
{ config, pkgs, ... }:
{
# sonarr
virtualisation.oci-containers.containers."mariadb" = {
autoStart = true;
image = "linuxserver/mariadb";
ports = [ "3306:3306" ];
volumes = [
"/mnt/Safe\ SSD/mariadb:/config"
];
environment = {
PUID = "911";
PGID = "1000";
TZ = "America/Chicago";
MYSQL_ROOT_PASSWORD = "BogieDudie1";
MYSQL_DATABASE = "jallen_nextcloud";
MYSQL_USER = "mjallen";
MYSQL_PASSWORD = "BogieDudie1";
};
};
}