nixos: drop the rehearsal pair and other migration leftovers
All checks were successful
nixos / nixos (push) Successful in 1m3s

The test pair served the move to NixOS, which is done. Its overlays,
dummy secrets and sops recipients go; the rules for testing on a copy
of production stay in nixos/README.md, and git log finds the overlay
if it is needed again. Options that existed only for it (alert address,
Loki bucket, extra cert-push keys) are inlined, and comments still
pointing at Ansible or MIGRATION.md are corrected.

The tofu README now spells out the state bucket bootstrap: the bucket
is a resource in the state it holds, so a new project needs one local
apply first. The bucket gets prevent_destroy for the same reason.

Assisted-by: Claude:opus-5-5
This commit is contained in:
Sergei Poljanski 2026-11-17 11:11:33 +04:00
commit 2635b887c7
Signed by: asxpi
GPG key ID: 4F8851660FA4121B
4 changed files with 56 additions and 380 deletions

View file

@ -1,6 +1,4 @@
# asxpio-ops: Traefik, Forgejo, storage, the app stacks.
# Services are added here as they move over from ../../ansible (see
# MIGRATION.md at the repo root); until then this is the base system only.
{ lib, ... }:
{
imports = [
@ -9,13 +7,12 @@
./forgejo.nix
./garage.nix
./monitoring
./options.nix
./postgres.nix
./traefik.nix
./xmpp-cert-sync.nix
];
networking.hostName = lib.mkDefault "asxpio-ops";
networking.hostName = "asxpio-ops";
networking.domain = "asxp.io";
asxpio.privateIPv4 = "10.10.0.10";
system.stateVersion = "26.05";

View file

@ -1,4 +1,3 @@
# Managed by Ansible (role monitoring).
apiVersion: 1
groups:
- orgId: 1

View file

@ -315,7 +315,7 @@ in
storage_config.aws = {
endpoint = "hel1.your-objectstorage.com";
region = "hel1";
bucketnames = config.asxpio.lokiBucket;
bucketnames = "asxpio-loki-main";
access_key_id = "\${S3_ACCESS_KEY}";
secret_access_key = "\${S3_SECRET_KEY}";
};
@ -426,7 +426,7 @@ in
uid = "email-me";
type = "email";
settings = {
addresses = config.asxpio.alertEmail;
addresses = "me@asxp.io";
singleEmail = true;
};
}

View file

@ -1,15 +0,0 @@
# Values the rehearsal host overrides.
{ lib, ... }:
{
options.asxpio = {
alertEmail = lib.mkOption {
type = lib.types.str;
default = "me@asxp.io";
description = "Where Grafana sends alerts.";
};
lokiBucket = lib.mkOption {
type = lib.types.str;
default = "asxpio-loki-main";
};
};
}