15 lines
206 B
Nix
15 lines
206 B
Nix
|
{ lib, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
{
|
||
|
krebs.nginx = {
|
||
|
enable = true;
|
||
|
servers.default.locations = [
|
||
|
(nameValuePair "~ ^/~(.+?)(/.*)?\$" ''
|
||
|
alias /home/$1/public_html$2;
|
||
|
'')
|
||
|
];
|
||
|
};
|
||
|
}
|