blob: fc8d98929d2a8350f471c194af59d9f1a36ed2e1 (
plain) (
tree)
|
|
{ lib, pkgs, config, ... }:
let
adminer = pkgs.callPackage ../../commons/adminer.nix { inherit config; };
cfg = config.myServices.websites.tools.db;
in {
options.myServices.websites.tools.db = {
enable = lib.mkEnableOption "enable database's website";
};
config = lib.mkIf cfg.enable {
services.websites.env.tools.modules = adminer.apache.modules;
services.websites.env.tools.vhostConfs.db-1 = {
certName = "eldiron";
addToCerts = true;
hosts = ["db-1.immae.eu" ];
root = null;
extraConfig = [ (adminer.apache.vhostConf null) ];
};
};
}
|