feat: add flake.nix for NixOS deployment

This commit is contained in:
randogoth 2026-09-26 13:10:39 +03:00
parent c3cb1d7046
commit a081975234
3 changed files with 144 additions and 31 deletions

View file

@ -12,18 +12,15 @@ dependencies = [
[project.scripts]
smolweb = "smolweb.cli:main"
# Local path sources: `uv.toml` cannot hold a `[sources]` table (uv only
# reads that from pyproject.toml), so there is no separate override file to
# split "reproducible" from "editable" -- this table is the only place it
# can live. Both origins are real (code.randogoth.com), but this checkout's
# wapdown/md2txt have unpushed local changes (the xhtmlmp renderer, the
# gemtext fixes) that a git source can't see yet, so path is what actually
# works right now. Once those are pushed, swap to:
# wapdown = { git = "ssh://git@code.randogoth.com:2222/randogoth/wapdown.git" }
# md2txt = { git = "ssh://git@code.randogoth.com:2222/randogoth/md2txt.git" }
# `uv.toml` cannot hold a `[sources]` table (uv only reads that from
# pyproject.toml), so there is no separate override file to split
# "reproducible" from "editable" -- this table is the only place it can
# live. Pin to `main` explicitly rather than floating, so a lockfile
# resolution is reproducible; bump the rev after a sibling change smolweb
# needs to pick up.
[tool.uv.sources]
wapdown = { path = "../wapdown", editable = true }
md2txt = { path = "../md2txt", editable = true }
wapdown = { git = "ssh://git@code.randogoth.com:2222/randogoth/wapdown.git", rev = "main" }
md2txt = { git = "ssh://git@code.randogoth.com:2222/randogoth/md2txt.git", rev = "main" }
[dependency-groups]
dev = ["pytest>=8.0"]