31 lines
465 B
Nix
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";
|
|
};
|
|
};
|
|
};
|
|
}
|