1
README
pijukka edited this page 2025-09-07 00:24:36 +02:00
configuration for everything
Nixos Infrastructure for a hardware and software stack for small communication crews. We aim to build the bare bone on which one can add more.
We identify the minimum as:
- three machines: a builder (a laptop or alike as the primary building machine aka the cockpit), a connector (reverse proxy, headscale and ldap host - all on a vps) and a worker (runs the services: does the heavy lifting)
- software minimum: a wireguard mesh network, internal communication (xmpp) and external communication (gts), user and login management (lldap + dex)
hardware general prerequisits
- 3 computer
- a router
- internet connection
orchestrator
Prerequisits
some hardware. a pc a laptop.
installation
- install nixos
- pull nixos-config
- nixos-rebuild switch flake
usage
- create ssh key files
- password manager
- agenix setup
connector
A vps
Prerequisits
installation
- git clone nixos anywhere example
- add your pub key to configuration
- run against your vps root@ip
- log into server and get host key
- rekey secrets with host key on local machine
- push flake on target host
builder
A laptop
worker
a raspberry pi
prerequisits
- the obivious
- monitor and keyboard
installation
-
flash ssd with .img with latest sd-card/sd-image-raspberrypi.nix ( there are some options and some github projects that supply images, but it takes some research every other year which thing to flash)
-
boot machine with ssd
-
sudo loadkeys de
-
sudo systemctl start wpa_suplicant.service
-
passwd
-
configure wlan with wpa_cli
-
find ips in local network to ssh into pi nmap -sn 192.168.1.0/24
-
ssh into pi to get ssh_host_ed_ key
-
rekey agenix secrets
-
nixos-rebuild switch --target-host
-
rsync backup
-
restore backup
agenix
- so much easier than sopsnix