services: add postgres-backup
This commit is contained in:
parent
f766d093e2
commit
bfba8c005c
|
@ -93,6 +93,8 @@
|
|||
};
|
||||
# The whole *arr software suite
|
||||
pirate.enable = true;
|
||||
# Regular backups
|
||||
postgresql-backup.enable = true;
|
||||
# Usenet client
|
||||
sabnzbd.enable = true;
|
||||
# Torrent client and webui
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
./nextcloud.nix
|
||||
./nginx.nix
|
||||
./pirate.nix
|
||||
./postgresql-backup.nix
|
||||
./sabnzbd.nix
|
||||
./transmission.nix
|
||||
];
|
||||
|
|
16
services/postgresql-backup.nix
Normal file
16
services/postgresql-backup.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
# Backup your data, kids!
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.my.services.postgresql-backup;
|
||||
in
|
||||
{
|
||||
options.my.services.postgresql-backup = {
|
||||
enable = lib.mkEnableOption "Backup SQL databases";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.postgresqlBackup = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue