Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Module Options

Every othrys.* option, generated from the module tree. Do not edit by hand. Each option names the platforms that declare it, and one declared on nix-darwin is in darwinModules.default or one of the darwin adapters.

othrys.apps.ai.claude-code.enable

Whether to enable Claude Code AI assistant.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.ai.claude-code.package

The Claude Code package. The default tracks Anthropic’s releases within hours and comes from cache.numtide.com, which the host then trusts. A package set here is used as given, and disableTelemetry no longer applies to it.

Platforms: NixOS and nix-darwin.

Type: package

Default: the claude-code package of the llm-agents flake this library locks, built with disableTelemetry

Example:

pkgs.claude-code

Declared by:

othrys.apps.ai.claude-code.agents

Agent markdown files for .claude/agents/.

Platforms: NixOS and nix-darwin.

Type: attribute set of (string or absolute path)

Default:

{ }

Declared by:

othrys.apps.ai.claude-code.commands

Command markdown files for .claude/commands/.

Platforms: NixOS and nix-darwin.

Type: attribute set of (string or absolute path)

Default:

{ }

Declared by:

othrys.apps.ai.claude-code.disableTelemetry

Build the default package with telemetry and non-essential traffic turned off, through its own disableTelemetry argument.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Declared by:

othrys.apps.ai.claude-code.hooks

Hook scripts for .claude/hooks/.

Platforms: NixOS and nix-darwin.

Type: attribute set of string

Default:

{ }

Declared by:

othrys.apps.ai.claude-code.permissions.defaultMode

Claude Code’s permission mode. “default” prompts before each edit. “acceptEdits” applies file writes without asking, in whichever repository the session was started from, so it is opt-in per host rather than a library default.

Platforms: NixOS and nix-darwin.

Type: one of “default”, “acceptEdits”, “plan”, “bypassPermissions”

Default:

"default"

Declared by:

othrys.apps.ai.claude-code.permissions.extraAllow

Additional permission rules appended to the curated allow-list.

Platforms: NixOS and nix-darwin.

Type: list of string

Default:

[ ]

Example:

[ "Bash(cargo test:*)" ]

Declared by:

othrys.apps.ai.claude-code.permissions.extraDeny

Additional permission rules appended to the curated deny-list.

Platforms: NixOS and nix-darwin.

Type: list of string

Default:

[ ]

Declared by:

othrys.apps.ai.claude-code.rules

Rule markdown files for .claude/rules/.

Platforms: NixOS and nix-darwin.

Type: attribute set of (string or absolute path)

Default:

{ }

Declared by:

othrys.apps.ai.claude-code.skills

Skill files for .claude/skills/, for Claude Code alone. They are written beside othrys.apps.ai.skills, and an entry of the same name here replaces the shared one for this tool.

Platforms: NixOS and nix-darwin.

Type: attribute set of (string or absolute path)

Default:

{ }

Declared by:

othrys.apps.ai.claude-code.theme

Claude Code UI theme. The daltonized pair is adjusted for colour blindness, and the ansi pair draws with the terminal’s own sixteen colours.

Platforms: NixOS and nix-darwin.

Type: one of “dark”, “light”, “dark-daltonized”, “light-daltonized”, “dark-ansi”, “light-ansi”

Default:

"dark"

Declared by:

othrys.apps.ai.claude-desktop.enable

Whether to enable Claude Desktop.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.ai.claude-desktop.package

The Claude Desktop package. The default repackages Anthropic’s own Linux build and comes from cache.numtide.com, which the host then trusts.

Platforms: NixOS only.

Type: package

Default: the claude-desktop package of the llm-agents flake this library locks

Declared by:

othrys.apps.ai.codex.enable

Whether to enable OpenAI Codex CLI.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.ai.codex.package

The Codex package. The default tracks OpenAI’s releases within hours and comes from cache.numtide.com, which the host then trusts.

Platforms: NixOS and nix-darwin.

Type: package

Default: the codex package of the llm-agents flake this library locks

Example:

pkgs.codex

Declared by:

othrys.apps.ai.codex.disableTelemetry

Turn off Codex’s analytics, its metrics exporter, /feedback uploads and the startup check for a newer release.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Declared by:

othrys.apps.ai.codex.permissions.denyRead

Paths and globs, relative to the workspace root, that sandboxed commands may not read. The list matches Claude Code’s read denials. Codex marks the permission profiles that carry it as Beta, and a command run outside the sandbox, through an allow rule or an approved escalation, is not bound by it.

Platforms: NixOS and nix-darwin.

Type: list of string

Default:

[
  ".env"
  ".env.*"
  "secrets/**"
]

Declared by:

othrys.apps.ai.codex.permissions.extraRules

Lines appended to the module’s command rules, in Codex’s Starlark rule syntax. An allow rule runs its command outside the sandbox.

Platforms: NixOS and nix-darwin.

Type: strings concatenated with “\n”

Default:

""

Example:

"prefix_rule(pattern = [\"cargo\", \"test\"], decision = \"allow\")"

Declared by:

othrys.apps.ai.codex.permissions.mode

How freely Codex works, named after Claude Code’s modes. “default” keeps the workspace read-only, so every edit asks first. “acceptEdits” lets Codex edit the workspace without asking, and it also runs commands without asking, inside a sandbox with no network that writes only to the workspace. Codex has no mode that applies edits freely while prompting for every command. Either way, leaving the sandbox asks first.

Platforms: NixOS and nix-darwin.

Type: one of “default”, “acceptEdits”

Default:

"default"

Declared by:

othrys.apps.ai.codex.settings

Settings for config.toml, merged over what the module writes and winning over it.

Platforms: NixOS and nix-darwin.

Type: TOML value

Default:

{ }

Example:

{ model = "gpt-5"; }

Declared by:

othrys.apps.ai.codex.skills

Skills for Codex alone. They are written beside othrys.apps.ai.skills, and an entry of the same name here replaces the shared one for this tool.

Platforms: NixOS and nix-darwin.

Type: attribute set of (string or absolute path)

Default:

{ }

Declared by:

othrys.apps.ai.context.extra

The host’s own lines, appended to the global context of every enabled assistant.

Platforms: NixOS and nix-darwin.

Type: strings concatenated with “\n”

Default:

""

Example:

''
  # House rules
  
  Commit messages follow Conventional Commits.
''

Declared by:

othrys.apps.ai.context.nixos.enable

Whether to enable the text that tells an assistant it runs on NixOS, and what that rules out.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

!pkgs.stdenv.hostPlatform.isDarwin

Example:

true

Declared by:

othrys.apps.ai.context.text

The global context every enabled assistant receives (derived; do not set).

Platforms: NixOS and nix-darwin.

Type: string (read only)

Default: the text of nixos-context.md beside this module while context.nixos.enable is on, with a line about the root wipe added when othrys.system.impermanence.enable is set, an option only NixOS declares, followed by context.extra

Declared by:

othrys.apps.ai.mcp.context7.enable

Whether to enable Context7 MCP server.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.ai.ollama.enable

Whether to enable Ollama local LLM server.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.ai.ollama.acceleration

GPU acceleration backend for Ollama, which picks the package. The default follows the host’s GPU. Vulkan runs on AMD and Intel cards alike, and an AMD host that wants ROCm names it here. nix-darwin takes "cpu" alone.

Platforms: NixOS and nix-darwin.

Type: one of “cuda”, “rocm”, “vulkan”, “cpu”

Default: "cuda" when othrys.hardware.nvidia is enabled, "vulkan" on any other host with hardware.graphics.enable, and "cpu" otherwise, which is every nix-darwin host

Declared by:

othrys.apps.ai.ollama.host

Address the server listens on. The default keeps it to this host. "0.0.0.0" or "::" serves every address, and Ollama asks for no credentials, so anything that reaches the port can run models. On NixOS the port stays closed while networking.firewall.enable is on, until the host opens it. On nix-darwin nothing closes the port, so an address other than loopback is reachable from the network at once.

Platforms: NixOS and nix-darwin.

Type: string

Default:

"127.0.0.1"

Example:

"0.0.0.0"

Declared by:

othrys.apps.ai.ollama.loadModels

Models to pull automatically on service start. NixOS only, since Home Manager’s ollama agent on nix-darwin pulls none.

Platforms: NixOS and nix-darwin.

Type: list of string

Default:

[ ]

Example:

[
  "llama3.1"
  "codellama"
]

Declared by:

othrys.apps.ai.ollama.port

Port the server listens on.

Platforms: NixOS and nix-darwin.

Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default:

11434

Declared by:

othrys.apps.ai.orca.enable

Whether to enable Orca, a desktop app for running coding agents side by side.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.ai.orca.package

The Orca package. The default repackages upstream’s own Linux build and comes from cache.numtide.com, which the host then trusts.

Platforms: NixOS only.

Type: package

Default: the orca package of the llm-agents flake this library locks

Declared by:

othrys.apps.ai.orca.disableTelemetry

Wrap the package so that Orca starts with ORCA_TELEMETRY_DISABLED set, which turns its usage telemetry off.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.apps.ai.orca.tailscale.enable

Whether to enable reaching Orca’s runtime port over the tailnet, for pairing another device. The port opens on Tailscale’s interface and on no other, and Orca’s network pairing must also be turned on in the app.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.ai.orca.tailscale.port

Orca’s runtime port, which is Orca’s own default.

Platforms: NixOS only.

Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default:

6768

Declared by:

othrys.apps.ai.paseo.enable

Whether to enable Paseo, a self-hosted daemon and CLI for orchestrating coding agents.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.ai.paseo.package

The Paseo package, which holds the paseo CLI, the paseo-server daemon and the web UI the daemon serves.

Platforms: NixOS and nix-darwin.

Type: package

Default:

pkgs.paseo

Declared by:

othrys.apps.ai.paseo.desktop.enable

Whether to enable the Paseo desktop app. Without service.enable the app starts a daemon of its own, which reads none of the options below.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.ai.paseo.desktop.package

The Paseo desktop package, which holds Paseo.app on darwin.

Platforms: NixOS and nix-darwin.

Type: package

Default:

pkgs.paseo.desktop

Declared by:

othrys.apps.ai.paseo.direnv.enable

The paseo-direnv plugin in the daemon othrys runs. It loads the direnv environment of each agent’s directory before the agent starts, and offers to allow a blocked .envrc in the app. A new git worktree inherits trust as othrys.apps.ai.projectEnvironment.trustWorktrees says, and the plugin’s own toggle shows that value disabled.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

othrys.apps.ai.paseo.service.enable && othrys.apps.ai.projectEnvironment.enable

Declared by:

othrys.apps.ai.paseo.direnv.package

The paseo-direnv plugin, a directory holding its manifest and its TypeScript source, which Paseo compiles when it loads it.

Platforms: NixOS and nix-darwin.

Type: package

Default: the default package of the paseo-direnv flake this library locks

Declared by:

othrys.apps.ai.paseo.hostnames

Hostnames the daemon accepts in the Host header besides its own addresses, such as the name a reverse proxy serves it under. The daemon refuses any other name, which guards against DNS rebinding. "tailscale" adds the host’s MagicDNS name on its own.

Platforms: NixOS and nix-darwin.

Type: list of string

Default:

[ ]

Example:

[
  "paseo.example.com"
]

Declared by:

othrys.apps.ai.paseo.listen

Where the daemon listens. "loopback" keeps it to this host. "lan" binds every address and on NixOS opens port in the firewall. "tailscale" binds the host’s tailnet address alone, admits the host’s MagicDNS name in the Host header and on NixOS opens port on Tailscale’s interface. Every peer that reaches the port can connect unless passwordFile is set.

Platforms: NixOS and nix-darwin.

Type: one of “loopback”, “lan”, “tailscale”

Default:

"loopback"

Declared by:

othrys.apps.ai.paseo.passwordFile

A file holding the daemon’s password, read when the daemon starts, so the password stays out of the store. It takes precedence over a hash that paseo daemon set-password wrote to ~/.paseo/config.json.

Platforms: NixOS and nix-darwin.

Type: null or string

Default:

null

Example:

"/run/secrets/paseo-password"

Declared by:

othrys.apps.ai.paseo.port

Port the daemon listens on, which is upstream’s own default.

Platforms: NixOS and nix-darwin.

Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default:

6767

Declared by:

othrys.apps.ai.paseo.relay.enable

Whether to enable the hosted relay at relay.paseo.sh, through which a client outside the network reaches the daemon. The daemon then keeps an outbound connection to that server, and the traffic over it is end-to-end encrypted.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.ai.paseo.service.enable

Whether to enable the Paseo daemon as a user service, a systemd unit on NixOS and a launchd agent on darwin. The desktop app attaches to this daemon instead of starting its own.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.ai.paseo.webUi.enable

Whether to enable the browser UI the daemon serves on its own port, beside its API and WebSocket. The page itself loads without the password, while the API behind it asks for one.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.ai.projectEnvironment.enable

Start claude and codex through direnv exec when the directory they start in has an allowed .envrc, so their hooks and commands see the project’s environment whichever program started them. A directory without an .envrc and an environment direnv already loaded leave the agent unchanged.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Declared by:

othrys.apps.ai.projectEnvironment.trustWorktrees

When an agent starts in a git worktree, run direnv allow on its .envrc when it is identical to the allowed .envrc at the same place in the main checkout. The allow is written to the user’s direnv allow store, so it outlasts the agent and a shell in the worktree loads the file too. When false, a new worktree’s .envrc stays blocked until the user allows it. Has no effect while enable is off.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Declared by:

othrys.apps.ai.skills

Skills handed to every enabled assistant, keyed by skill name. A value is the text of a SKILL.md, the path of one, or the path of a directory that holds one. The name is the directory the skill is written to, so it is lower-case letters, digits and single hyphens, at most 64 characters, and matches the name in the frontmatter.

A skill for one tool alone goes to that tool’s own option, such as othrys.apps.ai.claude-code.skills.

Platforms: NixOS and nix-darwin.

Type: attribute set of (string or absolute path)

Default:

{ }

Example:

{
  release-notes = ./skills/release-notes;
  commit = ''
    ---
    name: commit
    description: Write a commit message for the staged change.
    ---
    Read the staged diff and write the message.
  '';
}

Declared by:

othrys.apps.ai.t3code.enable

Whether to enable T3 Code, a control surface for coding agents.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.ai.t3code.package

The T3 Code package, whose out output holds the t3 server and whose desktop output holds the desktop app. The default comes from cache.numtide.com, which the host then trusts. Upstream’s own default puts five agents ahead of the user’s PATH, three of them unfree. A package set here is used as given.

Platforms: NixOS and nix-darwin.

Type: package

Default: the t3code package of the llm-agents flake this library locks, with the packages of othrys.apps.ai.codex and othrys.apps.ai.claude-code as its agents, each one while its module is on

Declared by:

othrys.apps.ai.t3code.disableTelemetry

Start t3 and the desktop app with T3CODE_TELEMETRY_ENABLED set to false, which turns off the product events T3 Code sends.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Declared by:

othrys.apps.ai.t3code.listen

Where the headless server listens. "loopback" keeps it to this host. "lan" binds every address and drops any peer outside loopback, the private ranges and the tailnet, and on NixOS opens port in the firewall. "tailscale" binds the host’s tailnet address alone and on NixOS opens port on Tailscale’s interface. Every mode but loopback asks a new client to pair, with a link from t3 pair.

Platforms: NixOS and nix-darwin.

Type: one of “loopback”, “lan”, “tailscale”

Default:

"loopback"

Declared by:

othrys.apps.ai.t3code.mode

"headless" installs t3 and runs t3 serve as a user service, a systemd unit on NixOS and a launchd agent on darwin. "desktop" installs the desktop app, which starts its own server while a window is open, beside t3. The two cannot share one ~/.t3, since the second server finds the first one’s lock and exits, so a host picks one.

Platforms: NixOS and nix-darwin.

Type: null or one of “headless”, “desktop”

Default:

null

Declared by:

othrys.apps.ai.t3code.port

Port the headless server listens on, which is upstream’s own default.

Platforms: NixOS and nix-darwin.

Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default:

3773

Declared by:

othrys.apps.chromium.enable

Whether to enable Ungoogled Chromium browser.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.chromium.package

The ungoogled-chromium package to use. A replacement must support Home Manager’s Chromium wrapper and use Chromium’s profile directory layout.

Platforms: NixOS only.

Type: package

Default:

pkgs.ungoogled-chromium

Declared by:

othrys.apps.chromium.commandLineArgs

Launch arguments passed through Home Manager’s Chromium package wrapper. Empty leaves browser and GPU detection unchanged.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Example:

[
  "--ozone-platform=wayland"
]

Declared by:

othrys.apps.chromium.extensions

Extensions installed from local signed CRX files, keyed by their 32-character IDs using the letters a through p. Each is fetched at build time from url and checked against hash, so the URL must keep serving that exact file. A release asset or a versioned path does, and a content delivery link that the publisher replaces on each upload does not.

Platforms: NixOS only.

Type: attribute set of (submodule)

Default:

{ }

Example:

{
  aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa = {
    url = "https://example.com/extensions/example-1.0.crx";
    hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
    version = "1.0";
  };
}

Declared by:

othrys.apps.chromium.extensions.<name>.hash

SHA-256 SRI hash of the CRX file at url.

Platforms: NixOS only.

Type: string matching the pattern sha256-[A-Za-z0-9+/]{43}=

Example:

"sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="

Declared by:

othrys.apps.chromium.extensions.<name>.url

Download URL of a signed CRX artifact at a fixed version.

Platforms: NixOS only.

Type: string matching the pattern https://.+

Example:

"https://example.com/extensions/example-1.0.crx"

Declared by:

othrys.apps.chromium.extensions.<name>.version

Version in the CRX manifest, with one to four components between 0 and 65535 and at least one nonzero component.

Platforms: NixOS only.

Type: string matching the pattern (0|[1-9][0-9]*)(\.(0|[1-9][0-9]*)){0,3}

Example:

"1.0"

Declared by:

othrys.apps.comma.enable

Whether to enable Comma and nix-index-database.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.development.enable

Whether to enable Development tools.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.discord.enable

Whether to enable Discord official client.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.floorp.enable

Whether to enable Floorp browser.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.floorp.builtinPasswordManager

Firefox’s own password manager. Off, since Bitwarden is in the default extension set and two managers prompt on every form.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.apps.floorp.extensions

Extensions force-installed from the Nix store, keyed by extension id. Each is fetched at build time by URL and hash, so the set a host runs is the set its configuration names. A definition replaces the default set, so a host that adds one extension merges it over options.othrys.apps.floorp.extensions.default, as the example does for Violentmonkey.

A userscript manager such as Violentmonkey is left to the host. Every script it installs runs with page access on the sites it matches, can make cross-origin requests and updates itself from its own URL, which is more code execution than the rest of the set together.

Platforms: NixOS only.

Type: attribute set of (submodule)

Default: Sidebery, Bitwarden and uBlock Origin at pinned versions

Example:

options.othrys.apps.floorp.extensions.default
// {
  "{aecec67f-0d10-4fa7-b7c7-609a2db280cf}" = {
    url = "https://addons.mozilla.org/firefox/downloads/file/5009389/violentmonkey-2.49.0.xpi";
    hash = "sha256-dh6moyzueMMmPRm72CHq/U6gci8Q/zWOy6JznFv/dvs=";
  };
}

Declared by:

othrys.apps.floorp.extensions.<name>.default_area

Where the extension’s button is placed, as the policy’s default_area.

Platforms: NixOS only.

Type: null or string

Default:

null

Example:

"navbar"

Declared by:

othrys.apps.floorp.extensions.<name>.hash

SRI hash of the file at url.

Platforms: NixOS only.

Type: string

Example:

"sha256-6KCktVarfdU2iXwYFq+dCRgDAiMGjqZoOgQ3YQOmyvI="

Declared by:

othrys.apps.floorp.extensions.<name>.url

Versioned download URL of the signed .xpi.

Platforms: NixOS only.

Type: string

Example:

"https://addons.mozilla.org/firefox/downloads/file/4903712/sidebery-5.6.1.xpi"

Declared by:

othrys.apps.floorp.extraExtensions

Raw extension policies merged over the set built from extensions, for an entry that needs a policy shape the typed option does not cover.

Platforms: NixOS only.

Type: attribute set of attribute set of anything

Default:

{ }

Example:

{
  "search@kagi.com" = {
    install_url = "https://addons.mozilla.org/firefox/downloads/latest/kagi-search-for-firefox/latest.xpi";
    installation_mode = "force_installed";
  };
}

Declared by:

othrys.apps.floorp.search.default

Default search engine (home-manager engine id or a key from extraEngines).

Platforms: NixOS only.

Type: string

Default:

"ddg"

Example:

"Kagi"

Declared by:

othrys.apps.floorp.search.extraEngines

Custom search engines merged over the curated Nix/NixOS set. Each engine is an attribute set of JSON values, in the shape of Home Manager’s programs.firefox.profiles.<name>.search.engines.

Platforms: NixOS only.

Type: attribute set of attribute set of (JSON value)

Default:

{ }

Example:

{
  "Kagi" = {
    urls = [{template = "https://kagi.com/search?q={searchTerms}";}];
    definedAliases = ["@k"];
  };
}

Declared by:

othrys.apps.floorp.trackingProtectionExemptions

Sites exempt from tracking protection and social-tracking blocking. Empty, so a host names its own exceptions.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Example:

[
  "*.example.com"
]

Declared by:

othrys.apps.floorp.vaapiDriver

Value for LIBVA_DRIVER_NAME used for hardware video decode. Null (the default) leaves it unset so the system-wide VA-API default applies; set “nvidia” on NVIDIA hosts (which also enables the nvidia-vaapi direct backend).

Platforms: NixOS only.

Type: null or string

Default:

null

Example:

"nvidia"

Declared by:

othrys.apps.gaming.gamemode.enable

Whether to enable gamemode configuration for gaming optimization.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.gaming.gamemode.settings

Extra programs.gamemode.settings, merged over the curated defaults. Those are written at mkDefault, so overriding one leaf leaves its siblings in place and lib.mkForce replaces a leaf outright.

The shape is that of gamemode.ini, a section name over keys whose values are a string, a number, a boolean or a list of those.

One default deserves a decision. gpu.apply_gpu_optimisations = "accept-responsibility" lets gamemode change GPU power settings as root at every game start, for members of the gamemode group, which this module adds the primary user to. On an othrys.hardware.nvidia host it sets the PowerMizer mode to maximum performance on an X11 session, and on any other host the AMD power_dpm_force_performance_level to high. The NVIDIA step goes through nvidia-settings, which needs an X display and Coolbits, so it does nothing under a Wayland compositor. The value is spelled that way upstream because gamemode documents these GPU settings as able to damage hardware, and writing it accepts that. A host that does not want it sets gpu.apply_gpu_optimisations = 0, which leaves the GPU alone and keeps the CPU and scheduling changes.

Platforms: NixOS only.

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:

{
  general.renice = 10;
  gpu.amd_performance_level = "high";
}

Declared by:

othrys.apps.gaming.mangohud.enable

Whether to enable MangoHud performance overlay.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.gaming.mangohud.enableSessionWide

Enable MangoHud for all Vulkan applications via environment variable.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.apps.gaming.mangohud.settings

MangoHud settings merged over (and overriding) the curated defaults.

Platforms: NixOS only.

Type: attribute set of anything

Default:

{ }

Example:

{
  position = "top-left";
  fps_limit = 60;
  gpu_temp = false;
}

Declared by:

othrys.apps.gaming.osu.enable

Whether to enable osu!lazer with low-latency optimizations.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.gaming.osu.package

osu!lazer package to use (wrapped with latency optimizations).

Platforms: NixOS only.

Type: package

Default: pkgs.osu-lazer behind a wrapper that sets the PipeWire latency, and starts it through gamemoderun when othrys.apps.gaming.gamemode is enabled

Declared by:

othrys.apps.gaming.prismlauncher.enable

Whether to enable PrismLauncher Minecraft launcher.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.gaming.prismlauncher.package

PrismLauncher package to use.

Platforms: NixOS only.

Type: package

Default:

pkgs.prismlauncher

Declared by:

othrys.apps.gaming.r2modman.enable

Whether to enable r2modman Thunderstore mod manager.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.gaming.r2modman.package

r2modman package to use (wrapped for Wayland by default).

Platforms: NixOS only.

Type: package

Default: pkgs.r2modman with the Ozone Wayland flags added to its launcher

Declared by:

othrys.apps.gaming.steam.enable

Whether to enable Steam with gaming optimizations.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.gaming.steam.package

The Steam package as installed, after nixpkgs adds the graphics drivers, fonts, and compatibility tool paths to the FHS environment. Read this when wrapping Steam, since a package taken before that step starts without a working GPU driver.

Platforms: NixOS only.

Type: package (read only)

Default:

config.programs.steam.package

Declared by:

othrys.apps.gaming.steam.dedicatedServer.openFirewall

Open firewall ports for Source Dedicated Server, TCP and UDP 27015. Off by default, as the other two firewall options are.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.apps.gaming.steam.devConfig

Additional Steam console variables written to ~/.local/share/Steam/steam_dev.cfg, one name value per line. These are the variables accepted by the Steam console at steam://open/console, applied at every client start. The shaderPrecache options render into the same file and take precedence over a duplicate key here.

Platforms: NixOS only.

Type: attribute set of (signed integer or string or boolean)

Default:

{ }

Example:

{
  "@nClientDownloadEnableHTTP2PlatformLinux" = 0;
  "@fDownloadRateImprovementToAddAnotherConnection" = "1.0";
}

Declared by:

othrys.apps.gaming.steam.extraCompatPackages

Additional Proton compatibility packages to add to the defaults (proton-ge-bin).

Platforms: NixOS only.

Type: list of package

Default:

[ ]

Example:

with pkgs; [ ]

Declared by:

othrys.apps.gaming.steam.extraPkgs

Extra packages to include in Steam’s FHS runtime environment.

Platforms: NixOS only.

Type: function that evaluates to a(n) list of package

Default:

<function>

Declared by:

othrys.apps.gaming.steam.gamescopeSession.enable

Enable GameScope session for Steam Deck-like experience.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.apps.gaming.steam.localNetworkGameTransfers.openFirewall

Open the firewall for Steam Local Network Game Transfers, which copies an installed game from another Steam client on the network instead of downloading it. It opens TCP 27040 for the transfer and UDP 27036 for peer discovery on every interface. Off by default, so a host that shares its library turns it on.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.apps.gaming.steam.remotePlay.openFirewall

Open the firewall for Steam Remote Play, which streams a game from this host to another device. It opens TCP 27036 and 27037 and UDP 10400, 10401 and 27031 to 27036 on every interface. Off by default, so a host that streams turns it on.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.apps.gaming.steam.shaderPrecache.backgroundThreads

CPU threads given to Steam’s fossilize shader pre-caching while it runs in the background, written as unShaderBackgroundProcessingThreads in steam_dev.cfg. The pass only runs while “Allow background processing of Vulkan shaders” is enabled in Steam under Settings, Downloads. That toggle is off by default and lives in Steam’s own registry, which this module cannot declare. Null leaves Steam’s heuristic in place. The value is a host sizing decision, since a desktop can spare most of nproc while a laptop wants a fraction of it.

Platforms: NixOS only.

Type: null or (positive integer, meaning >0)

Default:

null

Example:

12

Declared by:

othrys.apps.gaming.steam.shaderPrecache.highPriorityThreads

CPU threads for the “Processing Vulkan shaders” pass that blocks a game launch, written as unShaderHighPriorityProcessingThreads in steam_dev.cfg. Steam deletes every compiled cache when the GPU driver version changes, so each game pays this pass once after a driver update. With the variable unset the pass was measured at about 16 pipelines per second on a 32-thread desktop, where the same replay reaches 223 per second at 28 threads. Valve documents neither variable. The background one is confirmed by wide use, while this one is known only from the client binary, where its name places it on the pre-launch pass. Null leaves Steam’s default.

Platforms: NixOS only.

Type: null or (positive integer, meaning >0)

Default:

null

Example:

24

Declared by:

othrys.apps.gh.enable

