nassimeProd = ./websites/nassime/production.nix;
- nathanaelVillon = ./websites/nathanael/villon.nix;
+ nathVillon = ./websites/nath/villon.nix;
papaMaisonBbc = ./websites/papa/maison_bbc.nix;
papaSurveillance = ./websites/papa/surveillance.nix;
{ lib, pkgs, config, ... }:
let
- cfg = config.myServices.websites.nathanael.villon;
- varDir = "/var/lib/ftp/nathanael";
- env = config.myEnv.websites.nathanael;
+ cfg = config.myServices.websites.nath.villon;
+ varDir = "/var/lib/ftp/nath";
+ env = config.myEnv.websites.nath;
domain = "sntvillon.immae.eu";
apacheUser = config.services.httpd.Prod.user;
apacheGroup = config.services.httpd.Prod.group;
in {
- options.myServices.websites.nathanael.villon.enable = lib.mkEnableOption "enable Nathanael's website";
+ options.myServices.websites.nath.villon.enable = lib.mkEnableOption "enable Nath's website";
config = lib.mkIf cfg.enable {
services.webstats.sites = [ { name = domain; } ];
- system.activationScripts.nathanael_villon = {
+ system.activationScripts.nath_villon = {
deps = [ "users" ];
text = ''
install -m 0755 -o ${apacheUser} -g ${apacheGroup} -d ${varDir}
};
security.acme.certs."ftp".extraDomains."${domain}" = null;
- services.websites.env.production.vhostConfs.nathanael_villon = {
- certName = "nathanael";
+ services.websites.env.production.vhostConfs.nath_villon = {
+ certName = "nath";
certMainHost = domain;
hosts = [ domain ];
root = varDir;