19 lines
311 B
Nix
19 lines
311 B
Nix
{ config, lib, ... }:
|
|
|
|
with import <stockholm/lib>;
|
|
|
|
{
|
|
services.nginx = {
|
|
enable = true;
|
|
virtualHosts.default = {
|
|
default = true;
|
|
locations = {
|
|
"~ ^/~(.+?)(/.*)?\$".extraConfig = ''
|
|
alias /home/$1/public_html$2;
|
|
autoindex on;
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
}
|