Whether to install and configure the GitHub CLI. The module does not log in. gh auth login runs GitHub’s OAuth device flow and stores the token in the Secret Service keyring when one is running, which othrys.desktop.keyring provides on a graphical host. Without a keyring it falls back to a plain file under ~/.config/gh, which is persisted at mode 0700 under impermanence. A host with no browser and no keyring sets tokenFile instead.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.gh.aliases

Short names for gh commands, written to aliases in config.yml. The value is the command line without the leading gh.

Platforms: NixOS and nix-darwin.

Type: attribute set of string

Default:

{ }

Example:

{
  co = "pr checkout";
  pv = "pr view";
}

Declared by:

othrys.apps.gh.claudeCode.allowReadOnly

Whether read-only gh commands are added to the Claude Code allow-list when othrys.apps.ai.claude-code.enable is on, so an agent reads issues, pull requests, workflow runs, repositories, releases and search results without a prompt. Commands that write to GitHub stay prompted, and so does gh api, since it sends any request.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Example:

false

Declared by:

othrys.apps.gh.codex.allowReadOnly

Whether read-only gh commands are allowed for Codex when othrys.apps.ai.codex.enable is on. An allowed command runs outside Codex’s sandbox, which has no network, so this is what lets Codex read issues, pull requests and workflow runs without asking.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Example:

false

Declared by:

othrys.apps.gh.credentialHelper.enable

Whether git asks gh for credentials on the hosts listed in credentialHelper.hosts, so that a clone, fetch or push over HTTPS uses the gh login and no second credential is stored. A remote reached over SSH is not affected.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Example:

false

Declared by:

othrys.apps.gh.credentialHelper.hosts

URLs git uses the gh credential helper for. Each becomes a credential.<url>.helper entry in the user’s git configuration.

Platforms: NixOS and nix-darwin.

Type: list of string

Default:

[
  "https://github.com"
  "https://gist.github.com"
]

Example:

[
  "https://github.com"
  "https://github.example.com"
]

Declared by:

othrys.apps.gh.editor

Editor gh opens for an issue or pull request body, written to editor. Null leaves the choice to gh, which then reads GIT_EDITOR, VISUAL and EDITOR from the environment.

Platforms: NixOS and nix-darwin.

Type: null or string

Default:

config.othrys.system.defaultEditor

Example:

"nvim"

Declared by:

othrys.apps.gh.extensions

gh extensions to install, each a package. They are linked under ~/.local/share/gh/extensions, where gh looks for them.

Platforms: NixOS and nix-darwin.

Type: list of package

Default:

[ ]

Example:

[ pkgs.gh-dash ]

Declared by:

othrys.apps.gh.gitProtocol

Protocol gh uses for the git operations it runs itself, such as gh repo clone and gh pr checkout. It is written to git_protocol.

Platforms: NixOS and nix-darwin.

Type: one of “ssh”, “https”

Default:

"ssh"

Example:

"https"

Declared by:

othrys.apps.gh.settings

Further config.yml keys, merged over the ones this module writes. A key set here replaces the module’s key of the same name whole, which includes aliases, editor, git_protocol and prompt.

Platforms: NixOS and nix-darwin.

Type: attribute set of (YAML 1.1 value)

Default:

{ }

Example:

{
  pager = "less -FRX";
  prompt = "disabled";
}

Declared by:

othrys.apps.gh.tokenFile

Runtime path to a file holding a GitHub token, for a host with no browser and no keyring. The file is written by a secrets provider and has to be readable by the primary user.

gh reads a token only from the GH_TOKEN environment variable, so when this is set the gh on the user’s PATH is a wrapper. It reads the file into GH_TOKEN in its own process and then becomes the real gh. The token is in the environment of that gh and of the programs it starts, and it is not in the Nix store, the environment of the shell or a process argument. A GH_TOKEN that is already set is kept. When the file is missing or unreadable the wrapper says so on stderr and runs gh without it.

Platforms: NixOS and nix-darwin.

Type: null or absolute runtime path outside the Nix store, e.g. “/run/secrets/service-password”

Default:

null

Example:

"/run/secrets/gh-token"

Declared by:

othrys.apps.ghostty.enable

Whether to enable Ghostty terminal emulator.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.ghostty.batSyntax

Whether to enable Ghostty config syntax highlighting for bat.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.ghostty.copyOnSelect

Whether to enable automatic copy to clipboard on text selection.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

Whether the cursor blinks.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Declared by:

othrys.apps.ghostty.cursor.style

Cursor shape style.

Platforms: NixOS and nix-darwin.

Type: one of “block”, “bar”, “underline”

Default:

"block"

Declared by:

othrys.apps.ghostty.extraSettings

Additional Ghostty settings merged into the configuration. A value is a string, a number, a boolean, or a list of those for a key that repeats.

Platforms: NixOS and nix-darwin.

Type: attribute set of (null or boolean or signed integer or floating point number or string or list of (null or boolean or signed integer or floating point number or string))

Default:

{ }

Example:

{
  bold-is-bright = false;
  confirm-close-surface = false;
}

Declared by:

othrys.apps.ghostty.keybindings.enable

Whether to enable custom Ghostty keybindings.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.ghostty.keybindings.clearDefaults

Whether to enable clearing all default keybindings.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.ghostty.keybindings.extra

Additional keybindings in Ghostty format (trigger=action).

Platforms: NixOS and nix-darwin.

Type: list of string

Default:

[ ]

Example:

[
  "ctrl+shift+f=toggle_fullscreen"
  "ctrl+shift+z=toggle_split_zoom"
]

Declared by:

othrys.apps.ghostty.mouseHideWhileTyping

Whether to enable hiding mouse cursor while typing.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.ghostty.scrollbackLimit

Scrollback each terminal surface retains, in bytes. A line of 80 plain characters takes roughly 80 bytes.

Platforms: NixOS and nix-darwin.

Type: unsigned integer, meaning >=0

Default:

10000000

Example:

50000000

Declared by:

othrys.apps.ghostty.shellIntegration.bash

Whether to enable Bash shell integration.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.ghostty.shellIntegration.zsh

Whether to enable Zsh shell integration.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.ghostty.vimSyntax

Whether to enable Ghostty config syntax highlighting for Vim.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.ghostty.window.decoration

Whether to show window decorations (CSD).

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Declared by:

othrys.apps.ghostty.window.gtkTitlebar

Whether to show the GTK titlebar.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Declared by:

othrys.apps.ghostty.window.padding.x

Horizontal window padding in pixels.

Platforms: NixOS and nix-darwin.

Type: signed integer

Default:

8

Declared by:

othrys.apps.ghostty.window.padding.y

Vertical window padding in pixels.

Platforms: NixOS and nix-darwin.

Type: signed integer

Default:

8

Declared by:

othrys.apps.idea.enable

Whether to enable IntelliJ IDEA.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.idea.package

IDEA distribution. JetBrains discontinued the Community edition in 2025 and folded Ultimate into a single unfree build that a licence unlocks at runtime, so pkgs.jetbrains.idea is the current release and pkgs.jetbrains.idea-community no longer exists. Set pkgs.jetbrains.idea-oss for the free source build, which lags the unified one by a release or two.

Platforms: NixOS and nix-darwin.

Type: package

Default:

pkgs.jetbrains.idea

Declared by:

othrys.apps.idea.extraPlugins

Plugins outside the curated catalogue, as derivations rather than names. nixpkgs removed resolution by plugin id and addPlugins throws on anything that is not a derivation, so each one is pinned by its marketplace URL and hash.

Anything used on more than one host belongs in the catalogue in idea.nix instead, so the pin lives in one place.

Platforms: NixOS and nix-darwin.

Type: list of package

Default:

[ ]

Example:

[
  (pkgs.fetchurl {
    executable = true; # a plugin shipping a bare JAR
    url = "https://plugins.jetbrains.com/files/7425/760442/WakaTime.jar";
    hash = "sha256-DobKZKokueqq0z75d2Fo3BD8mWX9+LpGdT9C7Eu2fHc=";
  })
]

Declared by:

othrys.apps.idea.plugins.develocity

Develocity 1.3.1. Gradle and Maven build scans from inside the IDE…

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Declared by:

othrys.apps.idea.plugins.ideavim

IdeaVim 2.46.2. Vim emulation…

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Declared by:

othrys.apps.idea.plugins.key-promoter-x

Key Promoter X 2026.1.2. Shows the keyboard shortcut for whatever was just clicked…

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Declared by:

othrys.apps.idea.plugins.nixidea

NixIDEA 0.4.0.22. Nix language support: highlighting, navigation, completion…

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Declared by:

othrys.apps.idea.plugins.spring-debugger

Spring Debugger 262.8665.176. Spring-aware debugging: beans, contexts, conditional config…

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Declared by:

othrys.apps.kitty.enable

Whether to enable Kitty terminal emulator.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.kitty.extraSettings

Additional kitty.conf settings, merged over the defaults this module writes, so a key set here wins.

Platforms: NixOS and nix-darwin.

Type: attribute set of anything

Default:

{ }

Example:

{
  scrollback_lines = "50000";
  tab_bar_style = "fade";
}

Declared by:

othrys.apps.languages.bash.enable

Whether to enable Bash language support (shared toolchain + editor wiring).

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.languages.bash.extraTools

Additional Bash tooling installed alongside the toolchain (linters, build tools, runtimes).

Platforms: NixOS and nix-darwin.

Type: list of package

Default:

[pkgs.shellcheck]

Declared by:

othrys.apps.languages.bash.formatter

Canonical Bash formatter, installed on the user’s PATH and named by store path in every editor. A replacement is run under the formatter definition that matches its executable name.

Platforms: NixOS and nix-darwin.

Type: package

Default:

pkgs.shfmt

Declared by:

othrys.apps.languages.bash.server

Canonical Bash language server, installed on the user’s PATH and named by store path in every editor that takes an external server. Null leaves the language without a standalone server, and an editor then configures none.

Platforms: NixOS and nix-darwin.

Type: null or package

Default:

pkgs.bash-language-server

Declared by:

othrys.apps.languages.go.enable

Whether to enable Go language support (shared toolchain + editor wiring).

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.languages.go.extraTools

Additional Go tooling installed alongside the toolchain (linters, build tools, runtimes).

Platforms: NixOS and nix-darwin.

Type: list of package

Default:

[]

Declared by:

othrys.apps.languages.go.formatter

Canonical Go formatter, installed on the user’s PATH and named by store path in every editor. A replacement is run under the formatter definition that matches its executable name.

Platforms: NixOS and nix-darwin.

Type: package

Default:

pkgs.go

Declared by:

othrys.apps.languages.go.server

Canonical Go language server, installed on the user’s PATH and named by store path in every editor that takes an external server. Null leaves the language without a standalone server, and an editor then configures none.

Platforms: NixOS and nix-darwin.

Type: null or package

Default:

pkgs.gopls

Declared by:

othrys.apps.languages.java.enable

Whether to enable Java language support (shared toolchain + editor wiring).

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.languages.java.extraTools

Additional Java tooling installed alongside the toolchain (linters, build tools, runtimes).

Platforms: NixOS and nix-darwin.

Type: list of package

Default:

[pkgs.jdk21 pkgs.maven pkgs.gradle]

Declared by:

othrys.apps.languages.java.formatter

Canonical Java formatter, installed on the user’s PATH and named by store path in every editor. A replacement is run under the formatter definition that matches its executable name.

Platforms: NixOS and nix-darwin.

Type: package

Default:

pkgs.google-java-format

Declared by:

othrys.apps.languages.java.server

Canonical Java language server, installed on the user’s PATH and named by store path in every editor that takes an external server. Null leaves the language without a standalone server, and an editor then configures none.

Platforms: NixOS and nix-darwin.

Type: null or package

Default:

null

Declared by:

othrys.apps.languages.json.enable

Whether to enable JSON language support (shared toolchain + editor wiring).

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.languages.json.extraTools

Additional JSON tooling installed alongside the toolchain (linters, build tools, runtimes).

Platforms: NixOS and nix-darwin.

Type: list of package

Default:

[]

Declared by:

othrys.apps.languages.json.formatter

Canonical JSON formatter, installed on the user’s PATH and named by store path in every editor. A replacement is run under the formatter definition that matches its executable name.

Platforms: NixOS and nix-darwin.

Type: package

Default:

pkgs.prettier

Declared by:

othrys.apps.languages.json.server

Canonical JSON language server, installed on the user’s PATH and named by store path in every editor that takes an external server. Null leaves the language without a standalone server, and an editor then configures none.

Platforms: NixOS and nix-darwin.

Type: null or package

Default:

pkgs.vscode-langservers-extracted

Declared by:

othrys.apps.languages.lua.enable

Whether to enable Lua language support (shared toolchain + editor wiring).

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.languages.lua.extraTools

Additional Lua tooling installed alongside the toolchain (linters, build tools, runtimes).

Platforms: NixOS and nix-darwin.

Type: list of package

Default:

[]

Declared by:

othrys.apps.languages.lua.formatter

Canonical Lua formatter, installed on the user’s PATH and named by store path in every editor. A replacement is run under the formatter definition that matches its executable name.

Platforms: NixOS and nix-darwin.

Type: package

Default:

pkgs.stylua

Declared by:

othrys.apps.languages.lua.server

Canonical Lua language server, installed on the user’s PATH and named by store path in every editor that takes an external server. Null leaves the language without a standalone server, and an editor then configures none.

Platforms: NixOS and nix-darwin.

Type: null or package

Default:

pkgs.lua-language-server

Declared by:

othrys.apps.languages.nix.enable

Whether to enable Nix language support (shared toolchain + editor wiring).

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.languages.nix.extraTools

Additional Nix tooling installed alongside the toolchain (linters, build tools, runtimes).

Platforms: NixOS and nix-darwin.

Type: list of package

Default:

[]

Declared by:

othrys.apps.languages.nix.formatter

Canonical Nix formatter, installed on the user’s PATH and named by store path in every editor. A replacement is run under the formatter definition that matches its executable name.

Platforms: NixOS and nix-darwin.

Type: package

Default:

pkgs.alejandra

Declared by:

othrys.apps.languages.nix.server

Canonical Nix language server, installed on the user’s PATH and named by store path in every editor that takes an external server. Null leaves the language without a standalone server, and an editor then configures none.

Platforms: NixOS and nix-darwin.

Type: null or package

Default:

pkgs.nil

Declared by:

othrys.apps.languages.python.enable

Whether to enable Python language support (shared toolchain + editor wiring).

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.languages.python.extraTools

Additional Python tooling installed alongside the toolchain (linters, build tools, runtimes).

Platforms: NixOS and nix-darwin.

Type: list of package

Default:

[]

Declared by:

othrys.apps.languages.python.formatter

Canonical Python formatter, installed on the user’s PATH and named by store path in every editor. A replacement is run under the formatter definition that matches its executable name.

Platforms: NixOS and nix-darwin.

Type: package

Default:

pkgs.ruff

Declared by:

othrys.apps.languages.python.server

Canonical Python language server, installed on the user’s PATH and named by store path in every editor that takes an external server. Null leaves the language without a standalone server, and an editor then configures none.

Platforms: NixOS and nix-darwin.

Type: null or package

Default:

pkgs.basedpyright

Declared by:

othrys.apps.languages.rust.enable

Whether to enable Rust language support (shared toolchain + editor wiring).

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.languages.rust.extraTools

Additional Rust tooling installed alongside the toolchain (linters, build tools, runtimes).

Platforms: NixOS and nix-darwin.

Type: list of package

Default:

[]

Declared by:

othrys.apps.languages.rust.formatter

Canonical Rust formatter, installed on the user’s PATH and named by store path in every editor. A replacement is run under the formatter definition that matches its executable name.

Platforms: NixOS and nix-darwin.

Type: package

Default:

pkgs.rustfmt

Declared by:

othrys.apps.languages.rust.server

Canonical Rust language server, installed on the user’s PATH and named by store path in every editor that takes an external server. Null leaves the language without a standalone server, and an editor then configures none.

Platforms: NixOS and nix-darwin.

Type: null or package

Default:

pkgs.rust-analyzer

Declared by:

othrys.apps.languages.typescript.enable

Whether to enable TypeScript language support (shared toolchain + editor wiring).

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.languages.typescript.extraTools

Additional TypeScript tooling installed alongside the toolchain (linters, build tools, runtimes).

Platforms: NixOS and nix-darwin.

Type: list of package

Default:

[pkgs.typescript]

Declared by:

othrys.apps.languages.typescript.formatter

Canonical TypeScript formatter, installed on the user’s PATH and named by store path in every editor. A replacement is run under the formatter definition that matches its executable name.

Platforms: NixOS and nix-darwin.

Type: package

Default:

pkgs.prettier

Declared by:

othrys.apps.languages.typescript.server

Canonical TypeScript language server, installed on the user’s PATH and named by store path in every editor that takes an external server. Null leaves the language without a standalone server, and an editor then configures none.

Platforms: NixOS and nix-darwin.

Type: null or package

Default:

pkgs.typescript-language-server

Declared by:

othrys.apps.languages.yaml.enable

Whether to enable YAML language support (shared toolchain + editor wiring).

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.languages.yaml.extraTools

Additional YAML tooling installed alongside the toolchain (linters, build tools, runtimes).

Platforms: NixOS and nix-darwin.

Type: list of package

Default:

[]

Declared by:

othrys.apps.languages.yaml.formatter

Canonical YAML formatter, installed on the user’s PATH and named by store path in every editor. A replacement is run under the formatter definition that matches its executable name.

Platforms: NixOS and nix-darwin.

Type: package

Default:

pkgs.prettier

Declared by:

othrys.apps.languages.yaml.server

Canonical YAML language server, installed on the user’s PATH and named by store path in every editor that takes an external server. Null leaves the language without a standalone server, and an editor then configures none.

Platforms: NixOS and nix-darwin.

Type: null or package

Default:

pkgs.yaml-language-server

Declared by:

othrys.apps.localsend.enable

Whether to enable LocalSend file sharing.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.localsend.openFirewall

Open TCP and UDP 53317, which LocalSend uses for peer discovery and transfers. Unlike most othrys firewall toggles this defaults to true, since a LocalSend host that other devices cannot reach does nothing at all. Set it to false on a host that only sends.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.apps.mpv.enable

Whether to enable mpv media player.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.nixvim.enable

Whether to enable NixVim editor.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.nixvim.dashboard.subHeader

Text lines shown under the start-screen logo (e.g. a personalized ASCII wordmark). Empty omits the block.

Platforms: NixOS and nix-darwin.

Type: list of string

Default:

[ ]

Declared by:

othrys.apps.nixvim.extraConfigLua

Additional Lua configuration appended after the curated config.

Platforms: NixOS and nix-darwin.

Type: strings concatenated with “\n”

Default:

""

Declared by:

othrys.apps.nixvim.extraPlugins

Additional vim plugins appended to the curated set.

Platforms: NixOS and nix-darwin.

Type: list of package

Default:

[ ]

Example:

[pkgs.vimPlugins.vim-sleuth]

Declared by:

othrys.apps.nixvim.presets.dashboard

Enable the snacks.dashboard start screen preset.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Declared by:

othrys.apps.nixvim.presets.diagnostics

Enable the Trouble diagnostics UI + todo-comments (<leader>x*) preset.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Declared by:

othrys.apps.nixvim.presets.fileTree

Enable the snacks.explorer file tree (<leader>e) preset.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Declared by:

othrys.apps.nixvim.presets.git

Enable the gitsigns change indicators preset.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Declared by:

othrys.apps.nixvim.presets.notifications

Enable the nvim-notify + dressing UI polish preset.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Declared by:

othrys.apps.nixvim.presets.picker

Enable the snacks.picker fuzzy finding (<leader>f*) preset.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Declared by:

othrys.apps.nixvim.presets.sessions

Enable the persistence.nvim session management (<leader>q*) preset.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Declared by:

othrys.apps.nixvim.presets.statusline

Enable the lualine statusline preset.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Declared by:

othrys.apps.obs.enable

Whether to enable OBS Studio with virtual camera.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.picard.enable

Whether to enable MusicBrainz Picard music tagger.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.plexamp.enable

Whether to enable Plexamp music player.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.remmina.enable

Whether to enable Remmina remote desktop client.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.rustdesk.enable

Whether to enable RustDesk remote desktop client.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.rustdesk.forceX11

Start the client from its desktop entry with GDK_BACKEND=x11, so it runs as an X11 client through XWayland in a Wayland session. For setups where the client behaves better that way than as a native Wayland window.

Only the launcher changes. The rustdesk binary on the PATH is left as it is, so a command such as rustdesk --get-id is unaffected. The session has to provide XWayland, which Hyprland starts itself and niri gets from xwayland-satellite.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.apps.rustdesk.openFirewall

Open TCP 21118, which the client listens on for direct IP access. Only needed when peers connect to this host by address instead of through a rendezvous server, so it stays off by default.

This module installs the client. A rendezvous and relay server is services.rustdesk-server, which othrys does not wrap, and its ports are not opened here.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.apps.senpai.enable

Whether to enable the senpai IRC client.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.senpai.address

Server senpai connects to, as host[:port] or an ircs://, irc:// or irc+insecure:// URL. A bare host uses TLS on port 6697. With othrys.services.soju on the same host, the default is soju’s plaintext listener on loopback.

Platforms: NixOS and nix-darwin.

Type: null or string

Default:

"irc+insecure://127.0.0.1:${port}" when othrys.services.soju.enable is on, null otherwise

Example:

"irc.example.com:6697"

Declared by:

othrys.apps.senpai.nickname

Nickname senpai registers with. senpai also uses it as the SASL user name unless settings.username is set, which is the soju account name when the server is a soju bouncer.

Platforms: NixOS and nix-darwin.

Type: null or string

Default:

null

Example:

"alice"

Declared by:

othrys.apps.senpai.passwordFile

Runtime path to a file holding the SASL password, readable by the primary user. senpai reads its first line through password-cmd each time it connects, so the password stays out of the Nix store and the configuration file.

Platforms: NixOS and nix-darwin.

Type: null or absolute runtime path outside the Nix store, e.g. “/run/secrets/service-password”

Default:

null

Example:

"/run/secrets/senpai-password"

Declared by:

othrys.apps.senpai.settings

Further senpai.scfg directives, merged over the ones this module writes. See senpai(5). password and password-cmd are refused here, since passwordFile covers both without writing the secret into the store.

Platforms: NixOS and nix-darwin.

Type: attribute set of anything

Default:

{ }

Example:

{
  channel = [
    "#nixos"
  ];
  highlight = [
    "alice"
  ];
  username = "alice";
}

Declared by:

othrys.apps.signal.enable

Whether to enable Signal Desktop messenger.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.tmux.enable

Whether to enable tmux terminal multiplexer.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.vesktop.enable

Whether to enable Vesktop Discord client.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.vesktop.settings

Extra Vesktop settings.json values, merged over the module defaults (override any default by re-declaring its key). Any JSON value is accepted.

Platforms: NixOS only.

Type: attribute set of (JSON value)

Default:

{ }

Example:

{ startMinimized = true; }

Declared by:

othrys.apps.vscode.enable

Whether to enable VSCodium editor.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.apps.vscode.extraExtensions

Additional extensions to install.

Platforms: NixOS and nix-darwin.

Type: list of package

Default:

[ ]

Declared by:

othrys.apps.vscode.mutableExtensionsDir

Whether ~/.vscode-oss/extensions is a directory the editor can write. With true, Home Manager’s own default, the extensions named here are linked into it and anything installed by hand from Open VSX sits beside them, persists with .vscode-oss and updates itself. With false the directory is a link into the Nix store, so the extension set is exactly what the configuration names and an install from the editor fails. A host switching to false removes the existing directory first, since Home Manager does not replace a directory it did not create.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Example:

false

Declared by:

othrys.apps.vscode.neovimIntegration.enable

Embed neovim as the editor core via vscode-neovim, using nixvim’s neovim package. Follows nixvim by default; disable for a standalone VSCodium (vscode no longer hard-requires nixvim).

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

config.othrys.apps.nixvim.enable

Declared by:

othrys.apps.vscode.userSettings

Additional user settings to merge.

Platforms: NixOS and nix-darwin.

Type: attribute set of anything

Default:

{ }

Declared by:

othrys.apps.yazi.enable

Whether to enable Yazi terminal file manager.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.desktop.ashell.enable

Whether to enable Ashell status bar.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.desktop.ashell.package

The ashell package the bar’s unit starts and the user’s profile installs.

Platforms: NixOS only.

Type: package

Default: the default package of the ashell flake this library locks

Example:

pkgs.ashell

Declared by:

othrys.desktop.ashell.airplaneButton

Show the airplane mode button in the settings menu.

Platforms: NixOS only.

Type: boolean

Default:

config.othrys.hardware.laptop.enable

Declared by:

othrys.desktop.ashell.animations

Animate the bar. ashell then slides menus and toasts in and out and resizes modules and workspace buttons gradually. Each animation lasts 100 ms and draws a frame per refresh of the output, so it shows stutter on a renderer that misses frames, as Vulkan does on NVIDIA (see renderer). The default is ashell’s own, which is off.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.desktop.ashell.bar.opacity

Opacity of the bar surface. Below 1.0 ashell also asks the compositor to blur what is behind the bar, since its blur setting defaults to auto. The request needs ext-background-effect-v1, and a compositor without it draws no blur.

Platforms: NixOS only.

Type: floating point number

Default:

1.0

Example:

0.92

Declared by:

othrys.desktop.ashell.bar.surface

Where ashell paints the bar background. transparent leaves the bar see-through and paints each module group instead, giving the “islands” look; solid paints the whole bar as one continuous surface. Defaults to ashell’s own default rather than a preference.

Platforms: NixOS only.

Type: one of “transparent”, “solid”

Default:

"transparent"

Example:

"solid"

Declared by:

othrys.desktop.ashell.clipboard.enable

Keep a clipboard history with cliphist, and show the bar button and bind the Mod+Shift+V chord that pick from it through othrys.desktop.dmenuCommand. The history is a plain file under ~/.cache/cliphist holding everything copied, apart from entries a password manager marks as sensitive. It is capped at maxItems, wiped each time the session locks through othrys.desktop.lockCommand and wiped again when the graphical session ends.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.desktop.ashell.clipboard.maxItems

Entries the clipboard history keeps before the oldest is dropped.

Platforms: NixOS only.

Type: positive integer, meaning >0

Default:

100

Declared by:

othrys.desktop.ashell.clockFormat

strftime format of the clock. A format with seconds makes the bar redraw once a second, which a laptop on battery pays for, so the default leaves them out there.

Platforms: NixOS only.

Type: string

Default:

"%a %b %d  %I:%M:%S %p", and without the seconds when
othrys.hardware.laptop.enable is set

Declared by:

othrys.desktop.ashell.indicators

The indicators in the settings group at the right of the bar, in the order given. The default follows the host. A desktop gets the idle inhibitor, audio, the microphone and peripheral batteries. A host with othrys.hardware.laptop.enable also gets its own battery, the screen brightness and the network, and Bluetooth and the power profile when it runs those services.

Battery reads UPower, which the laptop module enables. Network reads NetworkManager or iwd. PowerProfile reads power-profiles-daemon, so it is left out on a host that uses TLP.

Platforms: NixOS only.

Type: list of (one of “IdleInhibitor”, “PowerProfile”, “Audio”, “Microphone”, “Network”, “Vpn”, “Bluetooth”, “Battery”, “PeripheralBattery”, “Brightness”)

Default:

["IdleInhibitor" "PeripheralBattery" "Audio" "Microphone"], and with
othrys.hardware.laptop.enable also "Brightness", "Network" and
"Battery", plus "Bluetooth" and "PowerProfile" when the host runs
bluetooth and power-profiles-daemon

Example:

[
  "Audio"
  "Network"
  "Battery"
]

Declared by:

othrys.desktop.ashell.region

The locale ashell takes its unit system from, which decides the weather’s temperature and wind speed. en_US is imperial, so °F and mph, and nearly every other locale is metric. With null the key is left out and ashell follows LC_MEASUREMENT and then the login locale.

Platforms: NixOS only.

Type: null or string matching the pattern [a-z]{2,3}_[A-Z]{2}

Default:

"en_US"

Example:

"de_DE"

Declared by:

othrys.desktop.ashell.renderer

The graphics API ashell draws with, written to WGPU_BACKEND on the unit. Vulkan is ashell’s default. On the NVIDIA driver it presents frames late, and animations stutter while OpenGL draws them smoothly, so an NVIDIA host gets "gl".

Platforms: NixOS only.

Type: one of “vulkan”, “gl”

Default: "gl" when othrys.hardware.nvidia.enable is set, and "vulkan" otherwise

Declared by:

othrys.desktop.ashell.systemTemperatureUnit

The unit of the sensor temperature in the system information module, which is set apart from region. Hardware temperatures are quoted in °C, so that is the default while the weather follows the region. With null the reading follows the region as well.

Platforms: NixOS only.

Type: null or one of “Celsius”, “Fahrenheit”

Default:

"Celsius"

Declared by:

othrys.desktop.ashell.weatherLocation

Where the clock’s weather is for. A string is a city name, which ashell looks up, and an attribute set of latitude and longitude is a point. The module renders either as the weather_location value ashell reads. The bar fetches the forecast over the network. With null the key is left out, the bar shows no weather and makes no request. The location is identity-shaped, so the consuming host sets it.

Platforms: NixOS only.

Type: null or string matching the pattern [^{}=]+ or (submodule)

Default:

null

Example:

{
  latitude = 40.7128;
  longitude = -74.006;
}

Declared by:

othrys.desktop.compositors.hyprland.enable

Whether to enable Hyprland window manager.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.desktop.compositors.hyprland.package

The Hyprland package, used by the NixOS module and by the Home Manager module alike. The default is built by upstream against its own nixpkgs, which is what hyprland.cachix.org serves. Set portalPackage from the same source, since the portal is built against the compositor it ships with.

Platforms: NixOS only.

Type: package

Default: the hyprland package of the Hyprland flake this library locks

Example:

pkgs.hyprland

Declared by:

othrys.desktop.compositors.hyprland.binds.browser

Key chord for launch the browser; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"$mainMod + F"

Declared by:

othrys.desktop.compositors.hyprland.binds.exit

Key chord for exit Hyprland; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"$mainMod + SHIFT + E"

Declared by:

othrys.desktop.compositors.hyprland.binds.focusDown

Key chord for focus window down; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"$mainMod + J"

Declared by:

othrys.desktop.compositors.hyprland.binds.focusLeft

Key chord for focus window left; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"$mainMod + H"

Declared by:

othrys.desktop.compositors.hyprland.binds.focusRight

Key chord for focus window right; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"$mainMod + L"

Declared by:

othrys.desktop.compositors.hyprland.binds.focusUp

Key chord for focus window up; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"$mainMod + K"

Declared by:

othrys.desktop.compositors.hyprland.binds.fullscreen

Key chord for toggle fullscreen; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"$mainMod + M"

Declared by:

othrys.desktop.compositors.hyprland.binds.killActive

Key chord for close the active window; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"$mainMod + Q"

Declared by:

othrys.desktop.compositors.hyprland.binds.moveToSpecialWorkspace

Key chord for move window to the special workspace; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"$mainMod + SHIFT + S"

Declared by:

othrys.desktop.compositors.hyprland.binds.pin

Key chord for pin window; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"$mainMod + Y"

Declared by:

othrys.desktop.compositors.hyprland.binds.pseudo

Key chord for toggle pseudotiling; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"$mainMod + P"

Declared by:

othrys.desktop.compositors.hyprland.binds.screenshot

Key chord for screenshot the full screen; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"Print"

Declared by:

othrys.desktop.compositors.hyprland.binds.screenshotRegion

Key chord for screenshot a region; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"$mainMod + Print"

Declared by:

othrys.desktop.compositors.hyprland.binds.screenshotRegionToClipboard

Key chord for screenshot a region to the clipboard; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"$mainMod + SHIFT + Print"

Declared by:

othrys.desktop.compositors.hyprland.binds.specialWorkspace

Key chord for toggle the special workspace; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"$mainMod + S"

Declared by:

othrys.desktop.compositors.hyprland.binds.swapDown

Key chord for swap window down; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"$mainMod + SHIFT + J"

Declared by:

othrys.desktop.compositors.hyprland.binds.swapLeft

Key chord for swap window left; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"$mainMod + SHIFT + H"

Declared by:

othrys.desktop.compositors.hyprland.binds.swapRight

Key chord for swap window right; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"$mainMod + SHIFT + L"

Declared by:

othrys.desktop.compositors.hyprland.binds.swapUp

Key chord for swap window up; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"$mainMod + SHIFT + K"

Declared by:

othrys.desktop.compositors.hyprland.binds.terminal

Key chord for launch the terminal; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"$mainMod + Return"

Declared by:

othrys.desktop.compositors.hyprland.binds.toggleFloating

Key chord for toggle floating; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"$mainMod + V"

Declared by:

othrys.desktop.compositors.hyprland.binds.workspaceNext

Key chord for next workspace; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"$mainMod + CTRL + right"

Declared by:

othrys.desktop.compositors.hyprland.binds.workspacePrev

Key chord for previous workspace; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"$mainMod + CTRL + left"

Declared by:

othrys.desktop.compositors.hyprland.browser

Browser command bound to the browser Lua local. Defaults to the shared othrys.desktop.defaultBrowser. Set this for a Hyprland-specific override without changing Niri’s browser shortcut.

Platforms: NixOS only.

Type: string

Default:

config.othrys.desktop.defaultBrowser

Declared by:

othrys.desktop.compositors.hyprland.extraBinds

Extra keybindings (e.g., monitor focus for multi-monitor).

Platforms: NixOS only.

Type: list of (submodule)

Default:

[ ]

Declared by:

othrys.desktop.compositors.hyprland.extraBinds.*.dispatcher

Raw Lua dispatcher expression handed to hl.bind().

Platforms: NixOS only.

Type: string

Example:

"hl.dsp.focus({ monitor = \"DP-1\" })"

Declared by:

othrys.desktop.compositors.hyprland.extraBinds.*.key

Key chord; $mainMod expands to the mainMod option.

Platforms: NixOS only.

Type: string

Example:

"$mainMod + CTRL + 1"

Declared by:

othrys.desktop.compositors.hyprland.extraBinds.*.opts

hl.bind() option table (locked, repeating, mouse, description, …).

Platforms: NixOS only.

Type: attribute set of (Hyprland configuration value.)

Default:

{ }

Declared by:

othrys.desktop.compositors.hyprland.input.keyboardLayout

XKB keyboard layout.

Platforms: NixOS only.

Type: string

Default:

"us"

Declared by:

othrys.desktop.compositors.hyprland.mainMod

Modifier bound to the mainMod Lua local used by all default keybindings.

Platforms: NixOS only.

Type: string

Default:

"SUPER"

Declared by:

othrys.desktop.compositors.hyprland.monitors

hl.monitor() specs. Freeform keys (vrr, transform, mirror, disabled, …) pass through.

Platforms: NixOS only.

Type: list of (open submodule of attribute set of (Hyprland configuration value.))

Default:

[
  {
    output = "";
  }
]

Example:

[
  {
    mode = "1920x1080@360";
    output = "DP-1";
    position = "0x0";
    scale = "1";
  }
  {
    mode = "1920x1080@144";
    output = "HDMI-A-1";
    position = "-1920x0";
    scale = "1";
  }
]

Declared by:

othrys.desktop.compositors.hyprland.monitors.*.mode

Resolution and refresh rate.

Platforms: NixOS only.

Type: string

Default:

"preferred"

Example:

"1920x1080@360"

Declared by:

othrys.desktop.compositors.hyprland.monitors.*.output

Connector name, or “” for the catch-all rule covering every unnamed output.

Platforms: NixOS only.

Type: string

Example:

"DP-1"

Declared by:

othrys.desktop.compositors.hyprland.monitors.*.position

Position in the monitor layout.

Platforms: NixOS only.

Type: string

Default:

"auto"

Example:

"0x0"

Declared by:

othrys.desktop.compositors.hyprland.monitors.*.scale

Scale factor.

Platforms: NixOS only.

Type: string

Default:

"auto"

Example:

"1"

Declared by:

othrys.desktop.compositors.hyprland.numberedWorkspaceBinds

Generate $mainMod+1…0 workspace switch and $mainMod+SHIFT+1…0 move binds.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.desktop.compositors.hyprland.portalPackage

The desktop portal for Hyprland, passed to programs.hyprland.portalPackage.

Platforms: NixOS only.

Type: package

Default: the xdg-desktop-portal-hyprland package of the Hyprland flake this library locks

Example:

pkgs.xdg-desktop-portal-hyprland

Declared by:

othrys.desktop.compositors.hyprland.screenshots.directory

Directory the screenshot binds save into.

Platforms: NixOS only.

Type: string

Default:

"~/Pictures/Screenshots"

Declared by:

othrys.desktop.compositors.hyprland.terminal

Terminal emulator command bound to the terminal Lua local.

Platforms: NixOS only.

Type: string

Default:

"kitty"

Declared by:

othrys.desktop.compositors.hyprland.touchpad.enable

Whether to enable Touchpad support (for laptops).

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.desktop.compositors.hyprland.windowRules.extra

Additional hl.window_rule() specs appended after presets.

Platforms: NixOS only.

Type: list of attribute set of (Hyprland configuration value.)

Default:

[ ]

Declared by:

othrys.desktop.compositors.hyprland.windowRules.presets.floatCommonDialogs

Float utility dialogs (pavucontrol, nm-connection-editor, calculator).

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.desktop.compositors.hyprland.windowRules.presets.jetbrains

Focus/centering fixes for JetBrains IDE popup windows.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.desktop.compositors.hyprland.windowRules.presets.pictureInPicture

Float, pin, and corner-position Picture-in-Picture windows.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.desktop.compositors.hyprland.windowRules.presets.steam

Float Steam dialogs (Friends List, Settings, Steam Guard, …) and tile the main window.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.desktop.compositors.hyprland.windowRules.workspaceAssignments

hl.window_rule() specs pinning applications to workspaces, a per-fleet workflow choice, so no defaults.

Platforms: NixOS only.

Type: list of attribute set of (Hyprland configuration value.)

Default:

[ ]

Example:

[
  {
    match = {
      class = "^(code-url-handler)$";
    };
    workspace = "3 silent";
  }
  {
    match = {
      class = "^(discord)$";
    };
    workspace = "6 silent";
  }
]

Declared by:

othrys.desktop.compositors.hyprland.workspaces

hl.workspace_rule() specs (auto-generated from monitors if empty).

Platforms: NixOS only.

Type: list of (open submodule of attribute set of (Hyprland configuration value.))

Default:

[ ]

Example:

[
  {
    default = true;
    monitor = "DP-1";
    workspace = "1";
  }
]

Declared by:

othrys.desktop.compositors.hyprland.workspaces.*.workspace

Workspace the rule applies to; Hyprland requires a string selector.

Platforms: NixOS only.

Type: string

Example:

"1"

Declared by:

othrys.desktop.compositors.niri.enable

Whether to enable Niri scrollable-tiling Wayland compositor.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.desktop.compositors.niri.binds.browser

Key chord for launch the browser; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"Mod+F"

Declared by:

othrys.desktop.compositors.niri.binds.exit

Key chord for quit niri; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"Mod+Shift+E"

Declared by:

othrys.desktop.compositors.niri.binds.focusDown

Key chord for focus window down; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"Mod+J"

Declared by:

othrys.desktop.compositors.niri.binds.focusLeft

Key chord for focus column left; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"Mod+H"

Declared by:

othrys.desktop.compositors.niri.binds.focusRight

Key chord for focus column right; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"Mod+L"

Declared by:

othrys.desktop.compositors.niri.binds.focusUp

Key chord for focus window up; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"Mod+K"

Declared by:

othrys.desktop.compositors.niri.binds.fullscreen

Key chord for toggle fullscreen; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"Mod+M"

Declared by:

othrys.desktop.compositors.niri.binds.killActive

Key chord for close the active window; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"Mod+Q"

Declared by:

othrys.desktop.compositors.niri.binds.maximizeColumn

Key chord for maximize the column; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"Mod+P"

Declared by:

othrys.desktop.compositors.niri.binds.moveDown

Key chord for move window down; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"Mod+Shift+J"

Declared by:

othrys.desktop.compositors.niri.binds.moveLeft

Key chord for move column left; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"Mod+Shift+H"

Declared by:

othrys.desktop.compositors.niri.binds.moveRight

Key chord for move column right; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"Mod+Shift+L"

Declared by:

othrys.desktop.compositors.niri.binds.moveUp

Key chord for move window up; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"Mod+Shift+K"

Declared by:

othrys.desktop.compositors.niri.binds.overview

Key chord for toggle the overview; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"Mod+S"

Declared by:

othrys.desktop.compositors.niri.binds.screenshot

Key chord for open the interactive screenshot UI; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"Print"

Declared by:

othrys.desktop.compositors.niri.binds.screenshotScreen

Key chord for screenshot the full screen; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"Mod+Print"

Declared by:

othrys.desktop.compositors.niri.binds.screenshotWindow

Key chord for screenshot the focused window; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"Mod+Shift+Print"

Declared by:

othrys.desktop.compositors.niri.binds.terminal

Key chord for launch the terminal; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"Mod+Return"

Declared by:

othrys.desktop.compositors.niri.binds.toggleFloating

Key chord for toggle floating; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"Mod+V"

Declared by:

othrys.desktop.compositors.niri.binds.workspaceNext

Key chord for next workspace; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"Mod+Ctrl+Right"

Declared by:

othrys.desktop.compositors.niri.binds.workspacePrev

Key chord for previous workspace; null disables the bind.

Platforms: NixOS only.

Type: null or string

Default:

"Mod+Ctrl+Left"

Declared by:

othrys.desktop.compositors.niri.browser

Browser the browser bind spawns. Defaults to the shared othrys.desktop.defaultBrowser. Set this for a Niri-specific override without changing Hyprland’s browser shortcut.

Platforms: NixOS only.

Type: string

Default:

config.othrys.desktop.defaultBrowser

Declared by:

othrys.desktop.compositors.niri.extraBinds

Additional binds in programs.niri.settings.binds format, merged over the generated set.

Platforms: NixOS only.

Type: attribute set of attribute set of anything

Default:

{ }

Example:

{
  "Mod+T".action.spawn = "thunderbird";
}

Declared by:

othrys.desktop.compositors.niri.numberedWorkspaceBinds

Generate Mod+1…9 workspace focus and Mod+Shift+1…9 move binds.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.desktop.compositors.niri.outputs

Monitor configuration (programs.niri.settings.outputs). Empty lets niri auto-configure.

Platforms: NixOS only.

Type: attribute set of attribute set of (JSON value)

Default:

{ }

Example:

{
  "DP-1" = {
    mode = {
      width = 1920;
      height = 1080;
      refresh = 144.0;
    };
    position = {
      x = 0;
      y = 0;
    };
  };
}

Declared by:

othrys.desktop.compositors.niri.screenshots.directory

Directory niri’s built-in screenshot UI saves into.

Platforms: NixOS only.

Type: string

Default:

"~/Pictures/Screenshots"

Declared by:

othrys.desktop.compositors.niri.settings

Extra programs.niri.settings, merged over the generated config (use lib.mkForce to override an already-set leaf).

Platforms: NixOS only.

Type: attribute set of anything

Default:

{ }

Declared by:

othrys.desktop.compositors.niri.terminal

Terminal emulator the terminal bind spawns.

Platforms: NixOS only.

Type: string

Default:

"kitty"

Declared by:

othrys.desktop.compositors.niri.touchpad.enable

Whether to enable touchpad tuning (tap-to-click, natural scroll) for laptops.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.desktop.compositors.niri.xwayland.enable

Install xwayland-satellite so X11 applications run (niri detects and manages it automatically).

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.desktop.defaultBrowser

Browser command the browser shortcut of Hyprland and Niri runs, unless a compositor’s own browser option is set. The default follows the browser module that is enabled. firefox is installed by no othrys module, so a host with another browser names it here. This selects a command only and sets no default application for links.

Platforms: NixOS only.

Type: non-empty string

Default: "floorp" when othrys.apps.floorp is enabled, "chromium" when othrys.apps.chromium is, and "firefox" otherwise

Example:

"chromium"

Declared by:

othrys.desktop.dmenuCommand

A menu that reads choices on standard input and prints the chosen line. ashell’s clipboard button and its Mod+Shift+V chord pipe the cliphist history through it.

Platforms: NixOS only.

Type: non-empty (list of string)

Default: vicinae dmenu when othrys.desktop.vicinae is enabled, and ["wofi" "--dmenu"] otherwise

Example:

[
  "fuzzel"
  "--dmenu"
]

Declared by:

othrys.desktop.emojiCommand

The emoji picker as a program and its arguments, run by ashell’s Mod+E chord on Niri and Hyprland. With null the chord is not bound.

Platforms: NixOS only.

Type: null or (non-empty (list of string))

Default: Vicinae’s emoji search when othrys.desktop.vicinae is enabled, and rofimoji through wofi, typing with wtype, otherwise

Example:

[
  "rofimoji"
  "--action"
  "copy"
]

Declared by:

othrys.desktop.fileSearchCommand

A file search, bound by ashell to Mod+Shift+F. With null the chord is not bound.

Platforms: NixOS only.

Type: null or (non-empty (list of string))

Default: Vicinae’s file search when othrys.desktop.vicinae is enabled, and null otherwise

Declared by:

othrys.desktop.graphical

Whether this host runs a graphical session. Set automatically by othrys compositor modules (e.g. compositors.hyprland); set it manually when the host runs a desktop othrys doesn’t manage.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.desktop.idle.enable

Whether to enable staged idle management (dim, lock, screen off, suspend) via hypridle.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.desktop.idle.lockBeforeSleep

Lock the session before the host sleeps, so it does not resume into an open session. With enable set this is the idle daemon’s before-sleep command. Without it, a host that runs one of the othrys compositors still starts hypridle for this alone, with no idle stage, and gets the locker and its PAM service. Set it to false on a host that should resume unlocked, such as one with no keyboard.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.desktop.idle.lockCommand

Command the lock stage runs (and before-sleep lock).

Platforms: NixOS only.

Type: string

Default:

config.othrys.desktop.lockCommand

Declared by:

othrys.desktop.idle.timeouts.dim

Seconds of idle before dimming the backlight (brightnessctl); null disables the stage.

Platforms: NixOS only.

Type: null or (positive integer, meaning >0)

Default:

null

Example:

240

Declared by:

othrys.desktop.idle.timeouts.lock

Seconds of idle before locking; null disables the stage.

Platforms: NixOS only.

Type: null or (positive integer, meaning >0)

Default:

300

Declared by:

othrys.desktop.idle.timeouts.screenOff

Seconds of idle before turning displays off; null disables the stage.

Platforms: NixOS only.

Type: null or (positive integer, meaning >0)

Default:

330

Declared by:

othrys.desktop.idle.timeouts.suspend

Seconds of idle before suspending; null disables the stage (desktops usually want null, laptops a value).

Platforms: NixOS only.

Type: null or (positive integer, meaning >0)

Default:

null

Example:

1800

Declared by:

othrys.desktop.keyring.enable

Whether to run a Secret Service provider in the graphical session, which provider selects. Browsers, mail clients and tray applications store credentials in the Secret Service, and without a provider they fall back to a plain file or ask again on every start. It is on by default on a graphical host. A host that runs another provider, such as KeePassXC or KWallet, turns it off, since two providers compete for the same D-Bus name.

Platforms: NixOS only.

Type: boolean

Default:

config.othrys.desktop.graphical

Example:

false

Declared by:

othrys.desktop.keyring.allowUnencryptedDisk

Accept passwordless on a host that declares no LUKS device in boot.initrd.luks.devices. Every stored secret then sits on the disk in plain files, readable by whoever holds the disk.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.desktop.keyring.pass.directory

The password store, relative to the primary user’s home directory. pass and pass-secret-service are both pointed at it, and it is persisted at mode 0700 under impermanence.

Platforms: NixOS only.

Type: string matching the pattern [A-Za-z0-9.-]+(/[A-Za-z0-9.-]+)*

Default:

".local/share/password-store"

Example:

".password-store"

Declared by:

othrys.desktop.keyring.pass.gpgKey

Key id or fingerprint of the OpenPGP key the password store is encrypted to. Required with provider = "pass". A new store is initialised for it by writing its .gpg-id file, and a store that already has one is left alone. The public key has to be in the user’s GnuPG keyring and trusted, which the module does not arrange.

Platforms: NixOS only.

Type: null or string matching the pattern (0x)?[0-9A-Fa-f]{8,64}

Default:

null

Example:

"0123456789ABCDEF0123456789ABCDEF01234567"

Declared by:

othrys.desktop.keyring.passwordless

Whether to create the gnome-keyring store with no password, so that nothing ever asks to unlock it. It applies to the gnome-keyring provider only.

The store is then plain files under ~/.local/share/keyrings. File permissions protect it from other accounts, and disk encryption protects it from someone holding the powered-off machine. Nothing else does, so any program running as the user and anyone who can read the mounted disk reads every secret. The module refuses the option on a host with no encrypted disk unless allowUnencryptedDisk is set.

The keyring file is written when Home Manager activates and neither login.keyring nor Default_keyring.keyring exists. A keyring that already exists is never replaced, so a host that had a keyring with a password keeps it until its owner removes it.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.desktop.keyring.provider

Which program serves the Secret Service.

gnome-keyring encrypts its store with a password and unlocks it from the login password through PAM. It asks for that password the first time a secret is read unless the login passed one that matches, or passwordless created the store without one. A login with a hardware key alone passes no password, and a touch yields a signature and no secret, so nothing can unlock the store there.

pass runs pass-secret-service for the primary user over a pass password store, where each secret is a file encrypted to the OpenPGP key named in pass.gpgKey. With that key on a hardware token, reading a secret needs the token, its PIN once for each agent session, and a touch on each read when the token’s touch policy for decryption is set to always. gnome-keyring is turned off, since only one provider can own the D-Bus name. Home Manager has to manage the primary user, and the host needs a gpg-agent with a pinentry, which othrys.services.security.yubikey sets up.

Platforms: NixOS only.

Type: one of “gnome-keyring”, “pass”

Default:

"gnome-keyring"

Example:

"pass"

Declared by:

othrys.desktop.launcherCommand

The launcher as a program and its arguments. Niri spawns the list as it is, and Hyprland and the bar’s launcher button run it through the shell with each element quoted.

Platforms: NixOS only.

Type: non-empty (list of string)

Default: ["<vicinae>/bin/vicinae" "toggle"] when othrys.desktop.vicinae is enabled with launcher on, and ["wofi" "--show" "drun"] otherwise

Example:

[
  "fuzzel"
]

Declared by:

othrys.desktop.lockCommand

Command that locks the session; one authority for every lock consumer.

Platforms: NixOS only.

Type: string

Default:

"hyprlock" in a Hyprland session, "swaylock" otherwise

Declared by:

othrys.desktop.login.enable

Whether to enable graphical login manager (greetd).

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.desktop.login.autoLogin

Skip the greeter and start the session as the primary user (tuigreet only). Anyone at the console gets the session, so the host must lock it on idle and before sleep, which othrys.desktop.idle provides, and the module refuses the option without it.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.desktop.login.defaultDesktop

Wayland session the default sessionCommand launches via uwsm start (e.g. hyprland-uwsm.desktop). The hyprland module sets it. Unused when sessionCommand is set explicitly and ignored by cosmic-greeter, which lists the installed sessions instead.

Platforms: NixOS only.

Type: null or string

Default:

null

Declared by:

othrys.desktop.login.greeter

Greeter frontend. Both run on greetd.

Platforms: NixOS only.

Type: one of “tuigreet”, “cosmic-greeter”

Default:

"tuigreet"

Declared by:

othrys.desktop.login.sessionCommand

Command the greeter runs to start the session. The default launches defaultDesktop through uwsm when a compositor registered one, which hyprland does, and niri-session on a niri host. A host running a desktop othrys does not manage sets it directly.

Platforms: NixOS only.

Type: string

Default:

"uwsm start ${defaultDesktop}" when a compositor sets defaultDesktop, "niri-session" on a niri host, otherwise required

Declared by:

othrys.desktop.nightLight.enable

Whether to enable night light (color temperature shifting) via gammastep.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.desktop.nightLight.geoclue.enable

Resolve the location through geoclue when no coordinates are set. This enables services.geoclue2 for the whole host. With the nixpkgs defaults geoclue scans for nearby Wi-Fi networks, sends their hardware addresses to an online location service on every query, and answers any application that asks for the location. It is off by default for that reason, and a host with fixed coordinates does not need it.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.desktop.nightLight.latitude

Latitude for sunrise/sunset calculation. Identity-shaped, set from the consuming host together with longitude.

Platforms: NixOS only.

Type: null or floating point number

Default:

null

Example:

43.7

Declared by:

othrys.desktop.nightLight.longitude

Longitude for sunrise/sunset calculation, set together with latitude.

Platforms: NixOS only.

Type: null or floating point number

Default:

null

Example:

-79.4

Declared by:

othrys.desktop.nightLight.temperature.day

Daytime color temperature in Kelvin.

Platforms: NixOS only.

Type: positive integer, meaning >0

Default:

6500

Declared by:

othrys.desktop.nightLight.temperature.night

Nighttime color temperature in Kelvin.

Platforms: NixOS only.

Type: positive integer, meaning >0

Default:

4000

Declared by:

othrys.desktop.runCommand

A prompt that runs a command typed into it, bound by ashell to Mod+Shift+D. With null the chord is not bound.

Platforms: NixOS only.

Type: null or (non-empty (list of string))

Default: null when othrys.desktop.vicinae is enabled, and ["wofi" "--show" "run"] otherwise

Declared by:

othrys.desktop.uwsm.enable

Whether to enable UWSM Wayland session management.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.desktop.vicinae.enable

Whether to enable the Vicinae launcher.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.desktop.vicinae.package

The vicinae package to use.

Platforms: NixOS only.

Type: package

Default:

pkgs.vicinae

Declared by:

othrys.desktop.vicinae.exchangeRates.hourlyRefresh

Let the calculator fetch currency exchange rates from api.vicinae.com every hour. With false the server still fetches them once when it starts, which no setting of Vicinae prevents, and currency conversions use those rates for the rest of the session.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.desktop.vicinae.extensions

Extensions to install, passed to Home Manager’s programs.vicinae.extensions. Home Manager’s config.lib.vicinae builds them, and that attribute exists only inside the user’s Home Manager configuration.

Platforms: NixOS only.

Type: list of package

Default:

[ ]

Example:

[
  (config.lib.vicinae.mkRayCastExtension {
    name = "gif-search";
    rev = "4d417c2dfd86a5b2bea202d4a7b48d8eb3dbaeb1";
    sha256 = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
  })
]

Declared by:

othrys.desktop.vicinae.inputServer.enable

Run Vicinae’s input helper, which pastes into the focused window and expands snippets. The helper reads every keyboard of the host and injects keys through uinput, so it is installed as a security wrapper with cap_dac_override, which any local account can run, and the uinput kernel module is loaded. With false Vicinae copies to the clipboard where it would paste, and snippets do not expand.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.desktop.vicinae.keybinding

The keybinding preset Vicinae navigates with, one of the three it ships. It is written to the keybinding setting at mkDefault, so settings.keybinding still wins.

Platforms: NixOS only.

Type: one of “default”, “vim”, “emacs”

Default:

"default"

Example:

"vim"

Declared by:

othrys.desktop.vicinae.launcher

Make vicinae toggle the desktop launcher by setting othrys.desktop.launcherCommand. The chord that runs it, Mod+D on Niri and $mainMod + D on Hyprland, and the launcher button of the bar both belong to othrys.desktop.ashell, so a host without the bar binds the command itself. With false the launcher stays wofi. The emoji, clipboard menu, file search and run signals beside it follow Vicinae either way, and a host sets any of them to keep its own.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.desktop.vicinae.settings

Vicinae settings, merged over the curated defaults. Those are written at mkDefault, so a key set here replaces that key alone and its siblings stay. The shape is that of ~/.config/vicinae/settings.json, and vicinae config default prints every key with its upstream value.

The curated defaults turn telemetry off, set favicon_service to "none", set pop_to_root_on_close to true and set input_server.enabled from inputServer.enable. With a palette in othrys.theme both theme names are "othrys", and with othrys.theme.fonts.sansSerif set the interface font is that font. With othrys.theme.opacity set, the launcher window takes the opacity of popups. On a host with Hyprland the layer-shell keyboard mode is "on_demand", since the exclusive default leaves popups inside the window without mouse input there. While ashell keeps its cliphist history, providers.clipboard.preferences.monitoring is false, so Vicinae records no second history that the wipe at lock would miss. On a host without that history Vicinae records the clipboard itself.

The declared settings are merged over the file Vicinae writes from its settings window, key by key, each time the server loads them. A change made in the window to a key declared here has no effect.

Platforms: NixOS only.

Type: JSON value

Default:

{ }

Example:

{
  favicon_service = "twenty";
  search_files_in_root = true;
  launcher_window.layer_shell.keyboard_interactivity = "on_demand";
}

Declared by:

othrys.desktop.wallpaper.enable

Whether to draw othrys.theme.wallpaper with wpaperd, as a user service of the graphical session. It is on by default wherever an othrys compositor runs and a wallpaper is declared. A host that draws its wallpaper with another program turns it off, since two programs would draw over each other.

Platforms: NixOS only.

Type: boolean

Default: true on a graphical host with an othrys compositor module enabled and a wallpaper declared, in othrys.theme.wallpaper.source or for a monitor in othrys.theme.wallpaper.outputs

Example:

false

Declared by:

othrys.hardware.audio.enable

Whether to enable PipeWire audio stack.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.hardware.audio.lowLatency

Halve the PipeWire graph quantum, from the stock 1024 frames to 512. At 48 kHz that is 10.7 ms of buffering per cycle in place of 21.3 ms. A client can still ask for less, down to the PipeWire minimum.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.hardware.audio.usbDuplexProfile

Pin every USB audio device to the output:analog-stereo+input:mono-fallback profile, which suits a headset that WirePlumber otherwise brings up output-only. A device without that profile, such as a multichannel interface, is left with no profile and stays silent, so this is off unless a host asks for it.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.hardware.cpu.vendor

The processor’s vendor, on a host that runs on its own hardware. It turns on microcode updates for that vendor, the redistributable firmware the microcode and most devices load, and the vendor’s KVM module. null writes nothing, which suits a virtual machine, where the hypervisor owns the microcode.

Platforms: NixOS only.

Type: null or one of “intel”, “amd”

Default:

null

Example:

"intel"

Declared by:

othrys.hardware.graphics.shaderCache.enable

Whether to enable persistent, size-tuned GPU shader disk caches.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.hardware.graphics.shaderCache.nvidiaSizeGiB

NVIDIA shader disk cache cap (__GL_SHADER_DISK_CACHE_SIZE). The driver default is 1 GiB, under which it evicts previously compiled shaders, undoing Steam’s shader pre-caching and forcing per-launch recompiles in large Vulkan titles. Size for the shader footprint of the games actually played; eviction is also disabled outright via __GL_SHADER_DISK_CACHE_SKIP_CLEANUP, so a host that stops playing a title reclaims its space by deleting ~/.cache/nvidia.

Platforms: NixOS only.

Type: positive integer, meaning >0

Default:

12

Declared by:

othrys.hardware.laptop.enable

Whether to enable Laptop-specific features.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.hardware.laptop.powerspec-1710.enable

Whether to enable PowerSpec 1710 hardware optimizations.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.hardware.laptop.tlp.enable

Enable TLP power management.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.hardware.laptop.touchpad.enable

Enable touchpad support.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.hardware.ntsync.enable

Load the ntsync driver and give the active session’s user access to /dev/ntsync. Proton 10 and later use it for Windows synchronization primitives when the device is present and writable, which lowers the CPU cost of games that wait on many objects. Any Wine build with ntsync support uses it the same way, so it serves Lutris, Heroic or Bottles as well as Steam. The kernel ships the driver from 6.14 as a module that nothing loads, and no udev rule grants access to it. othrys.apps.gaming.steam turns it on by default on such a kernel.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.hardware.nvidia.enable

Whether to enable NVIDIA GPU.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.hardware.nvidia.package

The driver to install, taken from the host’s kernel packages so its kernel modules match the running kernel.

The stable driver no longer drives every card. The 580 branch is the last that supports Maxwell, Pascal and Volta, and nixpkgs ships it as nvidiaPackages.legacy_580. Older cards have legacy_470 and legacy_390. A driver that does not support the card fails the same way the wrong openModules does, with nvidia-smi unable to communicate with the driver and NVRM lines in dmesg naming the branch the card needs.

Platforms: NixOS only.

Type: package

Default:

config.boot.kernelPackages.nvidiaPackages.stable

Example:

config.boot.kernelPackages.nvidiaPackages.legacy_580

Declared by:

othrys.hardware.nvidia.blacklistIntel

Blacklist the i915 kernel module, so the Intel iGPU never binds and the NVIDIA card is the only display device. Leave it off on a host whose monitors are wired to the motherboard outputs, or that uses the iGPU for Quick Sync or as a second display adapter. PRIME needs the iGPU, so the two together are refused.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.hardware.nvidia.containerToolkit.enable

Run the NVIDIA container toolkit, which writes a CDI specification for the card at boot. Podman reads it with --device nvidia.com/gpu=all, and Docker, rootful or rootless, with --gpus all or the same --device flag. The option was othrys.services.containerization.docker.nvidia.enable before.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.hardware.nvidia.earlyLoad

Put the NVIDIA kernel modules in the initrd, so the NVIDIA card can draw the disk-unlock prompt and the boot splash. With this off the modules are loaded from the root filesystem once it is mounted.

Early loading puts the driver and its firmware in every initrd, and the initrd size decides how many generations a boot partition holds.

A PRIME host defaults to off, since its Intel GPU drives the panel during boot and i915 stays in the initrd for that.

Platforms: NixOS only.

Type: boolean

Default:

!config.othrys.hardware.nvidia.prime.enable

Declared by:

othrys.hardware.nvidia.openModules

Use NVIDIA’s open kernel modules. They support Turing and newer, which is GTX 16 and RTX 20 onward, and NVIDIA recommends them there.

A Maxwell, Pascal or Volta card, which is GTX 900, GTX 10 and Titan V, needs false here together with a package from the 580 branch. With the open modules the kernel module never binds to such a card, and nvidia-smi reports that it cannot communicate with the driver.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.hardware.nvidia.prime.enable

Whether to enable PRIME offload (hybrid GPU).

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.hardware.nvidia.prime.finegrainedPowerManagement

Enable fine-grained power management (experimental).

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.hardware.nvidia.prime.intelBusId

PCI bus ID of the Intel iGPU. lspci | grep VGA prints the address in hexadecimal as 00:02.0, and the option takes it in decimal as PCI:0:2:0. The address differs between boards, and a wrong one boots to a black screen, which is why there is no default.

Platforms: NixOS only.

Type: null or string

Default: none, and PRIME refuses to evaluate until it is set

Example:

"PCI:0:2:0"

Declared by:

othrys.hardware.nvidia.prime.nvidiaBusId

PCI bus ID of the NVIDIA GPU, read from lspci | grep NVIDIA and written the same way as intelBusId.

Platforms: NixOS only.

Type: null or string

Default: none, and PRIME refuses to evaluate until it is set

Example:

"PCI:1:0:0"

Declared by:

othrys.hardware.scanner.enable

Whether to enable scanner support (SANE + network scanner discovery).

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.hardware.scanner.extraBackends

Additional SANE backends (vendor drivers) beyond the airscan default.

Platforms: NixOS only.

Type: list of package

Default:

[ ]

Example:

[pkgs.hplipWithPlugin]

Declared by:

othrys.hardware.smart.enable

Whether to enable disk health monitoring (smartd, auto-detected devices).

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.hardware.smart.extraOptions

Extra options passed to smartd.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Declared by:

othrys.hardware.tablet.enable

Whether to enable pen tablet support through OpenTabletDriver.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.hardware.ups.enable

Whether to enable UPS monitoring and clean shutdown (NUT, standalone).

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.hardware.ups.driver

NUT driver for the attached UPS (usbhid-ups covers most USB models).

Platforms: NixOS only.

Type: string

Default:

"usbhid-ups"

Declared by:

othrys.hardware.ups.passwordFile

Path to a runtime file holding the NUT monitor password (a secrets-provider path). Mandatory, with no default.

Platforms: NixOS only.

Type: absolute runtime path outside the Nix store, e.g. “/run/secrets/service-password”

Example:

config.sops.secrets."ups/password".path

Declared by:

othrys.hardware.ups.port

Driver port (‘auto’ scans USB).

Platforms: NixOS only.

Type: string

Default:

"auto"

Declared by:

othrys.hardware.usb.enable

Whether to enable USB hardware support and utilities.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.hardware.webcam.enable

Whether to enable Webcam support.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.hardware.wireless.bluetooth.enable

Whether to enable Bluetooth support.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.hardware.wireless.bluetooth.experimental

Whether to enable BlueZ experimental features (e.g. device battery reporting); exposes experimental D-Bus interfaces.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.hardware.wireless.bluetooth.powerOnBoot

Power on Bluetooth adapter at boot.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.hardware.wireless.wifi.enable

Whether to enable NetworkManager WiFi networking.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.hardware.wireless.wifi.environmentFile

Path to environment file containing WiFi passwords. Format: WIFI_PSK_<NETWORK_NAME>=password Example: WIFI_PSK_HOME=mysecretpassword

The name is the key under networks in upper case, with every character other than a letter, a digit or an underscore replaced by an underscore, so guest-5g.lan reads WIFI_PSK_GUEST_5G_LAN.

Platforms: NixOS only.

Type: null or absolute runtime path outside the Nix store, e.g. “/run/secrets/service-password”

Default:

null

Example:

config.sops.secrets."networking/wifi/env".path

Declared by:

othrys.hardware.wireless.wifi.networks

Declarative WiFi networks (passwords via environmentFile).

Platforms: NixOS only.

Type: attribute set of (submodule)

Default:

{ }

Example:

{
  home = { ssid = "MyHomeNetwork"; };
  work = { ssid = "WorkNetwork"; autoconnect = false; };
}

Declared by:

othrys.hardware.wireless.wifi.networks.<name>.autoconnect

Automatically connect to this network.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.hardware.wireless.wifi.networks.<name>.ssid

WiFi network SSID.

Platforms: NixOS only.

Type: string

Declared by:

othrys.services.alerting.enable

Whether to enable alert rule evaluation (vmalert) with ntfy delivery.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.alerting.checkRules

Parse the rendered rule file with vmalert -dryRun at build time, so a rule that does not parse fails the build instead of the service. Set to false where vmalert cannot run on the build host.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.alerting.datasourceUrl

Prometheus-compatible datasource rules are evaluated against. Auto-discovered from the enabled othrys metrics store.

Platforms: NixOS only.

Type: null or string

Default:

the local VictoriaMetrics instance when enabled, else the local Prometheus, else null

Declared by:

othrys.services.alerting.listenAddress

Address vmalert’s HTTP interface listens on.

Platforms: NixOS only.

Type: string

Default:

"127.0.0.1"

Declared by:

othrys.services.alerting.notifierUrls

Alertmanager endpoints alerts are sent to. Empty with othrys.services.notify enabled runs the internal alertmanager -> ntfy delivery chain.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Example:

[
  "http://127.0.0.1:9093"
]

Declared by:

othrys.services.alerting.port

Port vmalert’s HTTP interface listens on.

Platforms: NixOS only.

Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default:

8880

Declared by:

othrys.services.alerting.ruleGroups

Additional Prometheus-style rule groups appended to the starter set.

Platforms: NixOS only.

Type: list of attribute set of anything

Default:

[ ]

Declared by:

othrys.services.alerting.starterRules

Include the curated starter rules (instance down, disk space, memory pressure).

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.automount.enable

Whether to enable USB automounting via udiskie.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.automount.notify

Show mount/unmount notifications (needs a notification daemon; off on headless hosts).

Platforms: NixOS only.

Type: boolean

Default:

config.othrys.desktop.graphical

Declared by:

othrys.services.automount.tray

udiskie tray icon mode (needs a StatusNotifier host; off on headless hosts).

Platforms: NixOS only.

Type: one of “auto”, “always”, “never”

Default:

"auto" on graphical hosts (othrys.desktop.graphical), "never" otherwise

Declared by:

othrys.services.containerization.docker.enable

Whether to enable Docker container runtime.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.containerization.docker.autoPrune.enable

Periodically prune unused Docker resources.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.containerization.docker.autoPrune.dates

systemd calendar expression for the prune timer.

Platforms: NixOS only.

Type: string

Default:

"weekly"

Declared by:

othrys.services.containerization.docker.autoPrune.flags

Flags passed to docker system prune. The default deliberately omits --volumes: it deletes anonymous volumes of every container not currently running, which silently destroys data belonging to stopped or on-demand containers. Opt in explicitly if you want it.

Platforms: NixOS only.

Type: list of string

Default:

[
  "--all"
]

Example:

[
  "--all"
  "--volumes"
]

Declared by:

othrys.services.containerization.docker.compose.enable

Install docker-compose.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.containerization.docker.daemon.settings

Additional Docker daemon settings (merged with defaults).

Platforms: NixOS only.

Type: attribute set of anything

Default:

{ }

Example:

{
  dns = [ "1.1.1.1" "8.8.8.8" ];
  registry-mirrors = [ "https://mirror.gcr.io" ];
}

Declared by:

othrys.services.containerization.docker.extraPackages

Additional packages to install alongside Docker.

Platforms: NixOS only.

Type: list of package

Default:

[ ]

Example:

with pkgs; [ dive ]

Declared by:

othrys.services.containerization.docker.rootless.enable

Run Docker in rootless mode for improved security.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.containerization.docker.rootless.setSocketVariable

Set DOCKER_HOST environment variable for rootless mode.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.containerization.k3s.enable

Whether to enable k3s lightweight Kubernetes.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.containerization.k3s.package

Override the k3s package (e.g. to pin a Kubernetes version).

Platforms: NixOS only.

Type: null or package

Default:

pkgs.k3s

Declared by:

othrys.services.containerization.k3s.clusterInit

Initialize a highly-available cluster with an embedded etcd datastore. Set on the first server only; further servers join it via serverAddr.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.services.containerization.k3s.disable

Bundled components to disable (e.g. to bring your own ingress/LB).

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Example:

[
  "traefik"
  "servicelb"
]

Declared by:

othrys.services.containerization.k3s.disableAgent

Server only: run the control plane without scheduling workloads on this node.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.services.containerization.k3s.extraFlags

Extra flags appended to the k3s command, after the ones hardenedFlags contributes.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Example:

[
  "--flannel-backend=wireguard-native"
]

Declared by:

othrys.services.containerization.k3s.extraKubeletConfig

Extra kubelet configuration (forwarded to services.k3s.extraKubeletConfig).

Platforms: NixOS only.

Type: attribute set of anything

Default:

{ }

Declared by:

othrys.services.containerization.k3s.gracefulShutdown

Drain pods gracefully when the node shuts down.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.containerization.k3s.hardenedFlags

Server only. Start k3s with --write-kubeconfig-mode=0600 and --secrets-encryption, ahead of extraFlags. The first keeps the admin kubeconfig readable by root alone, and the second encrypts Secrets at rest in the datastore.

k3s requires every server of a cluster to agree on secrets encryption, so the servers of one cluster take the same value here. A cluster created without encryption sets this to false and turns encryption on with k3s secrets-encrypt, as the k3s documentation describes. An agent takes neither flag.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.containerization.k3s.installTools

Install cluster tooling (kubectl, helm, k9s) system-wide.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.containerization.k3s.manifests

Auto-deploying manifests (forwarded to services.k3s.manifests). Server only.

Platforms: NixOS only.

Type: attribute set of anything

Default:

{ }

Declared by:

othrys.services.containerization.k3s.nodeLabels

Labels to register the kubelet with.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Example:

[
  "node-role=worker"
]

Declared by:

othrys.services.containerization.k3s.nodeName

Override the node name (defaults to the hostname).

Platforms: NixOS only.

Type: null or string

Default:

null

Declared by:

othrys.services.containerization.k3s.nodeTaints

Taints to register the kubelet with.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Example:

[
  "CriticalAddonsOnly=true:NoExecute"
]

Declared by:

othrys.services.containerization.k3s.openFirewall

Open the k3s ports in the firewall on every interface: the kubelet (10250) and the flannel tunnel (UDP 8472) on every node, the API (6443) on a server, and embedded etcd (2379, 2380) on a server that initialises or joins a cluster. Off by default like every other network module; a single node reached over loopback or a private network needs none of them open.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.services.containerization.k3s.role

Whether this node runs the control plane (server) or joins as a worker (agent).

Platforms: NixOS only.

Type: one of “server”, “agent”

Default:

"server"

Declared by:

othrys.services.containerization.k3s.serverAddr

URL of the server to join. Required for agents and for additional HA servers.

Platforms: NixOS only.

Type: string

Default:

""

Example:

"https://10.0.0.1:6443"

Declared by:

othrys.services.containerization.k3s.tokenFile

Path to the cluster join token, a secrets-provider path. Required on an agent and on a server that joins another, since both authenticate to the cluster with it. A single server that initialises its own cluster needs none.

Platforms: NixOS only.

Type: null or absolute runtime path outside the Nix store, e.g. “/run/secrets/service-password”

Default:

null

Example:

config.sops.secrets."k3s/token".path

Declared by:

othrys.services.containerization.podman.enable

Whether to enable Podman container runtime.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.containerization.podman.enableDns

Enable DNS for default network (required for podman-compose).

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.containerization.podman.autoPrune.enable

Periodically prune unused Podman resources.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.containerization.podman.autoPrune.dates

systemd calendar expression for the prune timer.

Platforms: NixOS only.

Type: string

Default:

"weekly"

Declared by:

othrys.services.containerization.podman.autoPrune.flags

Flags passed to podman system prune. --all removes every image without a running container; hosts that pre-pull pinned images should override this.

Platforms: NixOS only.

Type: list of string

Default:

[
  "--all"
]

Declared by:

othrys.services.containerization.podman.compose.enable

Install podman-compose for docker-compose compatibility.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.containerization.podman.distrobox.enable

Enable Distrobox for running containers as if they were native apps.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.services.containerization.podman.dockerCompat

Create docker alias pointing to podman for drop-in replacement.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.containerization.podman.extraPackages

Additional packages to install alongside Podman.

Platforms: NixOS only.

Type: list of package

Default:

[ ]

Example:

with pkgs; [ skopeo buildah ]

Declared by:

othrys.services.ddns.enable

Whether to enable dynamic DNS updates (inadyn).

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.ddns.credentialsFile

Path to a runtime file included into the provider block, since inadyn.conf syntax, typically a single password = <token> line. A secrets-provider path; never inline the token. Must be set when this module is enabled.

inadyn opens the file at run time as its own user inside a private user namespace, so a file that is root-owned and mode 0400 is unreadable and the service fails at its first update. With sops-nix set owner = "inadyn" on the secret.

Platforms: NixOS only.

Type: null or absolute runtime path outside the Nix store, e.g. “/run/secrets/service-password”

Default: none, and an assertion rejects an unset value once the module is enabled

Example:

config.sops.secrets."ddns/credentials".path

Declared by:

othrys.services.ddns.extraSettings

Extra per-provider inadyn settings merged into the provider block.

Platforms: NixOS only.

Type: attribute set of anything

Default:

{ }

Declared by:

othrys.services.ddns.hostnames

Hostnames to keep updated. Identity-shaped, set from the consuming host. Must be non-empty when this module is enabled.

Platforms: NixOS only.

Type: list of string

Default: none, and an assertion rejects an empty list once the module is enabled

Example:

[
  "home.example.com"
]

Declared by:

othrys.services.ddns.provider

DDNS provider, one of the names inadyn registers (inadyn -L lists them). Either the full name, such as default@cloudflare.com or ipv6@dynv6.com, or the service name after the @, which inadyn resolves to the first plugin that carries it. Must be set when this module is enabled.

Platforms: NixOS only.

Type: null or one of “default@3322.org”, “dyndns@3322.org”, “ipv6@3322.org”, “default@all-inkl.com”, “ipv6@all-inkl.com”, “default@changeip.com”, “default@cloudflare.com”, “ipv6@cloudflare.com”, “default@cloudxns.net”, “default@core-networks.de”, “ipv6@core-networks.de”, “default@ddnss.de”, “default@desec.io”, “ipv6@desec.io”, “default@dhis.org”, “ipv6@dhis.org”, “default@dnsever.com”, “default@dnsexit.com”, “ipv6@dnsexit.com”, “default@dnshome.de”, “ipv6@dnshome.de”, “default@dnsmadeeasy.com”, “default@dnsmax.com”, “default@dnsomatic.com”, “ipv6@dnsomatic.com”, “default@dnspod.cn”, “ipv6@dnspod.cn”, “default@do.de”, “ipv6@do.de”, “default@domaindiscount24.com”, “default@domains.google.com”, “ipv6@domains.google.com”, “default@domene.shop”, “default@domopoli”, “ipv6@domopoli”, “default@duckdns.org”, “ipv6@duckdns.org”, “default@duiadns.net”, “ipv6@duiadns.net”, “default@dy.fi”, “ipv6@dy.fi”, “default@dyndns.it”, “default@dyndns.org”, “default@dynu.com”, “ipv6@dynu.com”, “default@dynv6.com”, “ipv4@dynv6.com”, “ipv6@dynv6.com”, “default@easydns.com”, “ipv6@easydns.com”, “default@freedns.afraid.org”, “ipv6@freedns.afraid.org”, “default@freemyip.com”, “default@gira.de”, “ipv6@gira.de”, “default@goip.de”, “ipv6@goip.de”, “default@he.net”, “dyndns@he.net”, “ipv6@he.net”, “ipv6tb@he.net”, “default@infomaniak.com”, “ipv6@infomaniak.com”, “default@inwx.com”, “ipv6@inwx.com”, “default@ipv4.dynv6.com”, “default@ipv64.net”, “ipv4@ipv64.net”, “ipv6@ipv64.net”, “default@itsdns.de”, “ipv6@itsdns.de”, “default@joker.com”, “default@loopia.com”, “default@moniker.com”, “default@mydns.jp”, “ipv6@mydns.jp”, “default@myonlineportal.net”, “ipv6@myonlineportal.net”, “default@namecheap.com”, “default@no-ip.com”, “ipv6@no-ip.com”, “default@noip.com”, “ipv6@noip.com”, “ipv4@nsupdate.info”, “ipv6@nsupdate.info”, “default@opendns.com”, “ipv6@opendns.com”, “default@oray.com”, “default@ovh.com”, “ipv6@ovh.com”, “default@pdd.yandex.ru”, “default@porkbun.com”, “ipv6@porkbun.com”, “default@regfish.de”, “ipv6@regfish.de”, “default@schokokeks.org”, “ipv6@schokokeks.org”, “default@selfhost.de”, “ipv6@selfhost.de”, “default@simply.com”, “default@sitelutions.com”, “default@spdyn.de”, “ipv6@spdyn.de”, “default@strato.com”, “ipv6@strato.com”, “default@thatip.com”, “default@tunnelbroker.net”, “default@twodns.de”, “default@udmedia.de”, “ipv6@udmedia.de”, “default@variomedia.de”, “ipv6@variomedia.de”, “default@zoneedit.com”, “ipv6@zoneedit.com”, “3322.org”, “all-inkl.com”, “changeip.com”, “cloudflare.com”, “cloudxns.net”, “core-networks.de”, “ddnss.de”, “desec.io”, “dhis.org”, “dnsever.com”, “dnsexit.com”, “dnshome.de”, “dnsmadeeasy.com”, “dnsmax.com”, “dnsomatic.com”, “dnspod.cn”, “do.de”, “domaindiscount24.com”, “domains.google.com”, “domene.shop”, “domopoli”, “duckdns.org”, “duiadns.net”, “dy.fi”, “dyndns.it”, “dyndns.org”, “dynu.com”, “dynv6.com”, “easydns.com”, “freedns.afraid.org”, “freemyip.com”, “gira.de”, “goip.de”, “he.net”, “infomaniak.com”, “inwx.com”, “ipv4.dynv6.com”, “ipv64.net”, “itsdns.de”, “joker.com”, “loopia.com”, “moniker.com”, “mydns.jp”, “myonlineportal.net”, “namecheap.com”, “no-ip.com”, “noip.com”, “nsupdate.info”, “opendns.com”, “oray.com”, “ovh.com”, “pdd.yandex.ru”, “porkbun.com”, “regfish.de”, “schokokeks.org”, “selfhost.de”, “simply.com”, “sitelutions.com”, “spdyn.de”, “strato.com”, “thatip.com”, “tunnelbroker.net”, “twodns.de”, “udmedia.de”, “variomedia.de”, “zoneedit.com”

Default: none, and an assertion rejects an unset value once the module is enabled

Example:

"cloudflare.com"

Declared by:

othrys.services.ddns.username

Provider username/account (for Cloudflare: the zone name). Null for token-only providers.

Platforms: NixOS only.

Type: null or string

Default:

null

Example:

"example.com"

Declared by:

othrys.services.docs.enable

Whether to enable MdBook documentation server.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.docs.package

The built documentation package to serve. Required when this module is imported on its own through nixosModules.docs, where no flake source is injected to build the default from.

Platforms: NixOS only.

Type: package

Default: the MdBook built from docs/ of the flake source that nixosModules.default injects

Declared by:

othrys.services.docs.desktopEntry

Create a desktop entry to open docs in the default browser.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.services.docs.interface

Interface to bind to (use 0.0.0.0 for all interfaces).

Platforms: NixOS only.

Type: string

Default:

"127.0.0.1"

Declared by:

othrys.services.docs.openFirewall

Open firewall port for documentation server.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.services.docs.port

Port to serve documentation on.

Platforms: NixOS only.

Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default:

3000

Declared by:

othrys.services.firewall.enable

Whether to enable Base firewall.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.grafana.enable

Whether to enable Grafana dashboards (datasources auto-provisioned from enabled othrys metrics stores).

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.grafana.adminPasswordFile

Path to a runtime file holding the admin password (a secrets-provider path). Grafana reads it as the grafana user, so with sops-nix set owner = "grafana" on the secret. The value is applied when the database is first created and ignored afterwards, and the password of an existing instance changes with grafana cli admin reset-admin-password. Null keeps the stock admin/admin credential, which the module warns about on loopback and refuses when listenAddress is not loopback or openFirewall is on.

Platforms: NixOS only.

Type: null or absolute runtime path outside the Nix store, e.g. “/run/secrets/service-password”

Default:

null

Example:

config.sops.secrets."grafana/admin-password".path

Declared by:

othrys.services.grafana.dashboardsDir

Directory of dashboard JSON files to provision (fleet-provided).

Platforms: NixOS only.

Type: null or absolute path

Default:

null

Declared by:

othrys.services.grafana.extraDatasources

Datasources provisioned in addition to the auto-detected othrys metrics stores.

Platforms: NixOS only.

Type: list of attribute set of anything

Default:

[ ]

Declared by:

othrys.services.grafana.listenAddress

Address Grafana listens on. Loopback by default, expecting a reverse proxy in front.

Platforms: NixOS only.

Type: string

Default:

"127.0.0.1"

Declared by:

othrys.services.grafana.openFirewall

Open port in the firewall. Leave off when a reverse proxy fronts Grafana (the default).

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.services.grafana.port

Port Grafana listens on (3001, since the docs server claims 3000 by default).

Platforms: NixOS only.

Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default:

3001

Declared by:

othrys.services.grafana.rootUrl

Public URL Grafana is reached at, written to server.root_url. Redirects, OIDC callbacks and the secure flag on the session cookie follow it, so it must be set when listenAddress is not loopback. Null keeps Grafana’s default, which names localhost.

Platforms: NixOS only.

Type: null or string

Default:

null

Example:

"https://grafana.example.com/"

Declared by:

othrys.services.grafana.secretKeyFile

