Skip to content

services.bonfire: init#1871

Merged
eljamm merged 3 commits into
ngi-nix:mainfrom
ju1m:bonfire-service
Jan 30, 2026
Merged

services.bonfire: init#1871
eljamm merged 3 commits into
ngi-nix:mainfrom
ju1m:bonfire-service

Conversation

@ju1m
Copy link
Copy Markdown

@ju1m ju1m commented Dec 5, 2025

This PR introduces services.bonfire with a relevant example and test.

State

It works, but it can still be improved. See inlined comments.

$ nom build .#checks.x86_64-linux.projects/Bonfire/nixos/tests/basic
[…]
vm-test-run-Bonfire> machine # [*] Waiting user creation page
vm-test-run-Bonfire> machine: (finished: must succeed: PYTHONUNBUFFERED=1 selenium-test, in 10.04 seconds)
vm-test-run-Bonfire> (finished: run the VM test script, in 55.29 seconds)
vm-test-run-Bonfire> test script finished in 55.33s
vm-test-run-Bonfire> cleanup
vm-test-run-Bonfire> kill machine (pid 11)
vm-test-run-Bonfire> qemu-system-x86_64: terminating on signal 15 from pid 8 (/nix/store/cfapjd2rvqrpry4grb0kljnp8bvnvfxz-python3-3.13.8/bin/python3.13)
vm-test-run-Bonfire> kill vlan (pid 9)
vm-test-run-Bonfire> (finished: cleanup, in 0.00 seconds)
┏━ Dependency Graph:
┃ ✔ vm-test-run-Bonfire ⏱ 55s
┣━━━ Builds
┗━ ∑ ⏵ 0 │ ✔ 1 │ ⏸ 0 │ Finished at 05:45:34 after 58s

RoadMap

Related

Pings

@ju1m ju1m self-assigned this Dec 5, 2025
@phanirithvij phanirithvij moved this to In progress in Nix@NGI Dec 5, 2025
Copy link
Copy Markdown

@fishinthecalculator fishinthecalculator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome stuff! I have only a small suggestion but in general this looks quite good, thank you!

Comment thread projects/Bonfire/services/bonfire/module.nix Outdated
@imincik
Copy link
Copy Markdown
Contributor

imincik commented Dec 16, 2025

Notes from review meeting:

  • Make PostgreSQL unix sockets working

Comment thread projects/Bonfire/services/bonfire/module.nix Outdated
Comment thread projects/Bonfire/services/bonfire/module.nix Outdated
@ju1m ju1m mentioned this pull request Dec 24, 2025
8 tasks
@ju1m ju1m force-pushed the bonfire-service branch 5 times, most recently from 2d72ab8 to cc3c950 Compare January 7, 2026 02:15
@ju1m
Copy link
Copy Markdown
Author

ju1m commented Jan 7, 2026

Changes

  imports = [
    (lib.modules.importApply ../../../../profiles/nixos/nginx/reverse-proxy.nix {
      inherit service;
      proxyPass = "http://localhost:${toString cfg.settings.SERVER_PORT}";
      proxyWebsockets = true;
    })
  ];

State

  • nixos.tests.basic passes, it defaults to bonfire.social.
$ nom build -f. hydrated-projects.Bonfire.nixos.tests.basic

@ju1m ju1m force-pushed the bonfire-service branch 2 times, most recently from a74af06 to 0245022 Compare January 12, 2026 14:08
@eljamm eljamm self-requested a review January 28, 2026 06:33
Comment thread lib/default.nix Outdated
Comment thread projects/Bonfire/demo/module.nix Outdated
Comment thread projects/Bonfire/default.nix
Comment thread projects/Bonfire/services/bonfire/examples/basic.nix Outdated
Comment thread projects/Bonfire/services/bonfire/module.nix Outdated
Comment thread projects/Bonfire/services/bonfire/module.nix
Comment thread projects/Bonfire/services/bonfire/module.nix Outdated
Comment thread projects/Bonfire/services/bonfire/module.nix Outdated
Comment thread projects/Bonfire/services/bonfire/module.nix Outdated
Comment thread projects/Bonfire/services/bonfire/module.nix
Comment thread projects/Bonfire/services/bonfire/tests/basic.nix Outdated
@eljamm eljamm merged commit 4a18558 into ngi-nix:main Jan 30, 2026
12 checks passed
@github-project-automation github-project-automation Bot moved this from In progress to Done in Nix@NGI Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

bonfire: Implement NixOS VM test for example bonfire: Implement a NixOS module for service Implement project metadata for Bonfire

5 participants