dotfiles.nix/nixos/viridian/services/httpd.nix

21 lines
350 B
Nix
Raw Normal View History

2024-03-03 10:00:21 +08:00
{ ... }:
{
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;
};
}