diff --git a/module.nix b/module.nix index 6a04b1f..a3942e4 100644 --- a/module.nix +++ b/module.nix @@ -6,7 +6,13 @@ virtualHosts.localhost.locations."/" = { index = "index.html"; - root = "/var/www"; + root = pkgs.writeTextDir "index.html" '' + + + Hello World! + + + ''; }; }; }; @@ -19,10 +25,5 @@ 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 deleted file mode 100644 index 8630255..0000000 --- a/www/index.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - -