]>
Commit | Line | Data |
---|---|---|
1 | { lib, pkgs, config, ... }: | |
2 | let | |
3 | adminer = pkgs.callPackage ../../commons/adminer.nix { inherit config; }; | |
4 | ||
5 | cfg = config.myServices.websites.tools.db; | |
6 | in { | |
7 | options.myServices.websites.tools.db = { | |
8 | enable = lib.mkEnableOption "enable database's website"; | |
9 | }; | |
10 | ||
11 | config = lib.mkIf cfg.enable { | |
12 | services.websites.env.tools.modules = adminer.apache.modules; | |
13 | services.websites.env.tools.vhostConfs.db-1 = { | |
14 | certName = "eldiron"; | |
15 | addToCerts = true; | |
16 | hosts = ["db-1.immae.eu" ]; | |
17 | root = null; | |
18 | extraConfig = [ (adminer.apache.vhostConf null) ]; | |
19 | }; | |
20 | }; | |
21 | } |