1 { lib, pkgs, config, myconfig, ... }:
3 cfg = config.services.myWebsites.Nassime;
4 varDir = "/var/lib/ftp/nassime";
5 env = myconfig.env.websites.nassime;
7 options.services.myWebsites.Nassime = {
9 enable = lib.mkEnableOption "enable Nassime's website";
13 config = lib.mkIf cfg.production.enable {
14 services.webstats.sites = [ { name = "nassime.bouya.org"; } ];
16 security.acme.certs."ftp".extraDomains."nassime.bouya.org" = null;
17 security.acme.certs."nassime" = config.services.myCertificates.certConfig // {
18 domain = "nassime.bouya.org";
21 services.websites.production.vhostConfs.nassime = {
23 hosts = ["nassime.bouya.org" ];
27 Use Stats nassime.bouya.org
28 ServerAdmin ${env.server_admin}
31 DirectoryIndex index.php index.htm index.html
32 Options Indexes FollowSymLinks MultiViews Includes