services.gophernicus.rootDir

NixOS option

absolute path

The directory which contains the root of your gopher content. Note that you might want to disable services.gophernicus.enableDefaultRootIndex if you are modifying the contents of your root directory.

type: absolute path
Default
"/var/lib/gophernicus/gopher"
Example
pkgs.symlinkJoin {
  name = "gophernicus-root-dir";
  paths = [
    (pkgs.writeTextDir "gophermap" ''
      iHello!

      1Misc\tmisc
    '')
    (pkgs.writeTextDir "misc/info.txt" ''
      World
    '')
  ];
}
declared in: nixos/modules/services/misc/gophernicus.nixView source on NixOS/nixpkgs →