1 { lib, pkgs, config, ... }:
3 cfg = config.myServices.websites.nath.villon;
4 varDir = "/var/lib/ftp/nath";
5 env = config.myEnv.websites.nath;
6 domain = "sntvillon.immae.eu";
7 apacheUser = config.services.httpd.Prod.user;
8 apacheGroup = config.services.httpd.Prod.group;
10 options.myServices.websites.nath.villon.enable = lib.mkEnableOption "enable Nath's website";
12 config = lib.mkIf cfg.enable {
13 services.webstats.sites = [ { name = domain; } ];
15 system.activationScripts.nath_villon = {
18 install -m 0755 -o ${apacheUser} -g ${apacheGroup} -d ${varDir}
21 security.acme.certs."ftp".extraDomains."${domain}" = null;
23 services.websites.env.production.vhostConfs.nath_villon = {
25 certMainHost = domain;
33 DirectoryIndex index.htm index.html
34 Options Indexes FollowSymLinks MultiViews Includes