feat(www): www
This commit is contained in:
@@ -101,35 +101,5 @@ in
|
||||
};
|
||||
})
|
||||
(builtins.attrNames cfg.vhosts));
|
||||
|
||||
# services.nginx.virtualHosts."deertopia.net" = {
|
||||
# root = "${cfg.www.root}/www";
|
||||
|
||||
# # addSSL = true;
|
||||
# forceSSL = true;
|
||||
# enableACME = true;
|
||||
|
||||
# locations."/" = {
|
||||
# index = "index.html";
|
||||
# };
|
||||
# };
|
||||
|
||||
# system.activationScripts.initialiseDeertopiaRoot.text =
|
||||
# let
|
||||
# # FIXME: Use `lib.strings.toShellVar`.
|
||||
# inherit (cfg) root group user;
|
||||
# in ''
|
||||
# mkdir -p "${root}"
|
||||
# chown -R "${user}:${group}" "${root}"
|
||||
# chmod -R 775 "${root}"
|
||||
|
||||
# ${lib.toShellVar "dirs"
|
||||
# (builtins.catAttrs "directory" (builtins.attrValues cfg.vhosts))}
|
||||
# for i in "''${dirs[@]}"; do
|
||||
# mkdir -p "$i"
|
||||
# chown -R "${user}:${group}" "$i"
|
||||
# chmod -R 775 "$i"
|
||||
# done
|
||||
# '';
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user