Path to a runtime file holding Grafana’s secret_key (encrypts stored credentials, so generate a random string). Must be set when this module is enabled, since upstream no longer ships a default. Use a secrets-provider path, readable by the grafana user, which with sops-nix is owner = "grafana" on the secret.

Platforms: NixOS only.

Type: null or absolute runtime path outside the Nix store, e.g. “/run/secrets/service-password”

Default: none, and an assertion rejects an unset value once the module is enabled

Example:

config.sops.secrets."grafana/secret-key".path

Declared by:

othrys.services.headscale.enable

Whether to enable Headscale self-hosted Tailscale control server.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.headscale.address

Address Headscale listens on. Defaults to loopback, expecting a reverse proxy in front; set to 0.0.0.0 to expose it directly.

Platforms: NixOS only.

Type: string

Default:

"127.0.0.1"

Declared by:

othrys.services.headscale.baseDomain

MagicDNS base domain (settings.dns.base_domain), an FQDN without a trailing dot. Must differ from the serverUrl host. Null leaves it unset.

Platforms: NixOS only.

Type: null or string

Default:

null

Example:

"tailnet.example.com"

Declared by:

othrys.services.headscale.magicDns

Enable MagicDNS (settings.dns.magic_dns).

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.headscale.nameservers

Global nameservers pushed to clients (settings.dns.nameservers.global).

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Example:

[
  "1.1.1.1"
  "9.9.9.9"
]

Declared by:

othrys.services.headscale.oidc.enable

Whether to enable OIDC authentication for node registration.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.headscale.oidc.allowedDomains

Email domains whose accounts may register (settings.oidc.allowed_domains).

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Example:

[
  "example.com"
]

Declared by:

othrys.services.headscale.oidc.allowedGroups

Groups whose members may register (settings.oidc.allowed_groups). The issuer has to put a groups claim in the token for this to apply.

With none of the three lists set, every account the issuer knows can register a node, and the module warns about it.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Example:

[
  "tailnet"
]

Declared by:

othrys.services.headscale.oidc.allowedUsers

Accounts that may register (settings.oidc.allowed_users).

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Example:

[
  "alice@example.com"
]

Declared by:

othrys.services.headscale.oidc.clientId

OIDC client ID (settings.oidc.client_id).

Platforms: NixOS only.

Type: string

Default:

""

Example:

"headscale"

Declared by:

othrys.services.headscale.oidc.clientSecretFile

Path to a runtime file holding the OIDC client secret (a secrets-provider path). Never inline the secret. Headscale reads it as its own user, so the file must be readable by headscale; with sops-nix that is owner = "headscale" on the secret.

Platforms: NixOS only.

Type: null or absolute runtime path outside the Nix store, e.g. “/run/secrets/service-password”

Default:

null

Example:

config.sops.secrets."headscale/oidc-secret".path

Declared by:

othrys.services.headscale.oidc.issuer

OIDC issuer URL (settings.oidc.issuer).

Platforms: NixOS only.

Type: string

Default:

""

Example:

"https://auth.example.com/realms/main"

Declared by:

othrys.services.headscale.openFirewall

Open port in the firewall. Leave off when a reverse proxy fronts Headscale (the default).

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.services.headscale.policy

The tailnet ACL policy (settings.policy), as a path to a HuJSON file or as an attribute set written out as JSON. Null leaves Headscale on its default, which lets every node reach every other node. The policy is not a secret and lives in the store.

Platforms: NixOS only.

Type: null or absolute path or attribute set of anything

Default:

null

Example:

{
  acls = [
    {
      action = "accept";
      src = ["group:admins"];
      dst = ["*:*"];
    }
  ];
  groups."group:admins" = ["alice@example.com"];
}

Declared by:

othrys.services.headscale.port

Port Headscale listens on.

Platforms: NixOS only.

Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default:

8080

Declared by:

othrys.services.headscale.serverUrl

Public URL clients register against (settings.server_url). Mandatory, with no default. Must resolve to this host (typically via a TLS-terminating reverse proxy) and must differ from the MagicDNS baseDomain.

Platforms: NixOS only.

Type: string

Example:

"https://headscale.example.com"

Declared by:

othrys.services.headscale.settings

Extra config.yaml settings, deep-merged over (and overriding) the generated config.

Platforms: NixOS only.

Type: attribute set of anything

Default:

{ }

Declared by:

othrys.services.headscale.ui.enable

Whether to enable Headplane web UI for this Headscale instance (server-side API-key custody, OIDC SSO).

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.headscale.ui.package

Headplane package override. Null uses pkgs.headplane (the nixpkgs default for services.headplane).

Platforms: NixOS only.

Type: null or package

Default:

pkgs.headplane

Declared by:

othrys.services.headscale.ui.apiKeyFile

Path to a runtime file holding a Headscale API key (from headscale apikeys create). Written to Headplane’s headscale.api_key_path, which it uses server-side to mint OIDC sessions, so it is required when ui.oidc is enabled. Without it, Headplane authenticates via its in-browser API-key login and this is unused. Use a secrets-provider path readable by the headscale user, which Headplane runs as.

Platforms: NixOS only.

Type: null or absolute runtime path outside the Nix store, e.g. “/run/secrets/service-password”

Default:

null

Example:

config.sops.secrets."headscale/headplane-apikey".path

Declared by:

othrys.services.headscale.ui.configPath

Path to the Headscale config.yaml Headplane reads. Null uses the NixOS-generated config file for this instance.

Platforms: NixOS only.

Type: null or absolute path

Default:

config.services.headscale.configFile

Declared by:

othrys.services.headscale.ui.cookieSecretFile

Path to a runtime file holding the cookie-signing secret (a random string). Required when the UI is enabled. Use a secrets-provider path readable by the headscale user.

Platforms: NixOS only.

Type: null or absolute runtime path outside the Nix store, e.g. “/run/secrets/service-password”

Default:

null

Example:

config.sops.secrets."headscale/headplane-cookie".path

Declared by:

othrys.services.headscale.ui.host

Address Headplane listens on. Loopback by default, expecting a reverse proxy in front.

Platforms: NixOS only.

Type: string

Default:

"127.0.0.1"

Declared by:

othrys.services.headscale.ui.oidc.enable

Whether to enable OIDC SSO for Headplane admin login.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.headscale.ui.oidc.clientId

OIDC client ID for Headplane.

Platforms: NixOS only.

Type: string

Default:

""

Example:

"headplane"

Declared by:

othrys.services.headscale.ui.oidc.clientSecretFile

Path to a runtime file holding Headplane’s OIDC client secret. Never inline the secret. Readable by the headscale user.

Platforms: NixOS only.

Type: null or absolute runtime path outside the Nix store, e.g. “/run/secrets/service-password”

Default:

null

Example:

config.sops.secrets."headscale/headplane-oidc".path

Declared by:

othrys.services.headscale.ui.oidc.disableApiKeyLogin

Disable the fallback API-key login form once OIDC is configured, enforcing SSO-only admin access.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.headscale.ui.oidc.issuer

OIDC issuer URL for Headplane login.

Platforms: NixOS only.

Type: string

Default:

""

Example:

"https://auth.example.com/realms/main"

Declared by:

othrys.services.headscale.ui.openFirewall

Open the UI port in the firewall. Leave off when a reverse proxy fronts Headplane (the default).

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.services.headscale.ui.port

Port Headplane listens on.

Platforms: NixOS only.

Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default:

3000

Declared by:

othrys.services.headscale.ui.settings

Extra Headplane settings, deep-merged over (and overriding) the generated config.

Platforms: NixOS only.

Type: attribute set of anything

Default:

{ }

Declared by:

othrys.services.kea.enable

Whether to enable Kea DHCP server.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.kea.dhcp4.enable

Enable the Kea DHCP4 server.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.kea.dhcp4.interfaces

Interfaces the DHCP4 server listens on.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Example:

[
  "br-lan"
]

Declared by:

othrys.services.kea.dhcp4.leasesFile

memfile lease database path.

Platforms: NixOS only.

Type: string

Default:

"/var/lib/kea/dhcp4.leases"

Declared by:

othrys.services.kea.dhcp4.settings

Kea DHCP4 settings, deep-merged over the defaults (put subnet4/reservations/option-data here).

Platforms: NixOS only.

Type: attribute set of anything

Default:

{ }

Example:

{
  subnet4 = [
    {
      id = 1;
      subnet = "10.0.0.0/24";
      pools = [{ pool = "10.0.0.100 - 10.0.0.240"; }];
      option-data = [{ name = "routers"; data = "10.0.0.1"; }];
    }
  ];
}

Declared by:

othrys.services.kea.dhcp6.enable

Enable the Kea DHCP6 server.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.services.kea.dhcp6.interfaces

Interfaces the DHCP6 server listens on.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Example:

[
  "br-lan"
]

Declared by:

othrys.services.kea.dhcp6.leasesFile

memfile lease database path.

Platforms: NixOS only.

Type: string

Default:

"/var/lib/kea/dhcp6.leases"

Declared by:

othrys.services.kea.dhcp6.settings

Kea DHCP6 settings, deep-merged over the defaults (put subnet6/reservations/option-data here).

Platforms: NixOS only.

Type: attribute set of anything

Default:

{ }

Example:

{
  subnet6 = [
    {
      id = 1;
      subnet = "10.0.0.0/24";
      pools = [{ pool = "10.0.0.100 - 10.0.0.240"; }];
      option-data = [{ name = "routers"; data = "10.0.0.1"; }];
    }
  ];
}

Declared by:

othrys.services.monitoring.enable

Whether to enable Prometheus monitoring.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.monitoring.extraCollectors

Node-exporter collectors enabled in addition to the curated base set.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Example:

[
  "ethtool"
  "smartctl"
]

Declared by:

othrys.services.monitoring.listenAddress

Address Prometheus and the node exporter bind to.

Platforms: NixOS only.

Type: string

Default:

"127.0.0.1"

Declared by:

othrys.services.monitoring.nodePort

Node exporter port.

Platforms: NixOS only.

Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default:

9100

Declared by:

othrys.services.monitoring.openFirewall

Open firewall ports for external Grafana access.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.services.monitoring.port

Prometheus server port.

Platforms: NixOS only.

Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default:

9090

Declared by:

othrys.services.monitoring.retentionTime

Prometheus metric retention (dedicated monitoring hosts usually want more than the 15d default).

Platforms: NixOS only.

Type: string

Default:

"15d"

Example:

"90d"

Declared by:

othrys.services.mosh.enable

Whether to enable Mosh server and client.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.mosh.openFirewall

Open UDP 60000 to 61000, the range mosh-server picks its port from, in the NixOS firewall. A host that only connects out to other hosts turns it off. nix-darwin’s firewall takes no port list, so it is unread there.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Declared by:

othrys.services.mounts.cifs.enable

Whether to enable CIFS/SMB network share mounts.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.mounts.cifs.shares

CIFS/SMB shares to mount, keyed by mount name.

Platforms: NixOS only.

Type: attribute set of (submodule)

Default:

{ }

Declared by:

othrys.services.mounts.cifs.shares.<name>.credentialsFile

Path to a runtime credentials file (username=x\npassword=y). Use a sops template path, not a /nix/store path.

Platforms: NixOS only.

Type: absolute runtime path outside the Nix store, e.g. “/run/secrets/service-password”

Declared by:

othrys.services.mounts.cifs.shares.<name>.gid

Group of the mounted files, as a gid or a group name. Null takes the primary user’s group on a host that manages its account. A host without one has to set this.

Platforms: NixOS only.

Type: null or unsigned integer, meaning >=0, or string

Default: the primary user’s group on a host with othrys.system.users.enable

Example:

100

Declared by:

othrys.services.mounts.cifs.shares.<name>.mountPoint

Local mount point.

Platforms: NixOS only.

Type: string

Default:

"/mnt/shares/<name>"

Declared by:

othrys.services.mounts.cifs.shares.<name>.remotePath

Remote CIFS/SMB path.

Platforms: NixOS only.

Type: string

Example:

"//192.168.1.100/media"

Declared by:

othrys.services.mounts.cifs.shares.<name>.seal

Encrypt the session with seal. Authentication protects the password and nothing else, so without it file contents cross the network in the clear. Encryption needs SMB 3.0 or newer on both ends, and a share on an older dialect sets this to false.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.mounts.cifs.shares.<name>.sec

Authentication mode, one of the values mount.cifs accepts for sec=. The i variants also sign every packet.

Platforms: NixOS only.

Type: one of “none”, “krb5”, “krb5i”, “ntlmv2”, “ntlmv2i”, “ntlmssp”, “ntlmsspi”

Default:

"ntlmssp"

Declared by:

othrys.services.mounts.cifs.shares.<name>.uid

Owner of the mounted files, as a uid or a user name. Null takes the primary user of a host that manages its account. A host without one has to set this.

Platforms: NixOS only.

Type: null or unsigned integer, meaning >=0, or string

Default: the primary user, othrys.system.user.name, on a host with othrys.system.users.enable

Example:

1000

Declared by:

othrys.services.mounts.cifs.shares.<name>.vers

SMB protocol version passed as vers=. The default pins the newest dialect, so a server cannot negotiate the mount down to an older one. default hands the choice back to the kernel, and an old NAS needs the dialect it speaks named here.

Platforms: NixOS only.

Type: one of “1.0”, “2.0”, “2.1”, “3”, “3.0”, “3.0.2”, “3.1.1”, “default”

Default:

"3.1.1"

Example:

"3.0"

Declared by:

othrys.services.mounts.disks.enable

Whether to enable additional disk mounts.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.mounts.disks.devices

Disk mount configurations.

Platforms: NixOS only.

Type: attribute set of (submodule)

Default:

{ }

Example:

{
  data = {
    device = "/dev/disk/by-uuid/0123456789ABCDEF";
    mountPoint = "/mnt/data";
    fsType = "ntfs-3g";
  };
  backup = {
    device = "/dev/disk/by-uuid/abcd1234-5678-90ab-cdef";
    mountPoint = "/mnt/backup";
    fsType = "ext4";
  };
}

Declared by:

othrys.services.mounts.disks.devices.<name>.allowDev

Mount without nodev, so device nodes on the disk are usable. Off for every filesystem type.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.services.mounts.disks.devices.<name>.allowSuid

Mount without nosuid, so setuid and setgid bits on the disk take effect. Off for every filesystem type, since a data disk has no use for them.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.services.mounts.disks.devices.<name>.automount

Auto-mount on access with nofail.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.mounts.disks.devices.<name>.device

Device path (use /dev/disk/by-uuid/ or /dev/disk/by-partuuid/).

Platforms: NixOS only.

Type: string

Example:

"/dev/disk/by-uuid/0123456789ABCDEF"

Declared by:

othrys.services.mounts.disks.devices.<name>.deviceTimeout

Timeout in seconds if device not found.

Platforms: NixOS only.

Type: signed integer

Default:

10

Declared by:

othrys.services.mounts.disks.devices.<name>.dmask

Directory permission mask in octal, three or four digits (NTFS and vfat).

Platforms: NixOS only.

Type: string matching the pattern [0-7]{3,4}

Default:

"022"

Declared by:

othrys.services.mounts.disks.devices.<name>.extraOptions

Extra mount options.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Declared by:

othrys.services.mounts.disks.devices.<name>.fmask

File permission mask in octal, three or four digits (NTFS and vfat).

Platforms: NixOS only.

Type: string matching the pattern [0-7]{3,4}

Default:

"133"

Declared by:

othrys.services.mounts.disks.devices.<name>.fsType

Filesystem type (ntfs-3g = FUSE driver, ntfs3 = in-kernel driver).

Platforms: NixOS only.

Type: one of “ntfs-3g”, “ntfs3”, “ext4”, “btrfs”, “xfs”, “vfat”

Default:

"ext4"

Declared by:

othrys.services.mounts.disks.devices.<name>.gid

Group ID that owns the files (NTFS and vfat).

Platforms: NixOS only.

Type: unsigned integer, meaning >=0

Default:

100

Declared by:

othrys.services.mounts.disks.devices.<name>.mountPoint

Mount point path.

Platforms: NixOS only.

Type: string

Example:

"/mnt/data"

Declared by:

othrys.services.mounts.disks.devices.<name>.uid

User ID that owns the files (NTFS and vfat, which store no owner).

Platforms: NixOS only.

Type: unsigned integer, meaning >=0

Default:

1000

Declared by:

othrys.services.notify.enable

Whether to enable host notification dispatch (othrys-notify + systemd failure hooks).

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.notify.tokenFile

Path to a runtime file holding an ntfy access token (a secrets-provider path). Null sends unauthenticated.

Platforms: NixOS only.

Type: null or absolute runtime path outside the Nix store, e.g. “/run/secrets/service-password”

Default:

null

Example:

config.sops.secrets."notify/token".path

Declared by:

othrys.services.notify.topic

ntfy topic notifications are published to (on public instances the topic is effectively a password, so use tokenFile or a private server).

Platforms: NixOS only.

Type: string

Default:

"alerts"

Declared by:

othrys.services.notify.url

ntfy endpoint notifications are published to. Follows the local ntfy server by default; point it at a fleet-central instance otherwise.

Platforms: NixOS only.

Type: null or string

Default:

the local othrys.services.ntfy instance when enabled, else null

Example:

"https://ntfy.example.com"

Declared by:

othrys.services.ntfy.enable

Whether to enable self-hosted ntfy push-notification server.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.ntfy.access

Access rules, one user:topic:permission entry each (auth-access), where the user is a name from users or * for anonymous clients.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Example:

[
  "fleet:alerts:write-only"
  "alice:*:read-write"
]

Declared by:

othrys.services.ntfy.baseUrl

Base URL (upstream requires it; used for attachments and web-app links). The loopback default serves internal notify hosts. Set the public URL when a reverse proxy fronts it.

Platforms: NixOS only.

Type: string

Default:

"http://${listenAddress}:${port}"

Example:

"https://ntfy.example.com"

Declared by:

othrys.services.ntfy.defaultAccess

What a client with no credentials may do on any topic (auth-default-access). ntfy’s own default is read-write, which lets anyone who reaches the port publish to and read every topic, the alert topic included. Access is granted through users, access and tokensFile, or through ntfy user and ntfy access on the host.

Platforms: NixOS only.

Type: one of “deny-all”, “read-only”, “write-only”, “read-write”

Default:

"deny-all"

Declared by:

othrys.services.ntfy.listenAddress

Address ntfy listens on. Loopback by default, expecting a reverse proxy in front; set to 0.0.0.0 to expose it directly.

Platforms: NixOS only.

Type: string

Default:

"127.0.0.1"

Declared by:

othrys.services.ntfy.openFirewall

Open port in the firewall. Leave off when a reverse proxy fronts ntfy (the default).

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.services.ntfy.port

Port ntfy listens on.

Platforms: NixOS only.

Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default:

2586

Declared by:

othrys.services.ntfy.settings

Extra services.ntfy-sh settings (server.yml), deep-merged over (and overriding) the generated config.

Platforms: NixOS only.

Type: attribute set of anything

Default:

{ }

Declared by:

othrys.services.ntfy.tokensFile

Environment file holding NTFY_AUTH_TOKENS=user:tk_token:label,..., which provisions access tokens for the accounts in users. A token is a credential, so it comes from a secrets provider and never from the store. The publishers then set othrys.services.notify.tokenFile to a file holding their token.

Platforms: NixOS only.

Type: null or absolute runtime path outside the Nix store, e.g. “/run/secrets/service-password”

Default:

null

Example:

config.sops.secrets."ntfy/tokens".path

Declared by:

othrys.services.ntfy.users

Accounts to provision, one name:bcrypt-hash:role entry each (auth-users). The hash comes from ntfy user hash, and the role is user or admin. A hash is not a password, so it may sit in the store; the password itself never goes here.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Example:

[
  "alice:$2a$10$examplehash:user"
  "fleet:$2a$10$otherhash:user"
]

Declared by:

othrys.services.printing.enable

Whether to enable CUPS printing service.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.printing.avahi

Whether to enable Avahi for network printer discovery.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.printing.listenAddresses

Addresses and ports CUPS listens on (services.printing.listenAddresses). The default is loopback only. A print server reached from other hosts lists an address here and also sets services.printing.allowFrom, which stays at upstream’s localhost.

Platforms: NixOS only.

Type: list of string

Default:

[
  "localhost:631"
]

Example:

[
  "*:631"
]

Declared by:

othrys.services.printing.openFirewall

Open the TCP ports named in listenAddresses in the firewall (services.printing.openFirewall).

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.services.restic.enable

Whether to enable Restic backups.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.restic.backups

Named restic backups (maps to services.restic.backups.<name>).

Platforms: NixOS only.

Type: attribute set of (submodule)

Default:

{ }

Declared by:

othrys.services.restic.backups.<name>.backupCleanupCommand

Script run after the backup (e.g. resume the service quiesced in backupPrepareCommand).

Platforms: NixOS only.

Type: null or strings concatenated with “\n”

Default:

null

Declared by:

othrys.services.restic.backups.<name>.backupPrepareCommand

Script run before the backup (e.g. quiesce a service or dump a database for a consistent snapshot).

Platforms: NixOS only.

Type: null or strings concatenated with “\n”

Default:

null

Declared by:

othrys.services.restic.backups.<name>.checkOpts

Options for restic check (when runCheck is set). Plain check verifies repository structure only, and never reads pack contents, so in-place bit corruption passes silently. The default reads a random 5% of the pack data on each run, which costs a twentieth of the repository in backend reads. Raise the percentage, or use --read-data to read everything on every run, where reads are cheap. An empty list gives the structure-only check.

Platforms: NixOS only.

Type: list of string

Default:

[
  "--read-data-subset=5%"
]

Example:

[
  "--read-data"
]

Declared by:

othrys.services.restic.backups.<name>.environmentFile

systemd EnvironmentFile with backend credentials (e.g. AWS_/B2_ keys). Use a secrets-provider path.

Platforms: NixOS only.

Type: null or absolute runtime path outside the Nix store, e.g. “/run/secrets/service-password”

Default:

null

Example:

config.sops.secrets."backup/env".path

Declared by:

othrys.services.restic.backups.<name>.exclude

Restic exclude patterns.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Declared by:

othrys.services.restic.backups.<name>.extraBackupArgs

Extra arguments passed to restic backup.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Declared by:

othrys.services.restic.backups.<name>.initialize

Create the repository on first run when none exists at the location. Where several hosts back up into one repository, leave this on for one host and set it to false on the rest. Two first runs can otherwise both initialise the repository, and a host pointed at the wrong location creates an empty repository there instead of failing.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.restic.backups.<name>.passwordFile

Path to a runtime file containing the repository password (a secrets-provider path). Omit only if the password is supplied via environmentFile (RESTIC_PASSWORD).

Platforms: NixOS only.

Type: null or absolute runtime path outside the Nix store, e.g. “/run/secrets/service-password”

Default:

null

Example:

config.sops.secrets."backup/repo-password".path

Declared by:

othrys.services.restic.backups.<name>.paths

Paths to back up. Empty makes a prune-only job.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Example:

[
  "/var/lib/something"
  "/home/alice/Documents"
]

Declared by:

othrys.services.restic.backups.<name>.pruneOpts

Retention options for restic forget --prune, run after each backup.

Platforms: NixOS only.

Type: list of string

Default:

[
  "--keep-daily 7"
  "--keep-weekly 4"
  "--keep-monthly 6"
]

Declared by:

othrys.services.restic.backups.<name>.rcloneConfigFile

Path to an rclone config file for rclone backends. Use a secrets-provider path.

Platforms: NixOS only.

Type: null or absolute runtime path outside the Nix store, e.g. “/run/secrets/service-password”

Default:

null

Declared by:

othrys.services.restic.backups.<name>.repository

Repository location for non-sensitive targets (e.g. a local path). The value is written to the unit file in the store, so a URL that carries a credential is rejected. That covers user:password@ under any scheme, anything before the @ of an http or https URL, a lone token included, and a query parameter named for a token, a key, a secret, a password or a signature. Use repositoryFile when the URL carries a host or credentials.

Platforms: NixOS only.

Type: null or string

Default:

null

Example:

"/mnt/backup/restic"

Declared by:

othrys.services.restic.backups.<name>.repositoryFile

Path to a runtime file containing the repository URL (a secrets-provider path). Mutually exclusive with repository.

Platforms: NixOS only.

Type: null or absolute runtime path outside the Nix store, e.g. “/run/secrets/service-password”

Default:

null

Example:

config.sops.secrets."backup/repo-url".path

Declared by:

othrys.services.restic.backups.<name>.runCheck

Run restic check after the backup, so a damaged repository fails the backup unit instead of being found at restore time. The check reads from the repository backend on every run. Set this to false where that read is not wanted.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.restic.backups.<name>.timerConfig

systemd.timer schedule; null runs only when started manually.

Platforms: NixOS only.

Type: null or (attribute set of anything)

Default:

{
  OnCalendar = "daily";
  Persistent = true;
  RandomizedDelaySec = "1h";
}

Declared by:

othrys.services.restic.backups.<name>.user

User the backup runs as (must be able to read paths).

Platforms: NixOS only.

Type: string

Default:

"root"

Declared by:

othrys.services.router.enable

Whether to enable L3 router firewall + NAT (nftables).

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.router.extraForwardRules

Raw nftables rules appended to the filter forward chain (e.g. port forwards, inter-VLAN policy).

Platforms: NixOS only.

Type: strings concatenated with “\n”

Default:

""

Declared by:

othrys.services.router.extraInputRules

Raw nftables rules appended to the filter input chain. A port that a module opens through openFirewall needs nothing here, since the firewall’s port lists are rendered into this chain for every interface but the WAN. A port that must reach the WAN is opened with networking.firewall.interfaces.<wan>.allowedTCPPorts or the UDP list, which this chain renders for that interface alone.

Platforms: NixOS only.

Type: strings concatenated with “\n”

Default:

""

Declared by:

othrys.services.router.extraNat

Raw nftables rules appended to the NAT postrouting chain, after the masquerade, for source rewrites such as an exception to it. A dnat verb is invalid in this chain: nft --check accepts it, the kernel refuses the whole ruleset at load, and the router comes up with no firewall at all. Port forwards go in portForwards or extraPrerouting.

Platforms: NixOS only.

Type: strings concatenated with “\n”

Default:

""

Example:

"oifname \"enp1s0f0\" ip saddr 10.0.0.42 snat to 203.0.113.42"

Declared by:

othrys.services.router.extraPrerouting

Raw nftables rules appended to the NAT prerouting chain, where a dnat or redirect verb belongs. A connection rewritten here still needs its accept in extraForwardRules unless portForwards made it.

Platforms: NixOS only.

Type: strings concatenated with “\n”

Default:

""

Declared by:

othrys.services.router.forwarding

Enable IP forwarding and rp_filter anti-spoofing sysctls.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.router.ipv6

Forward IPv6 as well. There is no NATv6, so the LAN needs a routed prefix of its own. This module forwards and filters IPv6 and configures no addressing. Requesting a delegated prefix from the uplink and sending router advertisements on the LAN are the host’s job, through systemd-networkd’s DHCPPrefixDelegation and IPv6SendRA, or through dhcpcd and radvd.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.router.lan.interfaces

Trusted (LAN) interfaces: their input is accepted and they are forwarded to the WAN.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Example:

[
  "br-lan"
]

Declared by:

othrys.services.router.logDrops

Log every packet the input and forward chains drop, through the kernel log with a router input drop: or router forward drop: prefix. The counters on those rules are always on; this adds the packets themselves, which is useful while bringing a host up and noisy on a WAN link afterwards.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.services.router.nat.enable

IPv4 masquerade (SNAT) for traffic leaving the WAN interface.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.router.portForwards

Connections arriving on the WAN interface that are sent on to a LAN host. Each entry renders the dnat rule in the NAT prerouting chain and the accept in the forward chain that the rewritten connection needs, through Suricata when the IPS hook is on.

Platforms: NixOS only.

Type: list of (submodule)

Default:

[ ]

Example:

[
  {
    port = 25565;
    destination = "10.0.0.42";
  }
]

Declared by:

othrys.services.router.portForwards.*.destination

LAN address the connections are sent to.

Platforms: NixOS only.

Type: string

Example:

"10.0.0.42"

Declared by:

othrys.services.router.portForwards.*.destinationPort

Port on the destination. The WAN port when null.

Platforms: NixOS only.

Type: null or 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default:

null

Declared by:

othrys.services.router.portForwards.*.port

Port on the WAN interface the connections arrive on.

Platforms: NixOS only.

Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Declared by:

othrys.services.router.portForwards.*.protocol

Transport protocol of the forwarded connections.

Platforms: NixOS only.

Type: one of “tcp”, “udp”

Default:

"tcp"

Declared by:

othrys.services.router.suricata.enable

Send forwarded traffic to Suricata via NFQUEUE. Pair with othrys.services.suricata (mode = “nfqueue”).

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.services.router.suricata.queues

NFQUEUE count; must match othrys.services.suricata.nfqueue.queues.

Platforms: NixOS only.

Type: positive integer, meaning >0

Default:

1

Declared by:

othrys.services.router.wan.interface

Uplink (WAN) interface. Input is default-drop except established/related; LAN is masqueraded out this interface.

Platforms: NixOS only.

Type: string

Example:

"enp1s0f0"

Declared by:

othrys.services.scrutiny.enable

Whether to enable the Scrutiny hub: web UI + InfluxDB, and a collector for this host’s own disks.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.scrutiny.collector.enable

Run the smartctl collector on this host. Follows enable (a hub watches its own disks); set alone on satellite hosts, with endpoint.

Platforms: NixOS only.

Type: boolean

Default:

config.othrys.services.scrutiny.enable

Declared by:

othrys.services.scrutiny.collector.endpoint

Scrutiny API base URL the collector reports to. Null means the local web UI, which suits a hub, and a satellite must set it. The value is written to the collector’s unit and configuration in the store, so a URL with a user, password or token before the host is refused. A hub behind a proxy that asks for credentials is reached through environmentFile.

Platforms: NixOS only.

Type: null or string

Default:

null

Example:

"https://scrutiny.example.com"

Declared by:

othrys.services.scrutiny.collector.environmentFile

Environment file read by the collector unit, a secrets-provider path. A line COLLECTOR_API_ENDPOINT=https://user:password@scrutiny.example.com in it replaces endpoint at run time, which is how the collector authenticates to a hub behind a proxy without the credentials entering the store. Upstream types the endpoint as a plain string and has no file form for it.

Platforms: NixOS only.

Type: null or absolute runtime path outside the Nix store, e.g. “/run/secrets/service-password”

Default:

null

Example:

config.sops.secrets."scrutiny/collector-env".path

Declared by:

othrys.services.scrutiny.collector.hostId

Label the web UI groups this host’s disks under.

Platforms: NixOS only.

Type: string

Default:

config.networking.hostName

Declared by:

othrys.services.scrutiny.collector.schedule

systemd calendar expression for collector runs. Daily is enough, since smartd covers the fast alarms and this feeds the trend history.

Platforms: NixOS only.

Type: string

Default:

"daily"

Declared by:

othrys.services.scrutiny.listenAddress

Address the web UI listens on. Loopback by default, expecting a reverse proxy in front; satellites then report in through the proxied URL.

Platforms: NixOS only.

Type: string

Default:

"127.0.0.1"

Declared by:

othrys.services.scrutiny.notifyUrls

shoutrrr URLs Scrutiny pushes device-failure notifications to. Follows the fleet notify channel by default. A token-authenticated notify endpoint is NOT auto-wired (the token would end up world-readable in the rendered config). Pass an explicit URL instead. Nothing is wired either when notify points at the ntfy server on this host with no token while that server denies anonymous clients, since every push would be refused.

Platforms: NixOS only.

Type: list of string

Default:

the othrys.services.notify endpoint as a shoutrrr ntfy URL, when notify is enabled, unauthenticated and not refused by the ntfy server on this host; else []

Example:

[
  "ntfy://ntfy.example.com/alerts"
]

Declared by:

othrys.services.scrutiny.openFirewall

Open port in the firewall. Leave off when a reverse proxy fronts the web UI (the default).

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.services.scrutiny.port

Port the web UI (and collector API) listens on.

Platforms: NixOS only.

Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default:

8080

Declared by:

othrys.services.security.crowdsec.enable

Whether to enable CrowdSec security engine + firewall bouncer.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.security.crowdsec.acquisitions

Log sources CrowdSec parses (see the CrowdSec data-sources docs). Setting this replaces the curated default outright, including the sshd journal source, so list every source the host should watch rather than only the ones being added. Traefik’s access log is added beside this list on a host with othrys.services.traefik, and the module turns that log on. Tailscale SSH has no CrowdSec parser and is not watched.

Platforms: NixOS only.

Type: list of attribute set of anything

Default:

[
  {
    journalctl_filter = [
      "_SYSTEMD_UNIT=sshd.service"
    ];
    labels = {
      type = "syslog";
    };
    source = "journalctl";
  }
]

Declared by:

othrys.services.security.crowdsec.autoUpdate

Run cscli hub update daily.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.security.crowdsec.collections

CrowdSec hub collections to install (bundle parsers + scenarios).

Platforms: NixOS only.

Type: list of string

Default:

[
  "crowdsecurity/linux"
  "crowdsecurity/sshd"
]

Declared by:

othrys.services.security.crowdsec.firewallBouncer.enable

Enable the nftables firewall bouncer that enforces CrowdSec decisions (auto-registered with the local engine).

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.security.crowdsec.openFirewall

Open the CrowdSec LAPI port in the firewall.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.services.security.fail2ban.enable

Whether to enable Fail2ban intrusion prevention.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.security.fail2ban.bantime

Base ban duration, escalated by bantime-increment up to 48h. A number of seconds, or a number with one of the suffixes s, m, h, d, w, mo and y.

Platforms: NixOS only.

Type: string matching the pattern [0-9]+(s|m|h|d|w|mo|y)?

Default:

"10m"

Example:

"1h"

Declared by:

othrys.services.security.fail2ban.ignoreIP

Addresses exempt from banning. Loopback only by default. Tailnet peers are NOT exempt, since exempting the Tailscale CGNAT range (100.64.0.0/10) would let every tailnet node bypass fail2ban (shared Headscale, third-party devices). Hosts that fully trust their tailnet can add it explicitly.

Platforms: NixOS only.

Type: list of string

Default:

[
  "127.0.0.1/8"
  "::1"
]

Example:

[
  "127.0.0.1/8"
  "::1"
  "100.64.0.0/10"
]

Declared by:

othrys.services.security.fail2ban.maxretry

Failures before a ban (applies to the base config and the sshd jail).

Platforms: NixOS only.

Type: positive integer, meaning >0

Default:

5

Declared by:

othrys.services.security.polkit.enable

Whether to enable Polkit privilege escalation.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.security.sudo.enable

Whether to enable Sudo configuration.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.security.sudo.execWheelOnly

Only allow users in the wheel group to run sudo at all.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.security.sudo.timestampTimeout

Minutes a successful authentication is reused for before sudo asks again (Defaults timestamp_timeout). sudo’s own default is 5, and 0 asks every time.

Platforms: NixOS only.

Type: unsigned integer, meaning >=0

Default:

5

Declared by:

othrys.services.security.yubikey.enable

Whether to enable YubiKey authentication (U2F + GPG + SSH).

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.security.yubikey.pinentryPackage

Pinentry program for GPG/SSH PIN prompts. A graphical pinentry on a headless host cannot render, silently breaking every GPG and SSH authentication, which is why the terminal fallback is the default.

Platforms: NixOS and nix-darwin.

Type: package

Default:

pkgs.pinentry-curses unless othrys.desktop.graphical, and on a graphical host pkgs.pinentry_mac on nix-darwin and pkgs.pinentry-qt otherwise

Declared by:

othrys.services.security.yubikey.sshKeygrips

GPG keygrips to authorize for SSH authentication.

Platforms: NixOS and nix-darwin.

Type: list of string

Default:

[ ]

Example:

[
  "0123456789ABCDEF0123456789ABCDEF01234567"
]

Declared by:

othrys.services.security.yubikey.u2fExemptUsers

Normal users that have no entry in u2fMappings on purpose. With u2fRequirePassword on, the module refuses a host where a normal user has no mapping, since that account fails every service in u2fServices. An account that never authenticates through them, such as one reached over SSH alone, is named here and the check passes it over. It stays locked out of those services.

Platforms: NixOS and nix-darwin.

Type: list of string

Default:

[ ]

Example:

[
  "deploy"
]

Declared by:

othrys.services.security.yubikey.u2fMappings

U2F key mappings per user. Generated with: pamu2fcfg -n -o pam://yubi

That command prints each credential with a leading colon, which joins it to a user’s line in a mappings file. Leave the colon out here, since each list entry is one credential.

Keys are stored in /nix/store (read-only) for security. Any non-empty mapping turns pam_u2f on for the services in u2fServices. NixOS only, and a darwin host refuses a mapping, since nix-darwin manages the sudo service alone and othrys puts no pam_u2f line there.

Platforms: NixOS and nix-darwin.

Type: attribute set of list of string matching the pattern [A-Za-z0-9+/=.-]+(,[A-Za-z0-9+/=.-]*)+

Default:

{ }

Example:

{
  alice = [
    "<KeyHandle1>,<UserKey1>,<CoseType1>,<Options1>"
    "<KeyHandle2>,<UserKey2>,<CoseType2>,<Options2>"
  ];
}

Declared by:

othrys.services.security.yubikey.u2fOrigin

U2F origin for cross-machine portability.

Platforms: NixOS and nix-darwin.

Type: string

Default:

"pam://yubi"

Declared by:

othrys.services.security.yubikey.u2fRequirePassword

Require a password in addition to the touch, rather than accepting the touch alone.

With this on, pam_u2f is inserted as required in every service in u2fServices, so both the password and the touch must succeed and the key is a second factor. The control applies to the whole PAM service and not to one user, so every account that authenticates through one of those services needs an enrolled credential, and an account with none is locked out of them while other accounts keep working. Enrol and test a key for every such account before turning it on. The module refuses the setting while any normal user of the host has no mapping, apart from the accounts named in u2fExemptUsers.

With this off, pam_u2f is sufficient: a touch on an enrolled key satisfies the service with no password, which is authentication by possession alone. Whoever holds the token holds root, and a token left in a laptop is a token in someone’s hand. An account with no mapping falls through to its password, so nothing is locked out.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Declared by:

othrys.services.security.yubikey.u2fServices

PAM services that take the YubiKey, by their names under security.pam.services. Console login, sudo, the greeter, polkit prompts and the two screen lockers by default. su and sshd are left out on purpose: su is how root is reached from a console with no key at hand, and sshd authenticates with keys of its own. A service listed here that the host does not run is harmless.

Platforms: NixOS and nix-darwin.

Type: list of string

Default:

[
  "login"
  "sudo"
  "greetd"
  "polkit-1"
  "hyprlock"
  "swaylock"
]

Declared by:

othrys.services.soju.enable

Whether to enable the soju IRC bouncer.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.soju.extraConfig

Lines appended to soju.conf. See soju(1) for the directives.

Platforms: NixOS only.

Type: strings concatenated with “\n”

Default:

""

Example:

"max-user-networks 5"

Declared by:

othrys.services.soju.hostName

Name soju gives itself as an IRC server, in the prefix of its own messages and in its welcome replies. soju warns at start when the name has no dot. It is not compared with the TLS name a client uses.

Platforms: NixOS only.

Type: string

Default:

traefik.domain when traefik.enable is on, config.networking.hostName otherwise

Example:

"irc.example.com"

Declared by:

othrys.services.soju.messageStore

Where soju keeps message history. db writes it to the same sqlite database that holds the accounts, soju.db in the state directory, and gives soju’s message search. fs writes plain-text logs under logs in the state directory, and memory keeps nothing across a restart. Upstream NixOS defaults to fs, while soju itself defaults to db.

Platforms: NixOS only.

Type: one of “db”, “fs”, “memory”

Default:

"db"

Declared by:

othrys.services.soju.openFirewall

Open port 6697 for soju’s own TLS listener. It has an effect only with tls.certificateFile set. The plaintext listener is never opened, and the port Traefik listens on is opened by othrys.services.traefik.tcpRouters.soju.openFirewall.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.services.soju.port

Port of the plaintext listener on loopback, irc+insecure://, which a client on the same host uses and which Traefik forwards to. It is never opened in the firewall.

Platforms: NixOS only.

Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default:

6667

Declared by:

othrys.services.soju.tls.certificateFile

Runtime path to the certificate chain for soju’s own TLS listener, ircs:// on port 6697. Set together with tls.keyFile. The file is loaded into the service as a credential, so it can stay owned by root. A renewed certificate is read at the next restart of soju.service.

Platforms: NixOS only.

Type: null or absolute runtime path outside the Nix store, e.g. “/run/secrets/service-password”

Default:

null

Example:

"/var/lib/acme/irc.example.com/fullchain.pem"

Declared by:

othrys.services.soju.tls.keyFile

Runtime path to the private key for tls.certificateFile.

Platforms: NixOS only.

Type: null or absolute runtime path outside the Nix store, e.g. “/run/secrets/service-password”

Default:

null

Example:

"/var/lib/acme/irc.example.com/key.pem"

Declared by:

othrys.services.soju.traefik.enable

Whether to enable a Traefik TCP router for soju. Traefik terminates TLS on port 6697 with its ACME resolver and forwards to soju over [::1] with a PROXY protocol header, so soju sees each client’s own address .

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.soju.traefik.domain

Name clients connect to. Traefik requests its certificate and routes on it, and a client that sends no such name is not routed. It becomes the default of hostName.

Platforms: NixOS only.

Type: null or string

Default:

null

Example:

"irc.example.com"

Declared by:

othrys.services.ssh.enable

Whether to enable SSH server and client.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.ssh.includeForgeKeys

Add the published ed25519 host keys of github.com, gitlab.com, codeberg.org and git.sr.ht to the known hosts. They are public keys of public services. Turn this off to manage those entries yourself.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Declared by:

othrys.services.ssh.knownHosts

Host keys every user on this host trusts, passed to programs.ssh.knownHosts and written to /etc/ssh/ssh_known_hosts. A host listed here is verified against the listed key on the first connection, so nobody is asked to accept it on trust. Each entry needs one of publicKey and publicKeyFile. Host names and keys are identity and belong in the host configuration.

Platforms: NixOS and nix-darwin.

Type: attribute set of (submodule)

Default:

{ }

Example:

{
  "nas.example.com".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA...";
}

Declared by:

othrys.services.ssh.knownHosts.<name>.certAuthority

The key is a certificate authority that signs host keys.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Declared by:

othrys.services.ssh.knownHosts.<name>.extraHostNames

Further names and addresses beside the attribute name. Ignored when hostNames is set.

Platforms: NixOS and nix-darwin.

Type: list of string

Default:

[ ]

Declared by:

othrys.services.ssh.knownHosts.<name>.hostNames

Names and addresses the key is trusted for. The attribute name is included by default.

Platforms: NixOS and nix-darwin.

Type: list of string

Default:

[ <name> ] ++ extraHostNames

Declared by:

othrys.services.ssh.knownHosts.<name>.publicKey

The key type and the key, without any host name.

Platforms: NixOS and nix-darwin.

Type: null or string

Default:

null

Example:

"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA..."

Declared by:

othrys.services.ssh.knownHosts.<name>.publicKeyFile

A file holding one public key, read at build time and copied into the Nix store.

Platforms: NixOS and nix-darwin.

Type: null or absolute path

Default:

null

Declared by:

othrys.services.ssh.server.enable

Enable the inbound SSH server. Opt-in per host so exposure is explicit. On nix-darwin it turns on the macOS Remote Login service.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Declared by:

othrys.services.ssh.server.openFirewall

Open the server’s ports in the firewall. Unlike most othrys firewall toggles this defaults to true, since enabling the server is already the explicit decision to expose it. Turn it off on a host that opens the port on named interfaces only. The firewall nix-darwin manages filters by application and takes no port list, so the option has no effect there.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Declared by:

othrys.services.ssh.server.ports

Ports the server listens on, passed to services.openssh.ports as a default. The firewall and the fail2ban sshd jail both read the upstream option, so a host that sets services.openssh.ports itself gets the same result. On nix-darwin the server is the macOS Remote Login service, which launchd starts on port 22 alone, so any other list is refused there.

Platforms: NixOS and nix-darwin.

Type: list of 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default:

[
  22
]

Example:

[
  2222
]

Declared by:

othrys.services.ssh.settings

Additional SSH client config blocks, merged with module defaults and written to ~/.ssh/config. Keys are literal OpenSSH directive names. A directive set under "*" replaces the module’s default for that directive and leaves the others in place.

The defaults keep StrictHostKeyChecking ask, so an unknown host still prompts and is never accepted silently. Once knownHosts lists every host this machine connects to, set "*".StrictHostKeyChecking = "yes", which refuses any host that is not listed and ends trust on first use.

Platforms: NixOS and nix-darwin.

Type: attribute set of attribute set of anything

Default:

{ }

Example:

{
  "myhost" = {
    Hostname = "myhost.example.com";
    User = "admin";
  };
}

Declared by:

othrys.services.suricata.enable

Whether to enable Suricata IDS/IPS.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.suricata.enabledSources

suricata-update rule sources to enable (sources needing a secret code are unsupported upstream).

Platforms: NixOS only.

Type: list of string

Default:

[
  "et/open"
]

Declared by:

othrys.services.suricata.package

Suricata package to use.

Platforms: NixOS only.

Type: null or package

Default:

pkgs.suricata

Declared by:

othrys.services.suricata.afPacket.clusterId

af-packet cluster-id (must be unique per Suricata instance on the host).

Platforms: NixOS only.

Type: positive integer, meaning >0

Default:

99

Declared by:

othrys.services.suricata.afPacket.clusterType

af-packet cluster-type, which decides how packets are spread over the capture threads.

Platforms: NixOS only.

Type: one of “cluster_flow”, “cluster_cpu”, “cluster_qm”, “cluster_ebpf”

Default:

"cluster_flow"

Declared by:

othrys.services.suricata.afPacket.copyInterface

Peer interface for the af-packet IPS bridge (posture = ips).

Platforms: NixOS only.

Type: null or string

Default:

null

Example:

"enp1s0f1"

Declared by:

othrys.services.suricata.afPacket.interface

Capture interface for af-packet mode.

Platforms: NixOS only.

Type: null or string

Default:

null

Example:

"enp1s0f0"

Declared by:

othrys.services.suricata.disabledRules

Rule SIDs/patterns to disable (noisy signatures).

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Example:

[
  "2013504"
  "2100498"
]

Declared by:

othrys.services.suricata.dropRules

Rules that suricata-update turns from alert into drop, one drop.conf line each: a signature id, or a re: regular expression over the rule text. Only an IPS posture drops; in IDS they stay alerts.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Example:

[
  "re:trojan"
  "2019401"
]

Declared by:

othrys.services.suricata.mode

Inline delivery. nfqueue keeps the box an L3 router/NAT (packets are queued to Suricata by an nftables queue rule). af-packet captures on an interface (a transparent L2 bridge when posture = ips).

Platforms: NixOS only.

Type: one of “nfqueue”, “af-packet”

Default:

"nfqueue"

Declared by:

othrys.services.suricata.nfqueue.failOpen

Suricata’s nfq.fail-open. Lets the kernel accept packets when the queue is full, which is the overloaded case, instead of dropping them.

This does not govern what happens when Suricata is not running. That is the bypass flag on the nftables queue verdict, which othrys.services.router sets unconditionally, so a dead IPS passes traffic regardless of this option. Setting it to false does not make a dead Suricata block the link.

Either way the failure mode is uninspected traffic rather than blocked traffic, which is deliberate for a router in the forwarding path.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.suricata.nfqueue.queues

Number of NFQUEUE queues (Suricata runs -q 0 .. -q N-1); pair with queue num 0-<N-1> in nftables and one worker per queue.

Platforms: NixOS only.

Type: positive integer, meaning >0

Default:

1

Declared by:

othrys.services.suricata.offloadInterfaces

Interfaces on which to disable NIC offloads (GRO/GSO/TSO/LRO) before Suricata starts. Required for inline correctness, since offloads create super-sized datagrams the inspection path drops.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Example:

[
  "enp1s0f0"
  "enp1s0f1"
]

Declared by:

othrys.services.suricata.posture

IDS alerts only; IPS can drop. Start in IDS, tune, then flip to IPS.

Platforms: NixOS only.

Type: one of “ids”, “ips”

Default:

"ids"

Declared by:

othrys.services.suricata.settings

Extra suricata.yaml settings, deep-merged over (and overriding) the generated config, e.g. threading/affinity, outputs, mpm-algo.

Platforms: NixOS only.

Type: attribute set of anything

Default:

{ }

Example:

{
  mpm-algo = "hs";
  threading.set-cpu-affinity = true;
}

Declared by:

othrys.services.tailscale.enable

Whether to enable Tailscale VPN mesh networking.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.tailscale.acceptDns

Pass –accept-dns=true: let the tailnet control the host’s DNS configuration (MagicDNS). Set to false on hosts running their own resolver (unbound, the router module) or needing split-horizon DNS, since tailnet DNS would override it.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Declared by:

othrys.services.tailscale.acceptRoutes

Pass –accept-routes: install subnet routes advertised by OTHER tailnet nodes. A trust decision, since a compromised or misconfigured peer can redirect this host’s traffic, which is why it is off until a host that needs advertised subnets turns it on.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Declared by:

othrys.services.tailscale.authKeyFile

Path to auth key file for automatic registration.

Platforms: NixOS and nix-darwin.

Type: null or absolute runtime path outside the Nix store, e.g. “/run/secrets/service-password”

Default:

null

Declared by:

othrys.services.tailscale.baseURL

Control server the node registers with, passed as --login-server to tailscale up by the automatic registration, which authKeyFile turns on. A host registered by hand passes the same URL to tailscale up itself, and the module warns when this is set with no key file so that is not forgotten.

Platforms: NixOS and nix-darwin.

Type: null or string

Default:

null

Example:

"https://headscale.example.com"

Declared by:

othrys.services.tailscale.ephemeral

Register as an ephemeral node (deregistered when offline). Usually false for persistent machines. Applies to a node on Tailscale’s own control plane, where it is a parameter of an OAuth client key; with baseURL set, the pre-auth key minted on that server decides.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Declared by:

othrys.services.tailscale.openFirewall

Open the Tailscale UDP port for direct (non-relayed) connections.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Declared by:

othrys.services.tailscale.operator

User allowed to drive tailscale without root, passed as --operator. Null leaves the CLI to root.

Platforms: NixOS and nix-darwin.

Type: null or string

Default:

null

Example:

"alice"

Declared by:

othrys.services.tailscale.ssh

Whether to enable Tailscale SSH server (note: bypasses OpenSSH hardening and fail2ban).

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.traefik.enable

Whether to enable Traefik reverse proxy.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.traefik.acme.enable

Whether to enable automatic TLS via Let’s Encrypt (DNS-01).

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.traefik.acme.caServer

ACME directory URL written to the certificate resolver. Null leaves Traefik on the Let’s Encrypt production directory. Point it at the staging directory while bringing a host up, since production rate-limits failed orders.

Platforms: NixOS only.

Type: null or string

Default:

null

Example:

"https://acme-staging-v02.api.letsencrypt.org/directory"

Declared by:

othrys.services.traefik.acme.dnsProvider

lego DNS provider name. Its credentials are supplied via environmentFiles.

Platforms: NixOS only.

Type: string

Default:

""

Example:

"cloudflare"

Declared by:

othrys.services.traefik.acme.dnsResolvers

DNS servers used to check record propagation.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Example:

[
  "1.1.1.1:53"
  "8.8.8.8:53"
]

Declared by:

othrys.services.traefik.acme.email

Contact email for the ACME account.

Platforms: NixOS only.

Type: string

Default:

""

Declared by:

othrys.services.traefik.acme.resolver

Name of the certificate resolver referenced by routers.

Platforms: NixOS only.

Type: string

Default:

"letsencrypt"

Declared by:

othrys.services.traefik.acme.storage

Path to acme.json. Defaults to <dataDir>/acme.json, and must stay under dataDir, which is the directory persisted under impermanence.

Platforms: NixOS only.

Type: null or string

Default:

null

Declared by:

othrys.services.traefik.dashboard.enable

Whether to enable the Traefik dashboard/API.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.traefik.dashboard.insecure

Expose the dashboard on :8080 without auth. Convenient but unsafe, so prefer a secured router. The firewall port stays closed whatever openFirewall says.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.services.traefik.dataDir

Persistent data directory (holds acme.json).

Platforms: NixOS only.

Type: absolute path

Default:

"/var/lib/traefik"

Declared by:

othrys.services.traefik.dynamicConfigOptions

Dynamic configuration (routers, services, middlewares, TLS), merged on top of the generated TLS options and headers middleware.

Platforms: NixOS only.

Type: attribute set of anything

Default:

{ }

Declared by:

othrys.services.traefik.environmentFiles

EnvironmentFiles for the service (e.g. the DNS provider token like CF_DNS_API_TOKEN). Substituted into the static config via envsubst.

Platforms: NixOS only.

Type: list of absolute runtime path outside the Nix store, e.g. “/run/secrets/service-password”

Default:

[ ]

Example:

[ config.sops.secrets."traefik/env".path ]

Declared by:

othrys.services.traefik.forwardedHeaders.trustedIPs

Addresses or CIDR ranges of the proxies in front of Traefik whose X-Forwarded-* headers are kept, written to the web and websecure entrypoints. With the list empty Traefik discards those headers from every peer, which is right for a host that faces the internet directly. Behind a CDN or a load balancer the list holds that proxy’s ranges and nothing wider, since a listed peer can state any client address it likes.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Example:

[
  "192.0.2.0/24"
]

Declared by:

othrys.services.traefik.group

Group Traefik runs under (set to “docker” for the Docker provider).

Platforms: NixOS only.

Type: string

Default:

"traefik"

Declared by:

othrys.services.traefik.httpsRedirect

Redirect the web (:80) entrypoint to websecure (:443).

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.traefik.logLevel

Level of Traefik’s own log, written as log.level. Null leaves Traefik’s default of ERROR. This is the log of the proxy itself, and requests go to the access log, which is a separate setting.

Platforms: NixOS only.

Type: null or one of “TRACE”, “DEBUG”, “INFO”, “WARN”, “ERROR”, “FATAL”, “PANIC”

Default:

null

Example:

"INFO"

Declared by:

othrys.services.traefik.openFirewall

Open the web (:80) and websecure (:443) ports. It is also the default of tcpRouters.<name>.openFirewall. The API and dashboard port, :8080, is never opened here, since the insecure dashboard carries no authentication.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.traefik.securityHeaders.enable

Attach a headers middleware to the websecure entrypoint, so every router behind it sends the headers below. A router that needs different values sets its own headers middleware, which runs after this one and wins. Set to false to attach nothing.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.traefik.securityHeaders.contentTypeNosniff

Send X-Content-Type-Options: nosniff.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.traefik.securityHeaders.frameOptions

Value of the X-Frame-Options header. The default lets a site frame its own pages and stops other origins from framing them, which breaks a dashboard embedded from a different host name. null sends no such header.

Platforms: NixOS only.

Type: null or string

Default:

"SAMEORIGIN"

Example:

"DENY"

Declared by:

othrys.services.traefik.securityHeaders.hstsSeconds

max-age of the Strict-Transport-Security header, one year by default. Subdomains are not included and preload is not requested, since both reach past the hosts this proxy serves. 0 sends no HSTS header.

Platforms: NixOS only.

Type: unsigned integer, meaning >=0

Default:

31536000

Declared by:

othrys.services.traefik.staticConfigOptions

Extra static configuration, merged on top of the generated static config.

Platforms: NixOS only.

Type: attribute set of anything

Default:

{ }

Declared by:

othrys.services.traefik.tcpRouters

TCP services behind Traefik, each on an entrypoint of its own and reached by the TLS server name. Each entry writes an entrypoint, a router, a service and, with proxyProtocol, a servers transport, under its own name. A terminating router uses the default TLS options, so tls.sniStrict and tls.minVersion apply to it as they do to the HTTPS routers.

Platforms: NixOS only.

Type: attribute set of (submodule)

Default:

{ }

