summaryrefslogtreecommitdiffstats
path: root/lass/2configs/websites/fritz.nix
diff options
context:
space:
mode:
Diffstat (limited to 'lass/2configs/websites/fritz.nix')
-rw-r--r--lass/2configs/websites/fritz.nix77
1 files changed, 52 insertions, 25 deletions
diff --git a/lass/2configs/websites/fritz.nix b/lass/2configs/websites/fritz.nix
index 073f3de14..b0473c2ff 100644
--- a/lass/2configs/websites/fritz.nix
+++ b/lass/2configs/websites/fritz.nix
@@ -1,33 +1,60 @@
-{ config, pkgs, ... }:
+{ config, pkgs, lib, ... }:
-{
+let
+ inherit (import ../../4lib { inherit lib pkgs; })
+ manageCerts
+ activateACME
+ ssl
+ servePage
+ serveWordpress;
+in {
imports = [
- ../../3modules/static_nginx.nix
- ../../3modules/owncloud_nginx.nix
- ../../3modules/wordpress_nginx.nix
+ ( manageCerts [ "biostase.de" "www.biostase.de" ])
+ ( serveWordpress [ "biostase.de" "www.biostase.de" ])
+
+ ( manageCerts [ "radical-dreamers.de" "www.radical-dreamers.de" ])
+ ( serveWordpress [ "radical-dreamers.de" "www.radical-dreamers.de" ])
+
+ ( manageCerts [ "gs-maubach.de" "www.gs-maubach.de" ])
+ ( serveWordpress [ "gs-maubach.de" "www.gs-maubach.de" ])
+
+ ( manageCerts [ "spielwaren-kern.de" "www.spielwaren-kern.de" ])
+ ( serveWordpress [ "spielwaren-kern.de" "www.spielwaren-kern.de" ])
+
+ ( manageCerts [ "familienpraxis-korntal.de" "www.familienpraxis-korntal.de" ])
+ ( servePage [ "familienpraxis-korntal.de" "www.familienpraxis-korntal.de" ])
+
+ ( manageCerts [ "ttf-kleinaspach.de" "www.ttf-kleinaspach.de" ])
+ ( serveWordpress [ "ttf-kleinaspach.de" "www.ttf-kleinaspach.de" ])
+
+ ( ssl [ "eastuttgart.de" "www.eastuttgart.de" ])
+ ( serveWordpress [ "eastuttgart.de" "www.eastuttgart.de" ])
+
+ ( ssl [ "www.habsys.de" "habsys.de" "www.habsys.eu" "habsys.eu" ])
+ ( servePage [ "www.habsys.de" "habsys.de" "www.habsys.eu" "habsys.eu" ])
];
- lass.staticPage = {
- "biostase.de" = {};
- "gs-maubach.de" = {};
- "spielwaren-kern.de" = {};
- "societyofsimtech.de" = {};
- "ttf-kleinaspach.de" = {};
- "edsn.de" = {};
- "eab.berkeley.edu" = {};
- "habsys.de" = {};
+ services.mysql = {
+ enable = true;
+ package = pkgs.mariadb;
+ rootPassword = toString (<secrets/mysql_rootPassword>);
};
- #lass.owncloud = {
- # "o.ubikmedia.de" = {
- # instanceid = "oc8n8ddbftgh";
- # };
- #};
-
- #services.mysql = {
- # enable = true;
- # package = pkgs.mariadb;
- # rootPassword = toString (<secrets/mysql_rootPassword>);
- #};
+ lass.mysqlBackup = {
+ enable = true;
+ config.fritz = {
+ password = toString (<secrets/mysql_rootPassword>);
+ databases = [
+ "biostase_de"
+ "eastuttgart_de"
+ "radical_dreamers_de"
+ "spielwaren_kern_de"
+ "ttf_kleinaspach_de"
+ ];
+ };
+ };
+ users.users.root.openssh.authorizedKeys.keys = [
+ config.krebs.users.fritz.pubkey
+ ];
}