Skip to content

TawasalMessenger/pgbackuprestore-flake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pgbackuprestore-flake

Nixos module for pgBackupRestore.

Usage: pgbackrest [options] [command]

Install

Global installation for NixOS

/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
    ];