Three restic jobs share one repository: - panel (03:30): /var/lib/containers and rootless named volumes, with the panel's containers stopped for a consistent copy and started again after - system (04:00): /etc, /home, /root, /var/lib, plus consistent .dump copies of the Forgejo, Nextcloud, Authelia and panel SQLite databases - maintenance (Sun 05:30): forget/prune and a 2 GB sampled check Scaleway bills storage and egress, not requests, so objects go to One Zone, /nix/store and images are left out, all jobs share one cache, and pruning and checks are weekly and bounded. Needs secrets/restic-password.age and secrets/restic-env.age to be created before deploying; BACKUPS.md has the steps and a restore runbook. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HA82gUd5tW9VHStkEKmgqu
62 lines
1.5 KiB
Nix
62 lines
1.5 KiB
Nix
{
|
|
description = "vpsAdminOS container";
|
|
|
|
inputs = {
|
|
vpsadminos.url = "github:vpsfreecz/vpsadminos";
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
|
|
|
|
agenix = {
|
|
url = "github:ryantm/agenix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.darwin.follows = "";
|
|
};
|
|
|
|
# The deployment panel (panel.reudy.net), packaged in its own repository.
|
|
panel = {
|
|
url = "git+ssh://git@git.reudy.net:14922/reudy-net/panel?ref=main";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs =
|
|
inputs@{
|
|
nixpkgs,
|
|
vpsadminos,
|
|
agenix,
|
|
panel,
|
|
...
|
|
}:
|
|
let
|
|
system = "x86_64-linux";
|
|
lib = nixpkgs.lib;
|
|
in
|
|
{
|
|
nixosConfigurations.vps = nixpkgs.lib.nixosSystem {
|
|
inherit system;
|
|
modules = [
|
|
{ nixpkgs.overlays = [ agenix.overlays.default ]; }
|
|
vpsadminos.nixosModules.container_25_11
|
|
./configuration.nix
|
|
panel.nixosModules.default
|
|
./panel.nix
|
|
./caddy.nix
|
|
./authelia.nix
|
|
./nextcloud.nix
|
|
./forgejo.nix
|
|
./backups.nix
|
|
./containers/hello.nix
|
|
agenix.nixosModules.default
|
|
|
|
{
|
|
nixpkgs.config.allowUnfreePredicate = pkg:
|
|
builtins.elem (lib.getName pkg) [ "rns" ];
|
|
}
|
|
./reticulum.nix
|
|
];
|
|
specialArgs = {
|
|
inherit inputs;
|
|
};
|
|
};
|
|
};
|
|
}
|