Summary Files Commits Branches @commit @diff @stats
path: root / modules / web-server.nix
diff options
context:
space:
mode:
1 files changed, 15 insertions, 0 deletions
-rw-r--r--modules/web-server.nix15
diff --git a/modules/web-server.nix b/modules/web-server.nix
new file mode 100644
index 0000000..f8a13b5
--- /dev/null
+++ b/modules/web-server.nix
@@ -0,0 +1,15 @@
+{ pkgs, ... }: {
+ environment.systemPackages = with pkgs; [ apacheHttpd ];
+
+ services.httpd = {
+ enable = true;
+
+ virtualHosts = {
+ syndamiadotcom-local = {
+ hostName = "synd.local";
+ listen = [ { port = 80; } ];
+ documentRoot = "/home/kamen/Programming/GitLab-repos/syndamiadotcom/website";
+ };
+ };
+ };
+}