[nix] Modularized the container backend so I can easily switch it with an option

This commit is contained in:
2025-06-24 17:31:30 -07:00
parent c74e40e69e
commit f4dd4583db
10 changed files with 158 additions and 117 deletions

View File

@@ -1,8 +1,8 @@
# Common config for all mariadb containers
{ ... }:
{ config, ... }:
{
sops.secrets."mariadb_root_password" = {
restartUnits = [ "podman-mariadb.service" ];
restartUnits = [ "${config.local.container-backend}-mariadb.service" ];
mode = "0440";
group = "mariadb";
};