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