Chess
From NixOS Wiki
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.