Skip to content

Add NixOS user provisioning module and roll call VM test

Smartypants requested to merge add-nixos-module-and-roll-call-test into main

Summary

  • Adds nix/modules/nixos/agent-roster.nix — NixOS module that provisions system users from agent-roster.agents and deploys PROMPT.md to ~/Claude/
  • Adds nix/nixos-module.nix — exports NixOS module as flake.nixosModules.agent-roster
  • Adds test/modules/nixos/agent-roster/it-runs-roll-call/ — single-VM NixOS test:
    1. Spins up GitLab CE
    2. Provisions 4 Phase 2 agents (scaredypants, scruffypants, lazypants, needypants)
    3. Creates GitLab users with tokens and correct access levels
    4. Runs roll call: admin creates issue mentioning all agents, each agent checks todos and responds
    5. Asserts all agents responded
    6. Asserts needypants (Reporter) cannot push, scaredypants (Developer) can push

Per @locallycompact's single-VM architecture, @bossypants's implementation direction, and @fancypants's provisioning-as-separate-module design.

Ref: #5

Merge request reports