# This is a NixOS config module
{
imports = [
inputs.whisper-overlay.nixosModules.default
];
# Also make sure to enable cuda support in nixpkgs, otherwise transcription will
# be painfully slow. But be prepared to let your computer build packages for 2-3 hours.
nixpkgs.config.cudaSupport = true;
# Start the service and expose the port to your local network.
services.realtime-stt-server.enable = true;
services.realtime-stt-server.openFirewall = true;
# If you are running this system-wide on your local machine,
# Add the whisper-overlay package so you can start the overlayit manually.
# Alternatively add it to the autostart of your display environment or window manager.
environment.systemPackages = [pkgs.whisper-overlay];
}
Here is the result:
error:
… while calling the 'head' builtin
at /nix/store/jc3mfa7ybzh32bkvdj5xiib1vkx8jy6x-source/lib/attrsets.nix:1701:13:
1700| if length values == 1 || pred here (elemAt values 1) (head values) then
1701| head values
| ^
1702| else
… while evaluating the attribute 'value'
at /nix/store/jc3mfa7ybzh32bkvdj5xiib1vkx8jy6x-source/lib/modules.nix:1118:7:
1117| // {
1118| value = addErrorContext "while evaluating the option `${showOption loc}':" value;
| ^
1119| inherit (res.defsFinal') highestPrio;
… while evaluating the option `system.build.toplevel':
… while evaluating definitions from `/nix/store/jc3mfa7ybzh32bkvdj5xiib1vkx8jy6x-source/nixos/modules/system/activation/top-level.nix':
… while evaluating the option `warnings':
… while evaluating definitions from `/nix/store/jc3mfa7ybzh32bkvdj5xiib1vkx8jy6x-source/nixos/modules/system/boot/systemd.nix':
… while evaluating the option `systemd.services.realtime-stt-server.serviceConfig':
… while evaluating definitions from `/nix/store/1ck7067fh2r7ba7nmh60azsw6rwml711-source/nix/nixosModules/realtime-stt-server.nix':
… while evaluating definitions from `/nix/store/1ck7067fh2r7ba7nmh60azsw6rwml711-source/nix/packages/realtime-stt-server.nix, via option perSystem':
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: python3.13-realtime-stt-0.1.16 does not configure a `format`. To build with setuptools as before, set `pyproject = true` and `build-system = [ setuptools ]`.`
Command 'nix --extra-experimental-features 'nix-command flakes' build --print-out-paths '.#nixosConfigurations."framework".config.system.build.toplevel' --no-link' returned non-zero exit status 1.
~
If you are going to use ChatGPT, I feel that it would be helpful to just post that ChatGPT is telling you “xyz”. It increases the chance that someone trying to help you doesn’t waste time going down a weird path, and so actually gets around to helping you instead of giving up early.
From the errors you posted:
The instructions from the error seem pretty clear about a suggestion, try following it with the derivation that is defined in realtime-stt-server.nix.