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
67 lines
1.6 KiB
Nix
67 lines
1.6 KiB
Nix
{
|
|
description = "asxp.io servers";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
|
|
# For the few packages 26.05 has older than what production runs
|
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
sops-nix = {
|
|
url = "github:Mic92/sops-nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs =
|
|
{
|
|
nixpkgs,
|
|
nixpkgs-unstable,
|
|
sops-nix,
|
|
...
|
|
}:
|
|
let
|
|
mkHost =
|
|
modules:
|
|
nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs.unstable = nixpkgs-unstable.legacyPackages.x86_64-linux;
|
|
modules = [
|
|
sops-nix.nixosModules.sops
|
|
./modules/hetzner.nix
|
|
./modules/base.nix
|
|
./modules/shell.nix
|
|
./modules/podman.nix
|
|
./modules/wireguard.nix
|
|
./modules/alert.nix
|
|
./modules/backup.nix
|
|
./modules/monitoring-agent.nix
|
|
]
|
|
++ modules;
|
|
};
|
|
in
|
|
{
|
|
# `nix develop ./nixos`: every tool the READMEs call
|
|
devShells.x86_64-linux.default =
|
|
let
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
in
|
|
pkgs.mkShell {
|
|
packages = with pkgs; [
|
|
opentofu
|
|
hcloud
|
|
nixos-rebuild
|
|
sops
|
|
ssh-to-age
|
|
age
|
|
restic
|
|
rclone
|
|
jq
|
|
openssh
|
|
];
|
|
};
|
|
|
|
nixosConfigurations = {
|
|
asxpio-ops = mkHost [ ./hosts/asxpio-ops ];
|
|
asxpio-services = mkHost [ ./hosts/asxpio-services ];
|
|
};
|
|
};
|
|
}
|