2016-04-09 12:21:39 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
2016-02-01 15:04:05 +00:00
|
|
|
|
2016-04-09 12:21:39 +00:00
|
|
|
let
|
|
|
|
inherit (import ../../4lib { inherit lib pkgs; })
|
2016-04-13 14:32:04 +00:00
|
|
|
manageCerts
|
2016-04-09 12:21:39 +00:00
|
|
|
activateACME
|
|
|
|
ssl
|
|
|
|
servePage
|
2016-04-13 14:32:04 +00:00
|
|
|
serveWordpress;
|
2016-02-01 15:04:05 +00:00
|
|
|
|
2016-04-09 12:21:39 +00:00
|
|
|
in {
|
2016-02-01 15:04:05 +00:00
|
|
|
imports = [
|
2016-04-27 10:49:47 +00:00
|
|
|
( manageCerts [ "biostase.de" "www.biostase.de" ])
|
|
|
|
#( serveWordpress [ "biostase.de" "www.biostase.de" ])
|
2016-04-09 12:21:39 +00:00
|
|
|
|
2016-04-27 10:49:47 +00:00
|
|
|
( manageCerts [ "radical-dreamers.de" ])
|
|
|
|
( serveWordpress [ "radical-dreamers.de" ])
|
2016-04-09 12:21:39 +00:00
|
|
|
|
2016-04-27 10:49:47 +00:00
|
|
|
( manageCerts [ "gs-maubach.de" ])
|
|
|
|
( serveWordpress [ "gs-maubach.de" ])
|
2016-04-09 12:21:39 +00:00
|
|
|
|
2016-04-27 10:49:47 +00:00
|
|
|
( manageCerts [ "spielwaren-kern.de" ])
|
|
|
|
( serveWordpress [ "spielwaren-kern.de" ])
|
2016-02-01 15:04:05 +00:00
|
|
|
|
2016-04-27 10:49:47 +00:00
|
|
|
( manageCerts [ "familienpraxis-korntal.de" ])
|
|
|
|
( servePage [ "familienpraxis-korntal.de" ])
|
2016-04-09 12:21:39 +00:00
|
|
|
|
2016-04-27 10:49:47 +00:00
|
|
|
( manageCerts [ "ttf-kleinaspach.de" ])
|
|
|
|
( serveWordpress [ "ttf-kleinaspach.de" ])
|
2016-04-09 12:21:39 +00:00
|
|
|
|
2016-04-25 15:37:06 +00:00
|
|
|
( ssl [ "eastuttgart.de" ])
|
2016-04-13 14:32:04 +00:00
|
|
|
( serveWordpress [ "eastuttgart.de" ])
|
|
|
|
|
2016-04-25 15:37:06 +00:00
|
|
|
( ssl [ "habsys.de" "habsys.eu" ])
|
2016-04-19 11:23:12 +00:00
|
|
|
( servePage [ "habsys.de" "habsys.eu" ])
|
2016-04-09 12:21:39 +00:00
|
|
|
];
|
2016-02-01 15:04:05 +00:00
|
|
|
|
2016-04-13 14:33:25 +00:00
|
|
|
services.mysql = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.mariadb;
|
|
|
|
rootPassword = toString (<secrets/mysql_rootPassword>);
|
|
|
|
};
|
|
|
|
|
2016-04-20 11:59:49 +00:00
|
|
|
lass.mysqlBackup = {
|
2016-04-13 14:33:25 +00:00
|
|
|
enable = true;
|
2016-04-20 11:59:49 +00:00
|
|
|
config.fritz = {
|
|
|
|
password = toString (<secrets/mysql_rootPassword>);
|
|
|
|
databases = [
|
2016-04-27 10:49:47 +00:00
|
|
|
"biostase_de"
|
2016-04-20 11:59:49 +00:00
|
|
|
"eastuttgart_de"
|
2016-04-27 10:49:47 +00:00
|
|
|
"radical_dreamers_de"
|
|
|
|
"spielwaren_kern_de"
|
|
|
|
"ttf_kleinaspach_de"
|
2016-04-20 11:59:49 +00:00
|
|
|
];
|
|
|
|
};
|
2016-04-13 14:33:25 +00:00
|
|
|
};
|
2016-02-01 15:04:05 +00:00
|
|
|
}
|