configuration.nix/hosts/bifrost/services/apps/adtya.xyz.nix

19 lines
400 B
Nix

{ inputs, pkgs, ... }:
let
domainName = "adtya.xyz";
in
{
services = {
caddy.virtualHosts."${domainName}" = {
serverAliases = [ "www.${domainName}" ];
extraConfig = ''
handle {
root * ${inputs.adtyaxyz.packages.${pkgs.system}.default}/share/web
encode gzip
try_files {path} /index.html
file_server
}
'';
};
};
}