Skip to content

leigh-hackspace/infrastructure-nix-flake

Repository files navigation

Leigh Hackspace Infrastructure Nix Flake

Provides the configuration for various servers running Leigh Hackspack infrastructure.

Applying Config

scripts/boot.sh      # Build for next reboot
scripts/switch.sh    # Build and apply now

sudo nixos-confirm   # Mark this generation as good as we don't get rollbacked

list-generations     # List generations including the last "good", the current and what was booted

Unless sudo nixos-confirm is run within 5 minutes of a new generation being applied, the previous known good configuration will be restored and the system rebooted. This is to prevent remotely bricking a machine.

Machines

Services 1

Path: machines/services1

Various hackspace services for members. See README.md.

AI Box

Path: machines/aibox

Experimental machine with LLMs and Stable Diffusion

Tools

Run the list-generations script directly from this flake without cloning:

nix run github:leigh-hackspace/infrastructure-nix-flake#listGenerations

Show accurate information about generations.

Example output:

[cjdell@NixOS-Router:~]$ nix run github:leigh-hackspace/infrastructure-nix-flake#listGenerations
╭───┬────────────┬───────────┬──────┬─────────┬────────╮
│ # │ Generation │   Date    │ Good │ Current │ Booted │
├───┼────────────┼───────────┼──────┼─────────┼────────┤
│ 0 │ 313        │ a day ago │ ❌   │ ❌      │ ✅     │
│ 1 │ 314        │ a day ago │ ✅   │ ❌      │ ❌     │
│ 2 │ 315        │ a day ago │ ❌   │ ✅      │ ❌     │
╰───┴────────────┴───────────┴──────┴─────────┴────────╯

About

Nix Flake describing the Leigh Hackspace infrastructure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published