Chess

From NixOS Wiki
Revision as of 22:51, 7 August 2025 by Bittner (talk | contribs) (Add terminal-based section)
Jump to: navigation, search

Playing Chess on NixOS

GUI based

Lucas Chess is not packaged for NixOS yet (see nixpkgs#303420).

For GNOME Chess, if you want to play against the computer, you need to install a chess engine in addition. According to the application developer, this can be GNU Chess or Stockfish, but the engines will always win, ruthlessly, which may be disturbing (see gnome-chess#94).

{ pkgs, ... }:

{
  environment.systemPackages = with pkgs; [
    gnome-chess
    gnuchess
    stockfish
  ];
}

Terminal based

Chess TUI is installable via chess-tui. Playing against a bot requires a chess engine such as Stockfish or GNU Chess. The engine can be configured or specifed with the -e option.