services: add postgres-backup
This commit is contained in:
parent
f766d093e2
commit
bfba8c005c
3 changed files with 19 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue