Commit 32ff8464 authored by Christopher League's avatar Christopher League
Browse files

start on web site for localhost

parent e0250281
......@@ -119,3 +119,12 @@ places.sqlite
3320 storage
** xfce4 profile
* The localhost web site
After an update, a new firefox started up showing a cached pages.
Would be better to force it to update. Maybe configure nginx
to give a no-cache header.
A related problem that could become more serious: when serving
from nix store path, it always reports Last-Modified as 1970.
......@@ -23,6 +23,12 @@ in
sound.enable = false;
services.nginx.enable = true;
services.nginx.virtualHosts.localhost = {
root = pkgs.callPackage ./www {};
extraConfig = ''
add_header Cache-Control "no-cache, no-store, must-revalidate";
services.xserver.enable = true;
services.xserver.displayManager.slim = {
default: index.html
pandoc --standalone --css style.css $< >$@
mkdir -p $$out
cp style.css index.html $$out
$(RM) index.html
reallyclean: clean
$(RM) result
{ pkgs ? (import <nixpkgs> {}).pkgs
pkgs.stdenv.mkDerivation {
name = "www";
src = ./.;
buildFlags = "--always-make";
buildInputs = [pkgs.pandoc];
# Hello, world
Welcome to the VM. This is a change to see if it updates.
And yet another change.
Now we're cooking!
main :: IO ()
main = do
putStrLn "Hello, world!"
body { font-family: "Liberation Serif", serif; width: 56em; margin: auto; }
code {white-space: pre-wrap; font-family: "Liberation Mono", monospace; }
pre {border: 1px solid #ddd; background: #f7f7f7; padding: 5px; }
a:link {text-decoration: none;}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment