Skip to content

Shell profiles

A complete terminal environment: modern CLI tools system-wide, plus per-user shell, editor and multiplexer setups.

Rune: profiles - Active when: for_root or users list non-empty - Default: on for root

System-wide tools

Installed once, for all users; pinned tools re-install when their pin changes:

Tool How
eza pinned release binary
tmux built from source at the pinned version (distro package removed)
neovim pinned AppImage extracted to /usr/bin/nvim-source, symlinked as nvim
zoxide official install script
direnv pinned release binary
starship distro repo on Debian 13 / Ubuntu 25, install script elsewhere

Per-user setup

Applied to root (for_root) and/or users listed in features.profiles.users (each name must exist in features.users):

  • oh-my-zsh plus plugins: zsh-autosuggestions, zsh-syntax-highlighting, ohmyzsh-full-autoupdate.
  • .zshrc - the generated part lives in a marked block (# ... NULLFORGE MANAGED BLOCK) prepended to the file, so your own lines stay below and win.
  • starship prompt config and direnv config under ~/.config.
  • tmux - TPM plugin manager plus a config in ~/.config/tmux.
  • neovim - NvChad starter with a cursor-restore patch and the tokyonight theme; skipped when a chadrc.lua already exists so your editor config is never clobbered.
  • atuin shell history.
  • Nerd Font (optional) - one family from the nerd-fonts release.

First deploy on a pre-existing .zshrc

A .zshrc that predates the managed markers is cleared once (with a backup) before the block is written - otherwise the block would be prepended to a stale copy of itself. From then on, hand edits outside the markers are preserved.

Configuration (features.profiles)

Field Default Description
for_root true Provision root's environment
reinstall false Reinstall tools and re-clone plugin/editor repos even when present
font None Nerd Font family (JetBrainsMono, Hack, Meslo, ... - 22 curated families); None skips fonts
users [] List of user names to profile; each must exist in features.users

reinstall is the recovery lever: oh-my-zsh, plugins, TPM and NvChad are git clones that are otherwise left alone once present.

Example

from nullforge.models.profiles import NerdFont
from nullforge.models.users import UserRole
from nullforge.molds import ProfilesMold, UserMold, UsersMold

users = UsersMold(
    users=[
        UserMold(name="ops", role=UserRole.ADMIN),
    ]
)
profiles = ProfilesMold(users=["ops"], font=NerdFont.JETBRAINS_MONO)