NixOS-Config/nixos/server/package-configs/cinny/default.nix

24 lines
384 B
Nix

{
config,
pkgs,
inputs,
lib,
...
}: {
services.nginx = {
enable = true;
virtualHosts = {
"cinny.gladtherescake.eu" = {
root = "${pkgs.cinny}";
## Force HTTP redirect to HTTPS
forceSSL = true;
## LetsEncrypt
enableACME = true;
locations."/" = {
index = "index.html";
};
};
};
};
}