private: Yes


{ config, pkgs, ... }:

let
  gopherRoot = pkgs.runCommandLocal "gopher-root" {} ''
    mkdir -p $out
    cat > $out/.gophermap <<EOF
    ino thoughts
    i
    ihead empty
    EOF
  '';

in {
  config = {
    networking.firewall.allowedTCPPorts = [ 70 ];

    services.spacecookie = {
      enable = true;
      hostname = "sterni.lv";
      root = gopherRoot;
      port = 70;
    };
  };
}