Example:

{
  soju = {
    entryPoint.address = ":6697";
    domain = "irc.example.com";
    backend = "[::1]:6667";
    proxyProtocol = 2;
  };
}

Declared by:

othrys.services.traefik.tcpRouters.<name>.backend

Address and port Traefik forwards the connection to.

Platforms: NixOS only.

Type: string

Example:

"[::1]:6667"

Declared by:

othrys.services.traefik.tcpRouters.<name>.domain

Name the router answers to, matched as HostSNI against the name the client sends. A client that sends no name is not routed. A terminating router asks the ACME resolver for a certificate for this name.

Platforms: NixOS only.

Type: string

Example:

"irc.example.com"

Declared by:

othrys.services.traefik.tcpRouters.<name>.entryPoint.address

Address of the entrypoint, :<port> for every address or <address>:<port> for one. Ports 80 and 443 belong to web and websecure, and 8080 to the insecure dashboard.

Platforms: NixOS only.

Type: string matching the pattern .*:[0-9]+

Example:

":6697"

Declared by:

othrys.services.traefik.tcpRouters.<name>.entryPoint.name

Name of the entrypoint the router listens on. Each router gets its own.

Platforms: NixOS only.

Type: string

Default:

<router name>

Example:

"ircs"

Declared by:

othrys.services.traefik.tcpRouters.<name>.openFirewall

Open the entrypoint’s port in the NixOS firewall.

Platforms: NixOS only.

Type: boolean

Default:

config.othrys.services.traefik.openFirewall

Declared by:

othrys.services.traefik.tcpRouters.<name>.passthrough

Forward the TLS stream unopened to a backend that terminates TLS itself. Traefik reads only the name from the client’s hello, and requests no certificate. Off by default, so Traefik terminates TLS with the certificate acme.resolver issues.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.services.traefik.tcpRouters.<name>.proxyProtocol

Version of the PROXY protocol header Traefik sends to the backend, so the backend sees the client’s address. Null sends none. The backend has to expect the header from Traefik’s address and from no other peer.

Platforms: NixOS only.

Type: null or one of 1, 2

Default:

null

Example:

2

Declared by:

othrys.services.traefik.tls.minVersion

Lowest TLS version the default TLS options accept. Traefik’s own default admits TLS 1.0 and 1.1. null leaves Traefik’s default in place.

Platforms: NixOS only.

Type: null or one of “VersionTLS12”, “VersionTLS13”

Default:

"VersionTLS12"

Declared by:

othrys.services.traefik.tls.sniStrict

Refuse a TLS connection whose server name matches no certificate, instead of answering with Traefik’s self-signed default certificate. A request made to the bare IP address is refused as well.

On by default when ACME issues the certificates, since every routed host then has one. Off by default otherwise, because a proxy with no certificate of its own would refuse every connection.

Platforms: NixOS only.

Type: boolean

Default:

config.othrys.services.traefik.acme.enable

Declared by:

othrys.services.unbound.enable

Whether to enable Unbound recursive DNS.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.unbound.accessControl

server.access-control entries (subnet + action). The default is derived from interfaces, so a host that listens on 10.0.0.1 answers 10.0.0.0/24 without further setup. A wildcard address or an interface name in interfaces derives nothing, so a host using one sets this itself.

Platforms: NixOS only.

Type: list of string

Default: loopback, then the /24 of each IPv4 address and the /64 of each IPv6 address in interfaces

Example:

[
  "10.0.0.0/24 allow"
]

Declared by:

othrys.services.unbound.forwardTls.enable

Forward all queries to the DoT upstreams over TLS (port 853), instead of recursing.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.services.unbound.forwardTls.upstreams

