Shell Program Set — Shells, Prompt, Completions and CLI Tools
Purpose
programSets.shell is the single switch for a host’s interactive shell environment: the login shells, the prompt, completions, the terminal multiplexer and the common command-line tools.
It replaces the per-user features/cli imports that earlier revisions of this repository used, so a user configuration enables one option instead of importing a directory of feature files.
Entry Point
- Option and imports:
modules/home-manager/programs/shell/default.nix - Shells:
shell.nix - History:
history.nix - Prompt:
prompt.nix - Completions:
completions.nix - Multiplexer:
multiplexer.nix - Tools:
tools.nix - File manager configuration:
xplr.lua
Architecture / Services / Scope
Enablement
programSets.shell.enable defaults to true when the host is not a server.
When no osConfig is passed in — a standalone Home-Manager build — it also defaults to true.
Every sub-option defaults from the parent switch, so enabling the set is enough for a normal desktop host:
programSets.shell.minimalstrips the shell set back for servers: fish is installed fromfishMinimaland completion generation is skipped.programSets.shell.enableFishandprogramSets.shell.enableNushelldefault to whether that shell is the user’s login shell inosConfig. Without anosConfig, both default to true.programSets.shell.multiplexer.enabledefaults toprogramSets.shell.enable.programSets.shell.tools.enabledefaults to true for non-server hosts with the set enabled. Its groups —enableModernReplacements,enableNetworkTools,enableSystemToolsandenableTUI— each default fromtools.enable.
The module asserts that every child switch is only enabled while its parent is, so a group cannot be turned on for a shell set that is off.
What the set provides
- History and navigation —
atuinandzoxideare enabled with the set, and their data directories are added touser.files.persistence. Atuin keeps shell history in sync with the self-hosted server atatuin.racci.dev. - Fish — enabled through
enableFish, with history persisted. - Nushell — enabled through
enableNushell, with a carapace-backed external completer, fish as a fallback completer and zoxide for directory jumps. - Prompt —
starshipis enabled whenever the set is enabled. - Completions —
carapaceis enabled for non-server hosts. The Nushell integration is configured by hand rather than by the module, so it is switched off incompletions.nix. - Multiplexer —
zellijis enabled with session and viewport serialisation, and Nushell attaches to a session on start when it is not already inside one. - Tools —
helixis the default editor. The modern replacements installbat,fd,ripgrep,duf,dust,gping,procs,sdandxh, and aliascat,grepandpingto their replacements. The network and system groups adddoggo,ttl,inxi,iotop-c,lsof,pciutils,sysstat,btopandfastfetch, plusnvtopwhen the host has GPU acceleration andctopwhen it runs containers. The TUI group addsfzf,trash-cliandxplr.
Options
Every switch is declared in modules/home-manager/programs/shell/; read the module for the exact default, because each one is derived from the host role or the parent switch rather than being a fixed literal.
Operational Notes / Assumptions
- Server hosts get no shell set by default.
A server that wants one enables
programSets.shell.enableexplicitly and usually leavesminimalat its default. programSets.shell.toolsputshelixon the host even whenpurpose.developmentis disabled; the editor is configured by the shell set, not by the development purpose.- Nushell completion behaviour depends on
carapaceandfishbeing installed, which the same set provides. - Persistence entries are declared by this module, so a host that disables the set stops persisting atuin and zoxide data.