home-server/services/website.nix
Ellie b8402a9049 Initial commit
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 14:57:00 -08:00

31 lines
465 B
Nix

{ pkgs, ... }:
let
site = pkgs.copyPathToStore ../data/service-directory;
in
{
services.avahi = {
enable = true;
nssmdns4 = true;
nssmdns6 = true;
publish = {
enable = true;
addresses = true;
domain = true;
workstation = true;
};
};
services.nginx = {
enable = true;
virtualHosts."service-directory" = {
root = site;
locations."/" = {
index = "index.html";
};
};
};
}