DoT upstream resolvers (addr@853#hostname).

Platforms: NixOS only.

Type: list of string

Default:

[
  "1.1.1.1@853#cloudflare-dns.com"
  "1.0.0.1@853#cloudflare-dns.com"
  "9.9.9.9@853#dns.quad9.net"
]

Declared by:

othrys.services.unbound.interfaces

Addresses Unbound listens on (server.interface). Replaces upstream’s loopback default, so list loopback when it should stay.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Example:

[
  "10.0.0.1"
  "127.0.0.1"
]

Declared by:

othrys.services.unbound.rpz

RPZ blocklist zones (ad/malware blocking). Each url must use https://, and the respip module is added to server.module-config when the list is non-empty.

Platforms: NixOS only.

Type: list of (submodule)

Default:

[ ]

Example:

[{ name = "hagezi"; url = "https://cdn.jsdelivr.net/gh/hagezi/dns-blocklists@latest/rpz/pro.txt"; }]

Declared by:

othrys.services.unbound.rpz.*.name

RPZ zone name.

Platforms: NixOS only.

Type: string

Declared by:

othrys.services.unbound.rpz.*.url

URL of the RPZ blocklist to fetch. Must use https://, since the zone rewrites answers for every client.

Platforms: NixOS only.

Type: string

Example:

"https://cdn.jsdelivr.net/gh/hagezi/dns-blocklists@latest/rpz/pro.txt"

Declared by:

othrys.services.unbound.settings

Extra unbound.conf settings, deep-merged over (and overriding) the generated config.

Platforms: NixOS only.

Type: attribute set of anything

Default:

{ }

Declared by:

othrys.services.victorialogs.enable

Whether to enable VictoriaLogs log database (LogsQL, journald ingestion).

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.victorialogs.collectJournal

Ship this host’s systemd journal into VictoriaLogs via systemd-journal-upload.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.victorialogs.extraFlags

Extra command-line flags passed to VictoriaLogs.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Declared by:

othrys.services.victorialogs.listenAddress

Address VictoriaLogs listens on. Loopback by default, expecting a reverse proxy in front.

Platforms: NixOS only.

Type: string

Default:

"127.0.0.1"

Declared by:

othrys.services.victorialogs.openFirewall

Open port in the firewall. Leave off when a reverse proxy fronts VictoriaLogs (the default).

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.services.victorialogs.port

Port VictoriaLogs listens on (HTTP API: ingestion and LogsQL queries).

Platforms: NixOS only.

Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default:

9428

Declared by:

othrys.services.victorialogs.retentionPeriod

How long to retain logs (suffixes: h/d/w/y; a bare number is months). Null uses the upstream default (7 days).

Platforms: NixOS only.

Type: null or string

Default:

null

Example:

"12w"

Declared by:

othrys.services.victoriametrics.enable

Whether to enable VictoriaMetrics single-node time-series database (Prometheus-compatible).

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.victoriametrics.extraFlags

Extra command-line flags passed to VictoriaMetrics.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Example:

[
  "-dedup.minScrapeInterval=15s"
]

Declared by:

othrys.services.victoriametrics.listenAddress

Address VictoriaMetrics listens on. Loopback by default, expecting a reverse proxy in front; set to 0.0.0.0 to expose it directly.

Platforms: NixOS only.

Type: string

Default:

"127.0.0.1"

Declared by:

othrys.services.victoriametrics.openFirewall

Open port in the firewall. Leave off when a reverse proxy fronts VictoriaMetrics (the default).

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.services.victoriametrics.port

Port VictoriaMetrics listens on (HTTP API: scrape, remote-write, query).

Platforms: NixOS only.

Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default:

8428

Declared by:

othrys.services.victoriametrics.retentionPeriod

How long to retain samples (suffixes s/h/d/w/y, a bare number is months). Null uses the upstream default (1 month), and long-term storage hosts usually want more.

Platforms: NixOS only.

Type: null or string

Default:

null

Example:

"1y"

Declared by:

othrys.services.victoriametrics.scrapeConfigs

Additional Prometheus-style scrape configs appended to the generated set.

Platforms: NixOS only.

Type: list of attribute set of anything

Default:

[ ]

Example:

[
  {
    job_name = "headscale";
    static_configs = [{targets = ["127.0.0.1:9090"];}];
  }
]

Declared by:

othrys.services.victoriametrics.scrapeNodeExporter

Scrape the local node exporter (at othrys.services.monitoring.nodePort). Follows the monitoring module by default so enabling both wires them together.

Platforms: NixOS only.

Type: boolean

Default:

config.othrys.services.monitoring.enable

Declared by:

othrys.services.virtualcamera.enable

Whether to enable Virtual camera (v4l2loopback).

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.virtualcamera.cardLabel

Label of the virtual camera device. Letters, digits, spaces, _, . and - only. Each further device carries the label followed by its number.

Platforms: NixOS only.

Type: string matching the pattern [A-Za-z0-9 _.-]+

Default:

"Virtual Camera"

Declared by:

othrys.services.virtualcamera.devices

Number of virtual camera devices to create.

Platforms: NixOS only.

Type: positive integer, meaning >0

Default:

1

Declared by:

othrys.services.virtualcamera.videoNr

Video device number of the first virtual camera, which appears as /dev/video<n>. Each further device takes the next number.

Platforms: NixOS only.

Type: unsigned integer, meaning >=0

Default:

10

Declared by:

othrys.services.wireguard.enable

Whether to enable raw WireGuard interfaces (coordination-server-free VPN links).

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.services.wireguard.interfaces

WireGuard interfaces (maps to networking.wireguard.interfaces).

Platforms: NixOS only.

Type: attribute set of (submodule)

Default:

{ }

Example:

{
  wg0 = {
    privateKeyFile = config.sops.secrets."wireguard/wg0".path;
    ips = ["10.100.0.2/24"];
    listenPort = 51820;
    openFirewall = true;
    peers = [
      {
        publicKey = "<peer public key>";
        allowedIPs = ["10.100.0.0/24"];
        endpoint = "vpn.example.com:51820";
        persistentKeepalive = 25;
      }
    ];
  };
}

Declared by:

othrys.services.wireguard.interfaces.<name>.allowedIPsAsRoutes

Add a route for every peer’s allowedIPs to table. Set to false where the routes are managed elsewhere, by a routing daemon or by the host’s own rules, and allowedIPs should only say which sources a peer may send from.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.services.wireguard.interfaces.<name>.fwMark

Firewall mark set on the encrypted packets this interface sends. Policy routing uses it to keep the tunnel’s own packets out of the tunnel when allowedIPs covers the default route.

Platforms: NixOS only.

Type: null or string

Default:

null

Example:

"0x6e6978"

Declared by:

othrys.services.wireguard.interfaces.<name>.ips

Addresses (CIDR) assigned to the interface.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Declared by:

othrys.services.wireguard.interfaces.<name>.listenPort

UDP listen port. Null picks a random port (fine for outbound-only peers).

Platforms: NixOS only.

Type: null or 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default:

null

Declared by:

othrys.services.wireguard.interfaces.<name>.mtu

MTU of the interface in bytes. Null leaves the WireGuard default of 1420, which is too large where the path underneath carries less than 1500.

Platforms: NixOS only.

Type: null or (positive integer, meaning >0)

Default:

null

Example:

1280

Declared by:

othrys.services.wireguard.interfaces.<name>.openFirewall

Open listenPort in the firewall (requires listenPort).

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.services.wireguard.interfaces.<name>.peers

Peers for this interface.

Platforms: NixOS only.

Type: list of (submodule)

Default:

[ ]

Declared by:

othrys.services.wireguard.interfaces.<name>.peers.*.allowedIPs

Networks routed to (and accepted from) this peer.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Declared by:

othrys.services.wireguard.interfaces.<name>.peers.*.endpoint

Peer endpoint. Null for peers that dial in.

Platforms: NixOS only.

Type: null or string

Default:

null

Example:

"vpn.example.com:51820"

Declared by:

othrys.services.wireguard.interfaces.<name>.peers.*.persistentKeepalive

Keepalive interval in seconds (needed behind NAT).

Platforms: NixOS only.

Type: null or (positive integer, meaning >0)

Default:

null

Example:

25

Declared by:

othrys.services.wireguard.interfaces.<name>.peers.*.presharedKeyFile

Path to a runtime file holding the preshared key for this peer, from wg genpsk (a secrets-provider path). Both ends must hold the same key.

Platforms: NixOS only.

Type: null or absolute runtime path outside the Nix store, e.g. “/run/secrets/service-password”

Default:

null

Example:

config.sops.secrets."wireguard/wg0-psk".path

Declared by:

othrys.services.wireguard.interfaces.<name>.peers.*.publicKey

Peer public key.

Platforms: NixOS only.

Type: string

Declared by:

othrys.services.wireguard.interfaces.<name>.privateKeyFile

Path to a runtime file holding the interface private key (a secrets-provider path).

Platforms: NixOS only.

Type: absolute runtime path outside the Nix store, e.g. “/run/secrets/service-password”

Declared by:

othrys.services.wireguard.interfaces.<name>.table

Routing table the routes for allowedIPs are added to, by name or number. Anything but main leaves the default route alone until an ip rule selects the table.

Platforms: NixOS only.

Type: string

Default:

"main"

Example:

"51820"

Declared by:

othrys.system.autoUpgrade.enable

Whether to enable unattended nixos-rebuild from the host configuration flake.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.system.autoUpgrade.allowReboot

Reboot when the new generation requires it (kernel/systemd changes). Off by default, so enable deliberately with a rebootWindow.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.system.autoUpgrade.dates

systemd calendar expression for the upgrade timer (daily at 04:00 by default, since servers want security fixes promptly).

Platforms: NixOS only.

Type: string

Default:

"04:00"

Declared by:

othrys.system.autoUpgrade.flags

Extra flags passed to nixos-rebuild.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Declared by:

othrys.system.autoUpgrade.flake

Flake URI the host upgrades from (the host configuration flake, not this library). Identity-shaped, set from the consuming host. Private repos need fetch credentials (e.g. a netrc via secrets). Nothing checks a signature on this path. Leave it null and use verify for that.

Platforms: NixOS only.

Type: null or string

Default:

null

Example:

"github:example/hosts"

Declared by:

othrys.system.autoUpgrade.randomizedDelaySec

Random delay added to the timer so a fleet doesn’t hit the flake host simultaneously.

Platforms: NixOS only.

Type: string

Default:

"30min"

Declared by:

othrys.system.autoUpgrade.rebootWindow

Time window reboots are confined to (with allowReboot). Null reboots whenever the upgrade lands.

Platforms: NixOS only.

Type: null or (attribute set of string)

Default:

null

Example:

{
  lower = "03:00";
  upper = "05:00";
}

Declared by:

othrys.system.autoUpgrade.verify.enable

Whether to enable signature verification of the host configuration repository before every upgrade.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.system.autoUpgrade.verify.allowedSigners

OpenSSH allowed signers file, used when format is ssh. Path literals and runtime path strings are handled as in publicKeys.

Platforms: NixOS only.

Type: null or absolute path

Default:

null

Example:

./keys/allowed_signers

Declared by:

othrys.system.autoUpgrade.verify.attribute

The nixosConfigurations attribute of the verified repository that the host builds.

Platforms: NixOS only.

Type: string

Default:

config.networking.hostName

Declared by:

othrys.system.autoUpgrade.verify.format

Signature format that is accepted. A signature in the other format fails verification.

Platforms: NixOS only.

Type: one of “openpgp”, “ssh”

Default:

"openpgp"

Declared by:

othrys.system.autoUpgrade.verify.maxAge

Days after which a verified commit counts as stale. A source that stops advancing verifies cleanly every night, so once the commit the host follows is older than this the unit logs a warning and, with the notify module on, sends a notification. The upgrade itself still runs. Null turns the report off.

Platforms: NixOS only.

Type: null or (positive integer, meaning >0)

Default:

30

Example:

90

Declared by:

othrys.system.autoUpgrade.verify.mode

What carries the signature. commit verifies the tip of ref with git verify-commit. tag takes the highest tag matching tagPattern by version sort, verifies it with git verify-tag and upgrades to the commit it points at, so an unsigned newer tag stops upgrades until it is removed.

Platforms: NixOS only.

Type: one of “commit”, “tag”

Default:

"commit"

Declared by:

othrys.system.autoUpgrade.verify.publicKeys

ASCII-armoured OpenPGP public key files, used when format is openpgp. These are the only keys whose signatures pass. A path literal is copied into the store, while a string such as “/run/secrets/signer.asc” is read at run time.

Platforms: NixOS only.

Type: list of absolute path

Default:

[ ]

Example:

[./keys/alice.asc]

Declared by:

othrys.system.autoUpgrade.verify.ref

Branch followed in commit mode. Its tip has to carry a good signature.

Platforms: NixOS only.

Type: string

Default:

"main"

Declared by:

othrys.system.autoUpgrade.verify.tagPattern

Glob selecting the tags considered in tag mode.

Platforms: NixOS only.

Type: string

Default:

"v*"

Declared by:

othrys.system.autoUpgrade.verify.url

Git URL the verify unit fetches. The fetch is anonymous, so the repository has to be readable without credentials.

Platforms: NixOS only.

Type: string

Example:

"https://example.com/alice/hosts.git"

Declared by:

othrys.system.bootloader.enable

Whether to enable Bootloader configuration.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.system.bootloader.extraEntries

Extra boot entries (e.g., Windows dual-boot, for Limine).

Platforms: NixOS only.

Type: strings concatenated with “\n”

Default:

""

Example:

''
  /Windows 11
      protocol: efi
      path: uuid(0123-ABCD):/EFI/Microsoft/Boot/bootmgfw.efi
''

Declared by:

othrys.system.bootloader.maxGenerations

How many of the newest generations the bootloader keeps on the boot partition and lists in its menu. Generations beyond it stay in the system profile and only leave the boot menu.

Every listed generation has its kernel and its initrd copied to the boot partition, and with no limit that is every generation in the profile, so the partition fills. Limine removes unused files only at the end of an install that succeeds, so once the partition is full a switch can no longer complete and nothing frees the space.

An install copies the new generation before it removes an old one, so the partition has to hold this number plus one. A generation costs the size of its kernel plus its initrd. At 40M a generation, 5 needs 240M. A host with a 200M initrd needs 1.3G for the same 5, so on a 1G partition it sets 3. du -sh /boot/limine/kernels shows the cost on a running Limine host.

null leaves the limit to the bootloader’s own default, which is no limit for Limine and systemd-boot and 100 for GRUB.

Platforms: NixOS only.

Type: null or (positive integer, meaning >0)

Default:

5

Declared by:

othrys.system.bootloader.secureBoot

Sign the boot chain with the sbctl keys in /var/lib/sbctl. Limine signs natively. systemd-boot is signed through lanzaboote, which the consuming flake must import as lanzaboote.nixosModules.lanzaboote. GRUB and "none" are rejected. The keys must exist before the first rebuild, and the firmware enforces nothing until they are enrolled.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.system.bootloader.type

Bootloader to use.

Platforms: NixOS only.

Type: one of “limine”, “systemd-boot”, “grub”, “none”

Default:

"limine"

Declared by:

othrys.system.defaultEditor

Default editor, used for EDITOR/VISUAL and git’s core.editor. An editor module that wants to be the default sets it with mkDefault.

Platforms: NixOS and nix-darwin.

Type: string

Default:

"vim"

Declared by:

othrys.system.disko.enable

Whether to enable Disko declarative disk configuration.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.system.disko.bootSize

EFI boot partition size.

Platforms: NixOS only.

Type: string

Default:

"1G"

Declared by:

othrys.system.disko.btrfs.compression

BTRFS compression algorithm for root subvolume.

Platforms: NixOS only.

Type: string

Default:

"zstd"

Declared by:

othrys.system.disko.btrfs.mountOptions

Common BTRFS mount options applied to all subvolumes.

Platforms: NixOS only.

Type: list of string

Default:

[
  "noatime"
  "space_cache=v2"
]

Declared by:

othrys.system.disko.device

Disk device path. Use /dev/disk/by-id/ for reliable identification. Find your disk ID with: ls -l /dev/disk/by-id/

A path outside /dev/disk/, such as /dev/sda, evaluates with a warning. The kernel hands those names out in probe order, so the same name can be another disk on the next boot.

Platforms: NixOS only.

Type: string

Example:

"/dev/disk/by-id/nvme-VENDOR_MODEL_XXXXXXXXXXXXX"

Declared by:

othrys.system.disko.luks.allowDiscards

Pass TRIM requests through dm-crypt to the SSD. The requests show an observer of the raw disk which blocks are free, which is the price of keeping the drive’s performance. services.fstrim.enable follows this option, since the passthrough alone discards nothing.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.system.disko.luks.bypassWorkqueues

Bypass dm-crypt workqueues for better SSD performance.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.system.disko.luks.fido2.enable

Whether to enable FIDO2/YubiKey unlock for the encrypted root (enrolled per-key via just luks-enroll; the passphrase stays as break-glass recovery).

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.system.disko.luks.name

Name for the LUKS encrypted root device (appears as /dev/mapper/<name>).

Platforms: NixOS only.

Type: string

Default:

"cryptroot"

Declared by:

othrys.system.disko.luks.passwordFile

Path to a file containing the LUKS passphrase used when disko first formats the disk. Leave null (default) to be prompted interactively at format time, recommended since at install time sops secrets do not yet exist on the target.

With luks.fido2.enable, this passphrase becomes the break-glass recovery keyslot: day-to-day unlock is via YubiKey, and the passphrase is only needed if every enrolled key is unavailable. Boot always falls back to this passphrase if no token is present.

Platforms: NixOS only.

Type: null or absolute runtime path outside the Nix store, e.g. “/run/secrets/service-password”

Default:

null

Example:

config.sops.secrets."security/boot/password".path

Declared by:

othrys.system.disko.luks.swapName

Name for the LUKS encrypted swap device (used only when swap.randomEncryption is false).

Platforms: NixOS only.

Type: string

Default:

"cryptswap"

Declared by:

othrys.system.disko.swap.randomEncryption

Encrypt swap with an ephemeral key generated on each boot instead of a persistent LUKS passphrase. Avoids a second unlock prompt at boot (recommended with FIDO2) at the cost of hibernation/resume. Defaults to luks.fido2.enable.

Platforms: NixOS only.

Type: boolean

Default:

config.othrys.system.disko.luks.fido2.enable

Declared by:

othrys.system.disko.swapSize

Swap partition size. Recommendations:

  • For hibernation: swap >= RAM size
  • Without hibernation: 4-8GB is usually sufficient

Platforms: NixOS only.

Type: string

Default:

"8G"

Example:

"16G"

Declared by:

othrys.system.git.enable

Whether to enable Git version control.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.system.git.aliases

Git aliases. Override or set to {} to opt out.

Platforms: NixOS and nix-darwin.

Type: attribute set of string

Default:

{
  br = "branch";
  ci = "commit";
  co = "checkout";
  graph = "log --graph --oneline --decorate";
  last = "log -1 HEAD";
  st = "status";
  unstage = "reset HEAD --";
}

Declared by:

othrys.system.git.defaultBranch

Default branch name for new repositories.

Platforms: NixOS and nix-darwin.

Type: string

Default:

"main"

Declared by:

othrys.system.git.email

Git user email for commits. Required, together with name, on a host where Home Manager manages the primary user.

Platforms: NixOS and nix-darwin.

Type: null or string

Default:

null

Example:

"alice@example.com"

Declared by:

othrys.system.git.name

Git user name for commits. Required, together with email, on a host where Home Manager manages the primary user, since that is where the identity is written. A host without a managed user installs git and reads neither.

Platforms: NixOS and nix-darwin.

Type: null or string

Default:

null

Example:

"alice"

Declared by:

othrys.system.hardening.enable

Apply the low-cost kernel and network sysctl hardening profile. The profile is opt-in, and nothing is set while this is off.

Every sysctl is written below the priority of a plain assignment, so a host overrides any single value by setting the same key under boot.kernel.sysctl. The values restrict kernel pointer and dmesg exposure, unprivileged BPF, ptrace and kexec, and turn off ICMP redirects and source routing.

rp_filter is set to loose mode (2) rather than strict (1). Strict mode drops replies that arrive on a different interface from the route back to the sender, which breaks Tailscale exit nodes and multi-homed routers. It also overrides the loose networking.firewall.checkReversePath that the Tailscale module selects, since the kernel check runs regardless of the firewall. othrys.services.router assigns loose mode to all and default as well, and strict mode to its WAN interface alone.

lockKernelModules and protectKernelImage are separate options because each one breaks something, and neither is implied by enable.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.system.hardening.kernelParams

Kernel command-line parameters the profile adds. The defaults cost nothing measurable: slab_nomerge keeps caches apart so an overflow in one stays in it, page_alloc.shuffle randomises the page allocator’s free lists, and vsyscall=none removes the fixed-address legacy syscall page. init_on_free and debugfs=off are not here, since the first costs on every free and the second breaks tooling, and a host that wants them adds them. Set the list to change it, since a list option merges rather than overrides.

Platforms: NixOS only.

Type: list of string

Default:

[
  "slab_nomerge"
  "page_alloc.shuffle=1"
  "vsyscall=none"
]

Declared by:

othrys.system.hardening.lockKernelModules

Set security.lockKernelModules, which disables kernel module loading once the system has booted.

No module can load after boot. Hardware plugged in later, and VPN or filesystem modules that were not loaded at boot, stop working until the next reboot. List every module the host needs later in boot.kernelModules so it is loaded before the lock.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.system.hardening.protectKernelImage

Set security.protectKernelImage, which prevents the running kernel image from being replaced.

Hibernation and kexec are disabled. Evaluation fails on a host that sets boot.resumeDevice or passes resume= in boot.kernelParams, since such a host would lose the ability to resume.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.system.impermanence.enable

Whether to enable Impermanence (ephemeral root with opt-in persistence).

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.system.impermanence.device

Block device holding the btrfs filesystem with the root and persist subvolumes. The wipe unit waits for this device in the initrd and mounts its top-level subvolume.

The option has to be set on a host that enables impermanence. With nixosModules.disko imported and othrys.system.disko.enable on, the layout fills it with its LUKS mapping, /dev/mapper/<luks.name>, as a default. A host that partitions any other way names the device here, which is the LUKS mapping for an encrypted root and the partition itself for a plain one.

Platforms: NixOS only.

Type: null or string

Default:

null

Example:

"/dev/disk/by-partlabel/root"

Declared by:

othrys.system.impermanence.persistRoot

Mountpoint of the persistent volume. nixosModules.impermanence binds everything the othrys modules declare as persistent from this path, and the disko layout mounts the persist subvolume here, so one option moves the whole persistence surface. The btrfs subvolume itself is still named persist (the boot-wipe script addresses subvolumes, not mounts).

Platforms: NixOS only.

Type: string

Default:

"/persist"

Declared by:

othrys.system.impermanence.retentionDays

Days to keep old root snapshots in /btrfs_tmp/old_roots before deletion.

Platforms: NixOS only.

Type: unsigned integer, meaning >=0

Default:

30

Declared by:

othrys.system.kernel.enable

Whether to enable kernel package selection (disabled = NixOS default kernel).

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.system.kernel.package

Kernel package set to use (e.g., pkgs.linuxPackages_latest, pkgs.linuxPackages_lts).

Platforms: NixOS only.

Type: raw value

Default:

pkgs.linuxPackages_latest

Declared by:

othrys.system.locale.enable

Whether to enable Locale and regional settings.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.system.locale.console.font

Console font.

Platforms: NixOS and nix-darwin.

Type: string

Default:

"Lat2-Terminus16"

Declared by:

othrys.system.locale.console.keyMap

Console keyboard layout.

Platforms: NixOS and nix-darwin.

Type: string

Default:

"us"

Declared by:

othrys.system.locale.locale

System locale.

Platforms: NixOS and nix-darwin.

Type: string

Default:

"en_US.UTF-8"

Declared by:

othrys.system.locale.timezone

System timezone.

Platforms: NixOS and nix-darwin.

Type: string

Default:

"UTC"

Example:

"America/New_York"

Declared by:

othrys.system.networking.enable

Whether to enable systemd-networkd networking.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.system.networking.bridges

Bridge netdevs; enslave interfaces to them via interfaces.<name>.bridge.

Platforms: NixOS only.

Type: attribute set of (submodule)

Default:

{ }

Example:

{ br-lan.address = ["10.0.0.1/24"]; }

Declared by:

othrys.system.networking.bridges.<name>.address

Static addresses (CIDR) assigned to the bridge itself.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Example:

[
  "10.0.0.1/24"
]

Declared by:

othrys.system.networking.interfaces

Per-interface network configurations.

Platforms: NixOS only.

Type: attribute set of (submodule)

Default:

{ }

Example:

{
  wan = {
    match = "enp1s0f0";
    dhcp = true;
    requiredForOnline = "routable";
  };
  lan-port = {
    match = "enp1s0f1";
    bridge = "br-lan";
    requiredForOnline = "enslaved";
  };
}

Declared by:

othrys.system.networking.interfaces.<name>.address

Static addresses (CIDR) to assign to the interface.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Example:

[
  "10.0.0.1/24"
]

Declared by:

othrys.system.networking.interfaces.<name>.bridge

Enslave this interface to the named bridge. The bridge has to be declared, under bridges or as a bridge netdev in systemd.network.netdevs, or evaluation fails naming it.

Platforms: NixOS only.

Type: null or string

Default:

null

Declared by:

othrys.system.networking.interfaces.<name>.dhcp

Enable DHCPv4 on this interface, by setting systemd-networkd’s DHCP = "ipv4".

This governs IPv4 alone. Turning it off does not make the interface statically addressed, since ipv6 independently controls Router Advertisements and leaves the interface with SLAAC addresses. An interface with no automatic addressing at all needs dhcp = false and ipv6 = false together.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.system.networking.interfaces.<name>.ipv6

Accept IPv6 Router Advertisements, which is how the interface picks up SLAAC addresses and a default route. Independent of dhcp, which covers IPv4 only.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.system.networking.interfaces.<name>.match

Interface match pattern (name or glob).

Platforms: NixOS only.

Type: string

Example:

"enp5s0"

Declared by:

othrys.system.networking.interfaces.<name>.requiredForOnline

When this interface counts as ‘online’ for network-online.target (use ‘enslaved’ for bridge members).

Platforms: NixOS only.

Type: one of “routable”, “carrier”, “degraded”, “enslaved”, “no”

Default:

"routable"

Declared by:

othrys.system.networking.interfaces.<name>.vlans

VLAN netdevs carried on this interface, which makes it a trunk port. Each has to be declared, under vlans or as a vlan netdev in systemd.network.netdevs, or evaluation fails naming it.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Declared by:

othrys.system.networking.vlans

VLAN netdevs; carry them on a trunk via interfaces.<name>.vlans.

Platforms: NixOS only.

Type: attribute set of (submodule)

Default:

{ }

Example:

{ vlan100 = { id = 100; address = ["10.100.0.1/24"]; }; }

Declared by:

othrys.system.networking.vlans.<name>.address

Static addresses (CIDR) assigned to the VLAN interface.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Declared by:

othrys.system.networking.vlans.<name>.id

802.1Q VLAN ID.

Platforms: NixOS only.

Type: integer between 1 and 4094 (both inclusive)

Declared by:

othrys.system.networking.waitOnline.enable

Wait for network to be online before reaching network-online.target.

Platforms: NixOS only.

Type: boolean

Default:

true

Declared by:

othrys.system.networking.waitOnline.timeout

Seconds to wait for network before giving up.

Platforms: NixOS only.

Type: unsigned integer, meaning >=0

Default:

10

Declared by:

othrys.system.nix.enable

Whether to enable Nix package manager configuration.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.system.nix.allowUnfree

Allow unfree packages, by writing nixpkgs.config.allowUnfree. A policy decision, not a capability, so it defaults to false and hosts opt in. Hosts that instantiate nixpkgs themselves must set the policy on that instance instead, since nixpkgs.config is ignored when nixpkgs.pkgs is defined.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Declared by:

othrys.system.nix.cachix.enable

Whether to enable Cachix binary cache.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.system.nix.cachix.authTokenFile

Path to file containing Cachix auth token for pushing.

Platforms: NixOS and nix-darwin.

Type: null or absolute runtime path outside the Nix store, e.g. “/run/secrets/service-password”

Default:

null

Example:

config.sops.secrets."system/cachix/auth-token".path

Declared by:

othrys.system.nix.cachix.name

Cachix cache name.

Platforms: NixOS and nix-darwin.

Type: string

Default:

""

Example:

"my-cache"

Declared by:

othrys.system.nix.cachix.publicKey

Cachix cache public key for verification.

Platforms: NixOS and nix-darwin.

Type: string

Default:

""

Example:

"my-cache.cachix.org-1:XXXXXX..."

Declared by:

othrys.system.nix.communityCache

Trust nix-community.cachix.org as a substituter. A trusted cache can serve any store path, so it is a trust root, and this one is added only when a host asks. The hyprland and niri caches are added with their compositors, since those flakes build nothing from cache.nixos.org, and cache.numtide.com with the AI modules whose package comes from the llm-agents input.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Declared by:

othrys.system.nix.extraSubstituters

Additional binary cache substituters.

Platforms: NixOS and nix-darwin.

Type: list of string

Default:

[ ]

Declared by:

othrys.system.nix.extraTrustedPublicKeys

Additional trusted public keys for the substituters.

Platforms: NixOS and nix-darwin.

Type: list of string

Default:

[ ]

Declared by:

othrys.system.nix.gc.automatic

Enable automatic garbage collection.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Declared by:

othrys.system.nix.gc.dates

When to run garbage collection.

Platforms: NixOS and nix-darwin.

Type: string

Default:

"weekly"

Declared by:

othrys.system.nix.gc.olderThan

Delete generations older than this.

Platforms: NixOS and nix-darwin.

Type: string

Default:

"7d"

Declared by:

othrys.system.nix.globalRegistry

Let Nix fetch the global flake registry, which resolves names such as home-manager or flake-utils to whatever the registry’s maintainers point them at that day. Off, only the entries the host declares resolve, among them nixpkgs, pinned to the host’s own input. A full reference such as github:owner/repo is unaffected.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Declared by:

othrys.system.nix.nh.enable

Whether to enable nh (Nix CLI helper: nicer rebuild output + retention-aware GC).

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Example:

true

Declared by:

othrys.system.nix.nh.clean.enable

Whether to enable periodic nh clean all (retention-aware; supersedes the timer-based nix.gc).

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Example:

true

Declared by:

othrys.system.nix.nh.clean.extraArgs

Retention arguments passed to nh clean all.

Platforms: NixOS and nix-darwin.

Type: string

Default:

"--keep 5 --keep-since 7d"

Declared by:

othrys.system.nix.nh.flake

Absolute path nh uses as its default flake (NH_FLAKE), e.g. for nh os switch. Null leaves NH_FLAKE unset.

Platforms: NixOS and nix-darwin.

Type: null or string

Default:

null

Example:

"/home/alice/nixos"

Declared by:

othrys.system.nix.stateVersion

NixOS and home-manager state version, recording the release a host was first installed at. It governs the defaults of stateful services and is not a version to keep current, so set it once at install and leave it. This option is mandatory.

Platforms: NixOS and nix-darwin.

Type: string

Example:

"26.05"

Declared by:

othrys.system.nix.trustedUsers

nix.settings.trusted-users. A trusted user can set any substituter and import unsigned store paths, which is root over the store and so over the host, with no password and no YubiKey in the way. Root alone by default. A host that wants its administrators trusted adds “@wheel”, and nixos-rebuild switch through sudo needs nothing, since it runs as root.

Platforms: NixOS and nix-darwin.

Type: list of string

Default:

[
  "root"
]

Declared by:

othrys.system.persistence.enable

Whether to enable System-critical persistence declarations.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.system.secrets.enable

Whether to enable sops-nix secrets infrastructure.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.system.secrets.ageIdentityFile

Runtime path to an age identity file, pointed at by SOPS_AGE_KEY_FILE for manual sops editing. The required form for an identity that contains key material, since the file is read from the secrets provider at use time and nothing is copied into the store.

Platforms: NixOS and nix-darwin.

Type: null or absolute runtime path outside the Nix store, e.g. “/run/secrets/service-password”

Default:

null

Example:

"/run/secrets/sops/age-identity"

Declared by:

othrys.system.secrets.ageIdentityStubs

Age identity lines for manual sops editing, written to ~/.config/sops/age/keys.txt.

The content becomes a world-readable Nix store path, so this option is safe only for identities that hold no key material on their own. An age-plugin-yubikey stub qualifies, since the private key never leaves the token and the stub is only a pointer to it. A raw AGE-SECRET-KEY-1... does not, and an assertion rejects one. Use ageIdentityFile for anything secret.

Platforms: NixOS and nix-darwin.

Type: null or strings concatenated with “\n”

Default:

null

Example:

''
  #recipient: age1yubikey1qw3na0f9example...
  AGE-PLUGIN-YUBIKEY-1EXAMPLE...
''

Declared by:

othrys.system.secrets.secretFiles

Encrypted sops files, read from an optional secrets flake input in the consuming flake. othrys declares no such input itself.

The contract is that when a consumer declares an input named secrets, it exposes secretFiles as an attrset of names to encrypted files, for example { common = ./common.yaml; host-atlas = ./atlas.yaml; }. Declaring no secrets input is fine and leaves this empty. Declaring one that does not match the shape is an evaluation error rather than a silently empty attrset.

Platforms: NixOS and nix-darwin.

Type: attribute set of absolute path (read only)

Default:

inputs.secrets.secretFiles, or {} when no secrets input is declared

Declared by:

othrys.system.shell.bash.enable

Whether to enable Bash with safe defaults.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.system.shell.starship.enable

Whether to enable Starship prompt.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.system.shell.zsh.enable

Whether to enable Zsh shell with full configuration.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.system.shell.zsh.aliasPresets.ansible

Enable the ansible shorthand (ap, al, av) alias preset.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Declared by:

othrys.system.shell.zsh.aliasPresets.clipboard

Enable the wayland clipboard (pbcopy/pbpaste -> wl-copy/wl-paste) alias preset.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

config.othrys.desktop.graphical

Declared by:

othrys.system.shell.zsh.aliasPresets.docker

Enable the docker shorthand (d, dc, dps, …) alias preset.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Declared by:

othrys.system.shell.zsh.aliasPresets.editor

Enable the editor shortcuts (v/vim/vi -> defaultEditor) alias preset.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Declared by:

othrys.system.shell.zsh.aliasPresets.git

Enable the git shorthand (g, gs, ga, gc, …) alias preset.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Declared by:

othrys.system.shell.zsh.aliasPresets.jvm

Enable the maven/gradle shorthand alias preset.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Declared by:

othrys.system.shell.zsh.aliasPresets.modernUnix

Enable the modern-unix replacements (eza ls, bat cat, colored grep/diff) alias preset.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Declared by:

othrys.system.shell.zsh.aliasPresets.navigation

Enable the directory navigation (…, …, …) alias preset.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Declared by:

othrys.system.shell.zsh.aliasPresets.nix

Enable the Nix workflow (rebuild, nix-search, nix-clean) alias preset.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Declared by:

othrys.system.shell.zsh.aliasPresets.node

Enable the npm/yarn/pnpm shorthand alias preset.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Declared by:

othrys.system.shell.zsh.aliasPresets.opentofu

Enable the opentofu shorthand (tf, tfi, tfp, …) alias preset.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Declared by:

othrys.system.shell.zsh.aliasPresets.python

Enable the python/uv shorthand (py, pip, venv) alias preset.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Declared by:

othrys.system.shell.zsh.extraAliases

Additional shell aliases merged over the presets.

Platforms: NixOS and nix-darwin.

Type: attribute set of string

Default:

{ }

Declared by:

othrys.system.shell.zsh.persistCompdump

Whether to persist .zcompdump across reboots.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Declared by:

othrys.system.stylix.enable

Whether to enable Stylix system-wide theming, configured from othrys.theme.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.system.stylix.gui.enable

Theme the graphical surface too: curated fonts, cursor, GTK, and per-user icon/cursor config. Off, Stylix still themes the console and Plymouth (the headless-relevant targets) without dragging the GUI font/cursor/GTK closure onto servers. On nix-darwin it sets the fonts alone, since Stylix declares no cursor or console target there and the adapter turns the user’s GTK target off.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

config.othrys.desktop.graphical

Declared by:

othrys.system.user.name

Login name of the primary user account. Modules that create per-user state (home-manager, persistence, git, …) read this value. This option is mandatory, so set it in your host configuration.

The name starts with a lowercase letter or an underscore, and continues with lowercase letters, digits, underscores and hyphens. Any other value is refused at evaluation.

Platforms: NixOS and nix-darwin.

Type: string matching the pattern [a-z_][a-z0-9_-]*

Example:

"alice"

Declared by:

othrys.system.users.enable

Whether to enable User account configuration.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.system.users.defaultShell

Default shell for the user.

Platforms: NixOS and nix-darwin.

Type: package

Default:

pkgs.bash

Declared by:

othrys.system.users.extraGroups

Additional groups for the user, beside wheel when the wheel option is on.

Platforms: NixOS and nix-darwin.

Type: list of string

Default:

[ ]

Declared by:

othrys.system.users.homeManaged

Whether home-manager manages the primary user (derived; do not set). True when the account exists, homeManager.enable is on and the host imports nixosModules.home beside the Home Manager module.

Platforms: NixOS and nix-darwin.

Type: boolean (read only)

Default:

othrys.system.users.enable && othrys.system.users.homeManager.enable, on a host that imports nixosModules.home

Declared by:

othrys.system.users.homeManager.enable

Whether to enable home-manager management of the primary user’s environment.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Example:

true

Declared by:

othrys.system.users.initialHashedPassword

Hashed password used to bootstrap the account on first boot, for the window before a secrets provider is available. Generate one with mkpasswd -m yescrypt.

The hash is written into the world-readable Nix store and stays there for the life of every generation that references it, so treat it as public and offline-crackable. It is a bootstrap mechanism, and NixOS does not clear or expire it. Move the host to passwordFile once secrets decrypt on boot.

Platforms: NixOS and nix-darwin.

Type: null or string

Default:

null

Example:

"$y$j9T$..."

Declared by:

othrys.system.users.mutableUsers

users.mutableUsers. False keeps accounts fully declarative, so passwd and useradd changes do not survive a rebuild. Set it to true on a host where accounts are managed outside Nix.

This is stated rather than inferred. It was previously derived from whether passwordFile happened to be null, which flipped a security property as a side effect of an unrelated option.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

false

Declared by:

othrys.system.users.passwordFile

Path to a runtime file holding the hashed password, injected by the host configuration. The preferred form, since nothing reaches the store.

The file is read in the users activation step, before ordinary secrets are installed. With sops-nix only a secret declared with neededForUsers = true exists in time, and such a secret lives under /run/secrets-for-users/, not /run/secrets/. A path that is absent when the step runs leaves the account with no usable password, and the module warns on a /run/secrets/ prefix for that reason.

Platforms: NixOS and nix-darwin.

Type: null or absolute runtime path outside the Nix store, e.g. “/run/secrets/service-password”

Default:

null

Example:

config.sops.secrets."users/alice/password".path

Declared by:

othrys.system.users.uid

UID of the primary user, on nix-darwin only. Null leaves the account to macOS. Set, it puts the user in users.knownUsers, so nix-darwin owns the account, creates it when it is missing and applies defaultShell as its login shell. The administrator account macOS created at setup, usually uid 501, keeps null, since nix-darwin must not manage it.

Platforms: nix-darwin only.

Type: null or signed integer

Default:

null

Example:

502

Declared by:

othrys.system.users.wheel

Put the primary user in wheel, which is sudo. Off for a host whose primary user is not its administrator.

Platforms: NixOS and nix-darwin.

Type: boolean

Default:

true

Declared by:

othrys.system.wsl.enable

Whether to enable running the host as a NixOS-WSL distro.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.system.wsl.defaultUser

The account WSL logs in as when the distro starts, written to wsl.defaultUser.

Platforms: NixOS only.

Type: string

Default:

config.othrys.system.user.name

Declared by:

othrys.system.wsl.startMenuLaunchers

Add a Windows Start menu shortcut for each GUI application the host installs.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.system.wsl.usbip.enable

Whether to enable attaching Windows USB devices through usbipd-win.

Platforms: NixOS only.

Type: boolean

Default:

false

Example:

true

Declared by:

othrys.system.wsl.usbip.autoAttach

Bus IDs to attach at boot, as usbipd list prints them on Windows. Each device has to be bound once on Windows with usbipd bind --busid <id>.

Platforms: NixOS only.

Type: list of string

Default:

[ ]

Example:

[
  "4-1"
]

Declared by:

othrys.system.wsl.usbip.hostAddress

The address of the Windows host that runs usbipd-win. null keeps the NixOS-WSL default, which reads the gateway of eth0. Under networkingMode=mirrored the distro has no such route, so a mirrored host sets 127.0.0.1.

Platforms: NixOS only.

Type: null or string

Default:

null

Example:

"127.0.0.1"

Declared by:

othrys.system.wsl.windowsPath

Append the Windows PATH to the PATH of the distro. Off by default, so a name such as git or node resolves to the Nix package and not to a Windows binary of the same name. Interop stays on either way, and a Windows binary still runs by its full path, as in /mnt/c/Windows/explorer.exe.

Platforms: NixOS only.

Type: boolean

Default:

false

Declared by:

othrys.theme.colors

The palette in the other forms a module needs, derived and not to be set. withHashtag.<name> is the colour with a leading #, and rgb.<name> holds its r, g and b channels as integers from 0 to 255. Null when the palette is null. The plain six digits are othrys.theme.palette.<name>.

Platforms: NixOS and nix-darwin.

Type: raw value (read only)

Default: derived from othrys.theme.palette

Declared by:

othrys.theme.fonts.monospace

The monospace font for terminals and editors. Null leaves each application its own font.

Platforms: NixOS and nix-darwin.

Type: null or (submodule)

Default:

null

Example:

{
  name = "JetBrainsMono Nerd Font";
  package = pkgs.nerd-fonts.jetbrains-mono;
}

Declared by:

othrys.theme.fonts.monospace.package

Package that provides the font. It is added to fonts.packages. Null installs nothing, for a font the host already has.

Platforms: NixOS and nix-darwin.

Type: null or package

Default:

null

Example:

pkgs.nerd-fonts.jetbrains-mono

Declared by:

othrys.theme.fonts.monospace.name

Family name of the font, as fontconfig knows it.

Platforms: NixOS and nix-darwin.

Type: string

Example:

"JetBrainsMono Nerd Font"

Declared by:

othrys.theme.fonts.sansSerif

The sans-serif font for interface text, which the bar reads. Null leaves each application its own font.

Platforms: NixOS and nix-darwin.

Type: null or (submodule)

Default:

null

Example:

{
  name = "Inter";
  package = pkgs.inter;
}

Declared by:

othrys.theme.fonts.sansSerif.package

Package that provides the font. It is added to fonts.packages. Null installs nothing, for a font the host already has.

Platforms: NixOS and nix-darwin.

Type: null or package

Default:

null

Example:

pkgs.nerd-fonts.jetbrains-mono

Declared by:

othrys.theme.fonts.sansSerif.name

Family name of the font, as fontconfig knows it.

Platforms: NixOS and nix-darwin.

Type: string

Example:

"JetBrainsMono Nerd Font"

Declared by:

othrys.theme.opacity

Window opacity by kind of surface. Null leaves opacity to each application.

Platforms: NixOS and nix-darwin.

Type: null or (submodule)

Default:

null

Example:

{
  terminal = 0.95;
}

Declared by:

othrys.theme.opacity.applications

Opacity of application windows, from 0 to 1.

Platforms: NixOS and nix-darwin.

Type: integer or floating point number between 0 and 1 (both inclusive)

Default:

1.0

Declared by:

othrys.theme.opacity.desktop

Opacity of bars and widgets, from 0 to 1.

Platforms: NixOS and nix-darwin.

Type: integer or floating point number between 0 and 1 (both inclusive)

Default:

1.0

Declared by:

othrys.theme.opacity.popups

Opacity of notifications and popups, from 0 to 1.

Platforms: NixOS and nix-darwin.

Type: integer or floating point number between 0 and 1 (both inclusive)

Default:

1.0

Declared by:

othrys.theme.opacity.terminal

Opacity of terminal windows, from 0 to 1.

Platforms: NixOS and nix-darwin.

Type: integer or floating point number between 0 and 1 (both inclusive)

Default:

1.0

Declared by:

othrys.theme.palette

The palette every othrys module reads. It follows scheme and polarity by default, and a host can set it directly to a palette that belongs to no scheme.

Null means no palette. A module then writes no colour, and the application keeps its own look.

Platforms: NixOS and nix-darwin.

Type: null or base16 palette (base00 to base0F, and optionally the base24 colours base10 to base17)

Default: the scheme named by othrys.theme.scheme, at othrys.theme.polarity, or null when the scheme is null

Example:

config.othrys.theme.schemes.oxocarbon.light

Declared by:

othrys.theme.polarity

Whether the host is dark or light. It picks the half of the scheme that becomes the palette, and modules that tell an application which variant to use read it.

Platforms: NixOS and nix-darwin.

Type: one of “dark”, “light”

Default:

"dark"

Declared by:

othrys.theme.scheme

The scheme in use, as a name in othrys.theme.schemes.

"wallpaper" derives the palette from othrys.theme.wallpaper.primary when the system is built. othrys holds no generator of its own, so this value needs a module that provides one, as described in the theming guide.

Null selects no scheme. othrys.theme.palette is then null unless the host sets it, and every othrys module leaves colour to the application.

Platforms: NixOS and nix-darwin.

Type: null or string

Default:

"oxocarbon"

Example:

"gruvbox"

Declared by:

othrys.theme.schemes

The colour schemes a host can choose from, by name. Each scheme holds a dark and a light palette, and a palette is an attribute set of colours written as six hexadecimal digits with no #. The sixteen base16 colours base00 to base0F are required. The eight base24 colours base10 to base17 are optional.

othrys defines oxocarbon. A host adds a scheme of its own by defining another name here with the same shape, as the example does, and selects it with othrys.theme.scheme. The definitions merge, so adding a scheme leaves oxocarbon in place. The name wallpaper is reserved, since othrys.theme.scheme gives it another meaning.

Platforms: NixOS and nix-darwin.

Type: attribute set of (submodule)

Example:

{
  gruvbox = {
    dark = {
      base00 = "282828";
      base01 = "3c3836";
      base02 = "504945";
      base03 = "665c54";
      base04 = "bdae93";
      base05 = "d5c4a1";
      base06 = "ebdbb2";
      base07 = "fbf1c7";
      base08 = "fb4934";
      base09 = "fe8019";
      base0A = "fabd2f";
      base0B = "b8bb26";
      base0C = "8ec07c";
      base0D = "83a598";
      base0E = "d3869b";
      base0F = "d65d0e";
    };
    light = {
      base00 = "fbf1c7";
      base01 = "ebdbb2";
      base02 = "d5c4a1";
      base03 = "bdae93";
      base04 = "665c54";
      base05 = "504945";
      base06 = "3c3836";
      base07 = "282828";
      base08 = "9d0006";
      base09 = "af3a03";
      base0A = "b57614";
      base0B = "79740e";
      base0C = "427b58";
      base0D = "076678";
      base0E = "8f3f71";
      base0F = "d65d0e";
    };
  };
}

Declared by:

othrys.theme.schemes.<name>.dark

The palette this scheme gives a dark host.

Platforms: NixOS and nix-darwin.

Type: base16 palette (base00 to base0F, and optionally the base24 colours base10 to base17)

Declared by:

othrys.theme.schemes.<name>.light

The palette this scheme gives a light host.

Platforms: NixOS and nix-darwin.

Type: base16 palette (base00 to base0F, and optionally the base24 colours base10 to base17)

Declared by:

othrys.theme.wallpaper.fill

How an image that does not match the screen is drawn. center covers the whole screen and crops what does not fit. fit shows the whole image and leaves black borders, and fit-border-color draws those borders in the colour of the image’s edge. stretch covers the screen by changing the aspect ratio, and tile repeats the image.

Platforms: NixOS and nix-darwin.

Type: one of “center”, “fit”, “fit-border-color”, “stretch”, “tile”

Default:

"center"

Example:

"fit"

Declared by:

othrys.theme.wallpaper.interval

How long one image stays before the next replaces it, as a number of seconds or as a duration such as "30s", "10m" or "1h 30m". Null keeps the image the session started with. It has an effect only when source is a list or a directory.

Platforms: NixOS and nix-darwin.

Type: null or positive integer, meaning >0, or duration such as “30s”, “10m” or “1h 30m”

Default:

null

Example:

"10m"

Declared by:

othrys.theme.wallpaper.order

The order images are taken in when source is a list or a directory. ascending and descending go through the file names in order, and a list keeps the order it is written in under ascending.

Platforms: NixOS and nix-darwin.

Type: one of “random”, “ascending”, “descending”

Default:

"random"

Example:

"ascending"

Declared by:

othrys.theme.wallpaper.outputs

Wallpaper settings for single monitors, keyed by the name the compositor gives the output, such as "DP-1". Each entry holds the same source, interval, order and fill, and a value left null takes the one set for every monitor. A monitor with no entry uses the settings above.

Platforms: NixOS and nix-darwin.

Type: attribute set of (submodule)

Default:

{ }

Example:

{
  "DP-1".source = ./wallpapers/portrait.png;
  "HDMI-A-1" = {
    source = "~/Pictures/Wallpapers";
    interval = "30m";
  };
}

Declared by:

othrys.theme.wallpaper.outputs.<name>.fill

How an image is fitted to this monitor. Null uses othrys.theme.wallpaper.fill.

Platforms: NixOS and nix-darwin.

Type: null or one of “center”, “fit”, “fit-border-color”, “stretch”, “tile”

Default:

null

Example:

"fit"

Declared by:

othrys.theme.wallpaper.outputs.<name>.interval

How long one image stays on this monitor. Null uses othrys.theme.wallpaper.interval.

Platforms: NixOS and nix-darwin.

Type: null or positive integer, meaning >0, or duration such as “30s”, “10m” or “1h 30m”

Default:

null

Example:

"10m"

Declared by:

othrys.theme.wallpaper.outputs.<name>.order

The order images are taken in on this monitor. Null uses othrys.theme.wallpaper.order.

Platforms: NixOS and nix-darwin.

Type: null or one of “random”, “ascending”, “descending”

Default:

null

Example:

"ascending"

Declared by:

othrys.theme.wallpaper.outputs.<name>.source

The wallpaper of this monitor, in any form the option for every monitor takes. Null uses othrys.theme.wallpaper.source.

Platforms: NixOS and nix-darwin.

Type: null or image, as a Nix path or a path in the Nix store or non-empty (list of image, as a Nix path or a path in the Nix store) or directory read at run time, as a string starting with / or ~/

Default:

null

Example:

./wallpapers/portrait.png

Declared by:

othrys.theme.wallpaper.primary

The one image used wherever a single image is needed. scheme = "wallpaper" derives the palette from it, and the Stylix export hands it to Stylix. A directory read at run time holds no image that is known when the system is built, so a host with such a source sets this option when something needs an image.

Platforms: NixOS and nix-darwin.

Type: null or absolute path

Default: source when it is one image, its first element when it is a list, and null otherwise

Example:

./wallpapers/dawn.png

Declared by:

othrys.theme.wallpaper.source

The desktop wallpaper, in one of four forms.

  • Null sets no wallpaper, and the palette still comes from scheme and polarity.
  • A Nix path such as ./wallpaper.png, or a package that builds an image, is one image. It is copied into the store.
  • A list of such images, as in [./wallpapers/dawn.png ./wallpapers/dusk.png], is a set the daemon picks from. Each is copied into the store.
  • A string such as "~/Pictures/Wallpapers" or "/srv/wallpapers" is a directory the daemon reads while the session runs, so its images change without a rebuild. Nothing is copied, and no image of it is known when the system is built.

No image ships with this library, so a host provides its own. othrys.desktop.wallpaper draws whichever form is set.

Platforms: NixOS and nix-darwin.

Type: null or image, as a Nix path or a path in the Nix store or non-empty (list of image, as a Nix path or a path in the Nix store) or directory read at run time, as a string starting with / or ~/

Default:

null

Example:

# one image, copied into the store
./wallpaper.png

# several images, copied into the store
[./wallpapers/dawn.png ./wallpapers/dusk.png]

# a directory read while the session runs
"~/Pictures/Wallpapers"

Declared by: