Useful for database backend migrations and/or backup and restore operations.
Requires Python 3.6+ and AIOHTTP 3.7.4+
Run it on your mailman server. You may need to edit the API credentials if you changed the defaults.
Useful for database backend migrations and/or backup and restore operations.
Requires Python 3.6+ and AIOHTTP 3.7.4+
Run it on your mailman server. You may need to edit the API credentials if you changed the defaults.
let | |
commonConfig = ./common/acme/client; | |
dnsServerIP = nodes: nodes.dnsserver.config.networking.primaryIPAddress; | |
dnsScript = {pkgs, nodes}: let | |
dnsAddress = dnsServerIP nodes; | |
in pkgs.writeShellScript "dns-hook.sh" '' | |
set -euo pipefail | |
echo '[INFO]' "[$2]" 'dns-hook.sh' $* |
# This can be built with nixos-rebuild --flake .#myhost build | |
{ | |
description = "the simplest flake for nixos-rebuild"; | |
inputs = { | |
nixpkgs = { | |
# Using the nixos-unstable branch specifically, which is the | |
# closest you can get to following the equivalent channel with flakes. | |
url = "github:NixOS/nixpkgs/nixos-unstable"; | |
}; |