1
1
Fork 0
deployed-nixos-server-and-apps/nixos-apps/ewanick.com.nix

18 lines
309 B
Nix

let
PROJECT_ROOT = builtins.toString ./.;
in
{
services.caddy = {
enable = true;
virtualHosts = {
"ewanick.com" = {
serverAliases = [ "www.ewanick.com" ];
extraConfig = ''
root * ${PROJECT_ROOT}/ewanick.com/
file_server
'';
};
};
};
}