dotfiles.nix/nixos/viridian/services/httpd.nix
2024-03-03 10:00:21 +08:00

21 lines
350 B
Nix

{ ... }:
{
services.httpd = {
enable = true;
virtualHosts."sajenim.dev" = {
documentRoot = "/var/www/sajenim.dev";
listen = [{
ip = "192.168.1.102";
port = 5624;
}];
};
};
environment.persistence."/persist" = {
directories = [
"/var/www/sajenim.dev"
];
hideMounts = true;
};
}