- nix/package.nix: two-phase build with fixed-output derivation for deps - nix/nixos-module.nix: systemd service with systant.enable and systant.configFile - flake.nix: expose nixosModules.default and overlays.default Usage in NixOS config: systant.enable = true; systant.configFile = ./systant.toml; When deps change, update hash: nix build .#systant 2>&1 | grep 'got:' Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
630 B
630 B
/build
Build the systant CLI binary.
Instructions
- Run type checking first:
bunx tsc --noEmit - If types pass, build the binary:
bun build index.ts --compile --outfile dist/systant - Report the binary size and location
- If there are errors, show them clearly and suggest fixes
Nix Build
For NixOS deployment, the binary is built by Nix using:
nix build .#systant
If you update dependencies (bun.lock), update the hash in nix/package.nix:
nix build .#systant 2>&1 | grep 'got:'
Success Criteria
- No TypeScript errors
- Binary created at
dist/systant - Binary is executable