mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-04 20:02:10 +02:00
15
hosts/modules/server/www/default.nix
Normal file
15
hosts/modules/server/www/default.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
|
||||
imports = [ ./home.anotherhadi.com ];
|
||||
|
||||
services.nginx.virtualHosts = {
|
||||
"anotherhadi.com" = {
|
||||
serverAliases = [ "www.anotherhadi.com" ];
|
||||
root = "/etc/www/anotherhadi.com";
|
||||
};
|
||||
"home.anotherhadi.com" = { root = "/etc/www/home.anotherhadi.com"; };
|
||||
};
|
||||
environment.etc."www" = {
|
||||
"anotherhadi.com" = { source = ./home.anotherhadi.com; };
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user