diff --git a/hosts/shared/nginx.nix b/hosts/shared/nginx.nix new file mode 100644 index 0000000..fb09e3f --- /dev/null +++ b/hosts/shared/nginx.nix @@ -0,0 +1,10 @@ +{ + services.nginx = { + enable = true; + virtualHosts = { + "test.anotherhadi.com" = { + locations."/" = { proxyPass = "http://192.168.2.22"; }; + }; + }; + }; +} diff --git a/hosts/shared/openssh.nix b/hosts/shared/openssh.nix new file mode 100644 index 0000000..6cc3d83 --- /dev/null +++ b/hosts/shared/openssh.nix @@ -0,0 +1,6 @@ +{ + services.openssh = { + enable = true; + ports = [ 22 ]; + }; +}