From 81706fca9fcabfda43663ae45675e2ab5f849217 Mon Sep 17 00:00:00 2001 From: TheWanderingCrow Date: Mon, 23 Mar 2026 13:52:54 -0400 Subject: [PATCH] working on db stuff --- hosts/nixos/HandlerOne/backup.nix | 2 -- hosts/nixos/HandlerOne/database.nix | 11 +++++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/hosts/nixos/HandlerOne/backup.nix b/hosts/nixos/HandlerOne/backup.nix index 92e40a1..8b94ef8 100644 --- a/hosts/nixos/HandlerOne/backup.nix +++ b/hosts/nixos/HandlerOne/backup.nix @@ -74,8 +74,6 @@ in repositoryFile = config.sops.secrets."restic/hetzner-handlerone/url".path; passwordFile = config.sops.secrets."restic/hetzner-handlerone/key".path; paths = [ - "${volumePath}/flamesites/swgalaxyproject" - "${volumePath}/flamesites/nnsbluegrass" "/home/crow/swgalaxysite/public_html" "/home/crow/flamebandsite/public_html" # Pocket-ID diff --git a/hosts/nixos/HandlerOne/database.nix b/hosts/nixos/HandlerOne/database.nix index eb6aa6e..06b4748 100644 --- a/hosts/nixos/HandlerOne/database.nix +++ b/hosts/nixos/HandlerOne/database.nix @@ -2,9 +2,20 @@ environment.systemPackages = with pkgs; [ mycli ]; + + networking.firewall.allowedTCPPorts = [ + 3306 + ]; services.mysql = { enable = true; package = pkgs.mariadb_118; + configFile = pkgs.writeText "my.cnf" '' + [mariadb] + log-bin + server_id=1 + log-basename=master1 + binlog-format=mixed + ''; }; }