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