]> git.immae.eu Git - perso/Immae/Config/Nix.git/blame - nixops/modules/websites/ftp/denisejerome.nix
Remove unneeded dependencies in modules
[perso/Immae/Config/Nix.git] / nixops / modules / websites / ftp / denisejerome.nix
CommitLineData
8a964143 1{ lib, pkgs, config, myconfig, ... }:
dc9fb826
IB
2let
3 cfg = config.services.myWebsites.DeniseJerome;
4 varDir = "/var/lib/ftp/denisejerome";
5 env = myconfig.env.websites.denisejerome;
6in {
7 options.services.myWebsites.DeniseJerome = {
8 production = {
9 enable = lib.mkEnableOption "enable Denise Jerome's website";
10 };
11 };
12
dc9fb826 13 config = lib.mkIf cfg.production.enable {
9eae2b47 14 services.webstats.sites = [ { name = "denisejerome.piedsjaloux.fr"; } ];
dc9fb826
IB
15
16 security.acme.certs."denisejerome" = config.services.myCertificates.certConfig // {
17 domain = "denisejerome.piedsjaloux.fr";
18 };
19
20 services.myWebsites.production.vhostConfs.denisejerome = {
21 certName = "denisejerome";
22 hosts = ["denisejerome.piedsjaloux.fr" ];
23 root = varDir;
24 extraConfig = [
25 ''
26 Use Stats denisejerome.piedsjaloux.fr
27
28 <Directory ${varDir}>
29 DirectoryIndex index.htm index.html
30 Options Indexes FollowSymLinks MultiViews Includes
31 AllowOverride AuthConfig
32 Require all granted
33 </Directory>
34 ''
35 ];
36 };
37 };
38}