Spacecookie
services.spacecookie.address
Address to listen on. Must be in the
ListenStream=
syntax of
systemd.socket(5).
Type: string
Default
"[::]"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/spacecookie.nix
services.spacecookie.enable
Whether to enable spacecookie.
Type: boolean
Default
false
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/spacecookie.nix
services.spacecookie.openFirewall
Whether to open the necessary port in the firewall for spacecookie.
Type: boolean
Default
false
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/spacecookie.nix
services.spacecookie.package
The spacecookie package to use.
Type: package
Default
pkgs.spacecookie
Example
haskellPackages.spacecookie
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/spacecookie.nix
services.spacecookie.port
Port the gopher service should be exposed on.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default
70
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/spacecookie.nix
services.spacecookie.settings
Settings for spacecookie. The settings set here are directly translated to the spacecookie JSON config file. See spacecookie.json(5) for explanations of all options.
Type: JSON value
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/spacecookie.nix
services.spacecookie.settings.hostname
The hostname the service is reachable via. Clients will use this hostname for further requests after loading the initial gopher menu.
Type: string
Default
"localhost"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/spacecookie.nix
services.spacecookie.settings.log.enable
Whether to enable logging for spacecookie.
Type: boolean
Default
true
Example
false
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/spacecookie.nix
services.spacecookie.settings.log.hide-ips
If enabled, spacecookie will hide personal information of users like IP addresses from log output.
Type: boolean
Default
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/spacecookie.nix
services.spacecookie.settings.log.hide-time
If enabled, spacecookie will not print timestamps at the beginning of every log line.
Type: boolean
Default
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/spacecookie.nix
services.spacecookie.settings.log.level
Log level for the spacecookie service.
Type: one of "info", "warn", "error"
Default
"info"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/spacecookie.nix
services.spacecookie.settings.root
The directory spacecookie should serve via gopher.
Files in there need to be world-readable since
the spacecookie service file sets
DynamicUser=true
.
Type: path
Default
"/srv/gopher"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/spacecookie.nix