2024-09-14 19:55:57 +05:30
|
|
|
{ inputs, pkgs, ... }:
|
|
|
|
let
|
|
|
|
domainName = "adtya.xyz";
|
|
|
|
in
|
|
|
|
{
|
2024-07-03 17:03:34 +05:30
|
|
|
services = {
|
2024-09-14 19:55:57 +05:30
|
|
|
caddy.virtualHosts."${domainName}" = {
|
|
|
|
serverAliases = [ "www.${domainName}" ];
|
2024-07-03 17:03:34 +05:30
|
|
|
extraConfig = ''
|
|
|
|
handle {
|
|
|
|
root * ${inputs.adtyaxyz.packages.${pkgs.system}.default}/share/web
|
|
|
|
encode gzip
|
|
|
|
try_files {path} /index.html
|
|
|
|
file_server
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|