format all code with alejandra

This commit is contained in:
Antoine Martin 2022-04-10 11:54:58 +02:00
parent fa0cda2673
commit 4f0d45e4d5
89 changed files with 1605 additions and 1298 deletions

View file

@ -1,10 +1,14 @@
{ config, lib, pkgs, ... }:
let
inherit (lib)
{
config,
lib,
pkgs,
...
}: let
inherit
(lib)
mkEnableOption
mkIf
;
;
cfg = config.my.services.postgresql-backup;
in {
@ -20,12 +24,11 @@ in {
};
my.services.restic-backup = mkIf cfg.enable {
paths = [ "/var/backup/postgresql" ];
paths = ["/var/backup/postgresql"];
# no need to store previously backed up files, as borg does the snapshoting
# for us
exclude = [ "/var/backup/postgresql/*.prev.sql.gz" ];
exclude = ["/var/backup/postgresql/*.prev.sql.gz"];
};
};
}