Nixos module for pgBackupRestore.
Usage: pgbackrest [options] [command]
/etc/nixos/configuration.nix:
{
# ...
imports = [
(import (fetchTarball {
url = "https://github.com/TawasalMessenger/pgbackuprestore-flake/archive/2.22.tar.gz";
sha256 = "138mg34ari5qb9awksh0na0m21b17hgcrgdn7wnwnkngcvhmbkis";
})).nixosModule
];
nix = {
package = pkgs.nixFlakes;
extraOptions = ''
experimental-features = nix-command flakes;
'';
};
environment.systemPackages = with pkgs; [
...
pgbr
];