diff --git a/module.nix b/module.nix index a3942e4..6a04b1f 100644 --- a/module.nix +++ b/module.nix @@ -6,13 +6,7 @@ virtualHosts.localhost.locations."/" = { index = "index.html"; - root = pkgs.writeTextDir "index.html" '' - -
- Hello World! - - - ''; + root = "/var/www"; }; }; }; @@ -25,5 +19,10 @@ host.port = 8080; }]; + virtualisation.sharedDirectories.www = { + source = "$WWW"; + target = "/var/www"; + }; + system.stateVersion = "23.11"; } diff --git a/www/index.html b/www/index.html new file mode 100644 index 0000000..8630255 --- /dev/null +++ b/www/index.html @@ -0,0 +1,23 @@ + + + + + +