Skip to content
streetfortressPublic

About

A framework for building NixOS and FluxCD environments

Topics

Resources

Contributing

Security policy

Stars

3 stars

Watchers

1 watching

Forks

Repository files navigation

Forts!

A framework for bootstrapping GitOps environments, centered around nixOS and FluxCD

forts

Use the fort cli to scaffold a git repository (called an estate) and lifecycle machines (called forts):

  • An Estate is a git repository that declares one or more forts.
  • A Fort is a nixOS machine and its associated workloads.
  • Forts in an estate sit on a wireguard Mesh.

After scaffolding a fort, fort image builds a bootable disk image and fort provision uses pulumi to deploy it.

The image is bootable wherever images are bootable. Currently the fort CLI supports the Libvirt and Linode APIs. Baremetal deployments work but are not yet automated.

Since everything about a fort is managed in the estate, the resulting I.A.C. surface is tiny:

  • A Compute Instance and Disk
  • A Firewall and Domain Name

The mesh is provider agnostic, so forts in an estate can be spread across local, cloud providers, and geographic regions without additional configuration.

Once deployed, the fort begins a continuous reconciliation against the estate repo:

  • It's "Just NixOS:" System changes stem from <estate>/nixos/hosts/<fort>/default.nix. Configure a fort to your heart's content, even installing desktop environments and advanced dotfile configurations if you have them. Changes here are automatically pulled down and applied. nixOS revisions can easily be rolled back if anything goes wrong.
  • It's "Just Kubernetes:" Workload changes go in <estate>/flux/apps/<fort>/.... You can run almost any service on a fort. Changes here are automatically reconciled by Flux, and you get all of the familiar conveniences of kubernetes for configuration management.

Forts is meant to get these environments up and running. Once deployed, it's just "nixOS and kubernetes", and you can manage them just like you'd expect. The fort cli takes care of the tedious manifest work that's required to build out a GitOps environment.


What's in this repo

This repository has three main parts:

  • The nixOS flake: The host level configurations for the Mesh, kubernetes, and ops.
  • The templates of manifests to render in an estate: boilerplate .toml, .yaml, .nix files
  • The fort cli codebase: application logic for templating and secrets management.

⛫ Built on the Shoulders of Giants ⛫

Forts! by Streetfortress Industries

About

A framework for building NixOS and FluxCD environments

Topics

Resources

Contributing

Security policy

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages