2016-04-09 12:21:39 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
2016-02-01 15:04:05 +00:00
|
|
|
|
2016-06-18 17:21:32 +00:00
|
|
|
with lib;
|
2016-04-09 12:21:39 +00:00
|
|
|
let
|
2016-10-20 19:40:11 +00:00
|
|
|
inherit (import <stockholm/lib>)
|
2016-05-31 21:26:35 +00:00
|
|
|
genid
|
|
|
|
head
|
|
|
|
;
|
|
|
|
inherit (import <stockholm/lass/2configs/websites/util.nix> {inherit lib pkgs;})
|
2016-04-09 12:21:39 +00:00
|
|
|
servePage
|
2016-05-31 21:26:35 +00:00
|
|
|
serveWordpress
|
|
|
|
;
|
2016-02-01 15:04:05 +00:00
|
|
|
|
2016-06-13 11:49:24 +00:00
|
|
|
msmtprc = pkgs.writeText "msmtprc" ''
|
2018-03-18 21:12:55 +00:00
|
|
|
account default
|
2016-06-13 11:49:24 +00:00
|
|
|
host localhost
|
|
|
|
'';
|
|
|
|
|
|
|
|
sendmail = pkgs.writeDash "msmtp" ''
|
|
|
|
exec ${pkgs.msmtp}/bin/msmtp --read-envelope-from -C ${msmtprc} "$@"
|
|
|
|
'';
|
|
|
|
|
2016-04-09 12:21:39 +00:00
|
|
|
in {
|
2016-12-29 17:14:02 +00:00
|
|
|
|
|
|
|
services.nginx.enable = true;
|
|
|
|
|
2016-02-01 15:04:05 +00:00
|
|
|
imports = [
|
2017-08-01 18:47:34 +00:00
|
|
|
./default.nix
|
2016-05-31 22:13:19 +00:00
|
|
|
./sqlBackup.nix
|
2016-04-09 12:21:39 +00:00
|
|
|
|
2016-05-31 22:13:19 +00:00
|
|
|
(serveWordpress [ "radical-dreamers.de" "www.radical-dreamers.de" ])
|
2016-04-09 12:21:39 +00:00
|
|
|
|
2016-05-31 22:13:19 +00:00
|
|
|
(serveWordpress [ "gs-maubach.de" "www.gs-maubach.de" ])
|
2016-04-09 12:21:39 +00:00
|
|
|
|
2016-05-31 22:13:19 +00:00
|
|
|
(serveWordpress [ "spielwaren-kern.de" "www.spielwaren-kern.de" ])
|
2016-02-01 15:04:05 +00:00
|
|
|
|
2016-05-31 22:13:19 +00:00
|
|
|
(servePage [ "familienpraxis-korntal.de" "www.familienpraxis-korntal.de" ])
|
2016-04-09 12:21:39 +00:00
|
|
|
|
2016-05-31 22:13:19 +00:00
|
|
|
(serveWordpress [ "ttf-kleinaspach.de" "www.ttf-kleinaspach.de" ])
|
2016-04-09 12:21:39 +00:00
|
|
|
|
2016-05-31 22:13:19 +00:00
|
|
|
(serveWordpress [ "eastuttgart.de" "www.eastuttgart.de" ])
|
2016-04-13 14:32:04 +00:00
|
|
|
|
2016-07-13 21:49:03 +00:00
|
|
|
(serveWordpress [ "goldbarrendiebstahl.radical-dreamers.de" ])
|
2016-04-09 12:21:39 +00:00
|
|
|
];
|
2016-02-01 15:04:05 +00:00
|
|
|
|
2016-05-31 22:13:19 +00:00
|
|
|
lass.mysqlBackup.config.all.databases = [
|
|
|
|
"eastuttgart_de"
|
|
|
|
"radical_dreamers_de"
|
|
|
|
"spielwaren_kern_de"
|
|
|
|
"ttf_kleinaspach_de"
|
|
|
|
];
|
2016-04-13 14:33:25 +00:00
|
|
|
|
2016-05-24 21:21:43 +00:00
|
|
|
users.users.root.openssh.authorizedKeys.keys = [
|
|
|
|
config.krebs.users.fritz.pubkey
|
|
|
|
];
|
2016-06-13 11:49:24 +00:00
|
|
|
|
2016-07-13 21:49:03 +00:00
|
|
|
users.users.goldbarrendiebstahl = {
|
|
|
|
home = "/srv/http/goldbarrendiebstahl.radical-dreamers.de";
|
|
|
|
uid = genid "goldbarrendiebstahl";
|
|
|
|
createHome = true;
|
|
|
|
useDefaultShell = true;
|
|
|
|
openssh.authorizedKeys.keys = [
|
|
|
|
config.krebs.users.fritz.pubkey
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2016-10-27 11:30:16 +00:00
|
|
|
services.phpfpm.phpOptions = ''
|
|
|
|
sendmail_path = ${sendmail} -t
|
2016-06-13 11:49:24 +00:00
|
|
|
'';
|
2016-02-01 15:04:05 +00:00
|
|
|
}
|