Files
nix-config/home/linux/gui/base
ryan4yin | 二花 9f092808fd feat(aquamarine): serve Whisper transcription from the NPU (#472)
The goal is speech recognition on the NPU for vinput, and sherpa-onnx cannot
deliver it: every model it loads keeps a dynamic time axis, which the NPU
compiler rejects outright. Qwen3-ASR and SenseVoice both core-dumped in
vpux-compiler ("Got non broadcastable dimensions pair"), and reshaping the ONNX
inputs does not help because the dynamic dimensions sit inside the graph
(WA-037). Whisper is the only family OpenVINO publishes fully static IRs for,
and its fixed 30 s window is exactly what the compiler accepts.

The host now runs an OpenAI-compatible /v1/audio/transcriptions service backed
by whisper-large-v3-turbo int8 on the NPU: 1.5 s for 11 s of audio against
2.1 s on CPU, with the compiled graph cached in /var/cache so only a cold cache
pays the ~60 s NPU compile. vinput on the desktop sends raw PCM to it through a
small provider script.

Only the NPU driver and compiler still come from the unmerged branch in the
`nixpkgs-npu` input (NixOS/nixpkgs#570230), whose nixpkgs also happens to be
the one where openvino-genai 2026.4.0.0 builds at all.

Assisted-by: DeepSeek Harness 0.2.1-rc.2 (deepseek-v4.1-flash)
2026-10-18 08:34:50 +08:00
..

Base Desktop Environment Configuration

This directory contains base configurations for Linux desktop environments.

Overview

The configuration is split into modules:

  • Desktop shell: Noctalia Shell
  • Applications: desktop tools, browsers, editors, media players
  • Development tools: IDEs and development utilities
  • System integration: input methods, theming, XDG specifications, GPU settings

Noctalia

Noctalia (v5) is a native C++/Wayland desktop shell that replaces multiple separate tools. It is installed through the upstream programs.noctalia Home Manager module.

Configuration

Noctalia merges every *.toml in the config directory (~/.config/noctalia/), sorted alphabetically, and then layers the state directory's settings.toml on top:

Layer Location Notes
Config ~/.config/noctalia/*.toml Merged alphabetically; [include] supported; host-specific overrides
State ~/.local/state/noctalia/settings.toml Written by the Settings UI; loads last and wins

The shared baseline (noctalia/config/config.toml) is deployed as an out-of-store symlink, so manual edits hot-reload without a home-manager switch. Noctalia never rewrites files in the config layer, so volatile runtime data (wallpaper rotation, widget geometry) stays in the state file and out of the repository.

noctalia config export prints the merged user config and noctalia config validate checks a file. Application theming stays with catppuccin/nix, so Noctalia's theme templates are disabled.

Component Replacement

Noctalia consolidates functionality that previously required multiple tools:

Traditional Component Purpose Noctalia counterpart
gammastep Blue light filter [nightlight]
swaylock Screen locker built-in lock screen ([lockscreen])
anyrun Application launcher launcher panel ([shell.launcher])
mako Notification daemon [notification]
waybar Status bar [bar] + [widget.*]
wallpaper-switcher Wallpaper management [wallpaper]
wlogout Session menu [shell.session]
wl-clipboard Clipboard management built-in clipboard (encrypted history)
grim/slurp/satty Screenshots + annotation built-in [shell.screenshot] + annotation editor

Configuration Modules

Desktop Shell

  • noctalia/default.nix: enables the upstream programs.noctalia module and symlinks the baseline out of store

  • noctalia/config/config.toml: declarative baseline (v5 TOML), tracked in the repo and hot-reloaded

    Covers the bar and widgets, control center, desktop widgets, night light, wallpaper, session panel, screenshots with annotation, system monitor, audio/volume, brightness, calendar/weather, color schemes, dock, notifications, OSD, and clipboard.

  • hypridle/: Idle management

Desktop Environment

  • gtk.nix: GTK theme configuration
  • xdg/: XDG specifications

Input & Localization

  • fcitx5/: Fcitx5 input method with Rime (Chinese), Mozc (Japanese), and Hangul (Korean) engines
  • vinput/: Voice input on ai (OpenVINO) and shoukei (CPU)

Applications

Development

System Utilities

  • misc.nix: Misc GUI apps (e-book reader, remote desktop, hardened IM clients)