blob: 2a82bd6d0684bca44b89938af46d4c574af64de4 (
plain) (
tree)
|
|
{ lib, pkgs, config, mylibs, ... }:
let
adminer = pkgs.callPackage ../../commons/adminer.nix {};
cfg = config.services.myWebsites.tools.databases;
in {
options.services.myWebsites.tools.databases = {
enable = lib.mkEnableOption "enable database's website";
};
config = lib.mkIf cfg.enable {
security.acme.certs."eldiron".extraDomains."db-1.immae.eu" = null;
services.myWebsites.tools.modules = adminer.apache.modules;
services.myWebsites.tools.vhostConfs.db-1 = {
certName = "eldiron";
hosts = ["db-1.immae.eu" ];
root = null;
extraConfig = [ adminer.apache.vhostConf ];
};
};
}
|