Skip to content

Lokinet

services.lokinet.enable

Whether to enable Lokinet daemon. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/lokinet.nix

services.lokinet.package

The lokinet package to use. Type: package

Default

pkgs.lokinet

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/lokinet.nix

services.lokinet.settings

Configuration for Lokinet. Currently, the best way to view the available settings is by generating a config file using lokinet -g.

Type: attribute set of section of an INI file (attrs of INI atom (null, bool, int, float or string) or a list of them for duplicate keys)

Default

{ }

Example

`#!nix { dns = { bind = "127.3.2.1"; upstream = [ "1.1.1.1" "8.8.8.8" ]; };

network.exit-node = [ "example.loki" "example2.loki" ]; } `

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/lokinet.nix

services.lokinet.settings.dns.bind

Address to bind to for handling DNS requests. Type: string

Default

"127.3.2.1"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/lokinet.nix

services.lokinet.settings.dns.upstream

Upstream resolver(s) to use as fallback for non-loki addresses. Multiple values accepted.

Type: list of string

Default

["9.9.9.10"]

Example

["1.1.1.1""8.8.8.8"]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/lokinet.nix

services.lokinet.settings.network.exit

Whether to act as an exit node. Beware that this increases demand on the server and may pose liability concerns. Enable at your own risk.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/lokinet.nix

services.lokinet.settings.network.exit-node

Specify a .loki address and an optional ip range to use as an exit broker. See http://probably.loki/wiki/index.php?title=Exit_Nodes for a list of exit nodes.

Type: null or (list of string)

Default

null

Example

'' exit-node = [ "example.loki" ]; # maps all exit traffic to example.loki exit-node = [ "example.loki:100.0.0.0/24" ]; # maps 100.0.0.0/24 to example.loki''

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/lokinet.nix

services.lokinet.settings.network.keyfile

The private key to persist address with. If not specified the address will be ephemeral. This keyfile is generated automatically if the specified file doesn't exist.

Type: null or string

Default

null

Example

"snappkey.private"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/lokinet.nix

services.lokinet.useLocally

Whether to use Lokinet locally. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/lokinet.nix