Skip to content

feat: add NixOS support with flake.nix and installer detection#12

Draft
SolAstrius wants to merge 2 commits intoClickHouse:mainfrom
SolAstrius:feat/nixos-support
Draft

feat: add NixOS support with flake.nix and installer detection#12
SolAstrius wants to merge 2 commits intoClickHouse:mainfrom
SolAstrius:feat/nixos-support

Conversation

@SolAstrius
Copy link
Copy Markdown
Contributor

Summary

  • Add flake.nix with dev shell providing uv, Node.js 22, git, and native libs (openssl, sqlite, libffi) for Python wheel compilation
  • Add .envrc for direnv integration (use flake)
  • Detect NixOS in install.sh and skip system package installs — guide users to nix develop instead
  • Python is managed by uv, not Nix (UV_PYTHON_PREFERENCE=only-managed)

Test plan

  • nix develop enters shell with uv, node, git available
  • uv venv && uv pip install -e . succeeds (native deps compile against nix-provided libs)
  • cd web && npm ci && npm run build succeeds
  • install.sh on NixOS: detects distro, skips system installs, prints nix develop guidance if tools are missing

@SolAstrius SolAstrius marked this pull request as draft March 27, 2026 02:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant