add backup stuff
Some checks failed
Test action / kaas (push) Failing after 1s

This commit is contained in:
Chris Kruining 2026-04-12 17:53:37 +02:00
parent 03bd906aef
commit 66fc9e532a
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2

View file

@ -1,9 +1,21 @@
{...}: { {
pkgs,
config,
...
}: {
imports = [ imports = [
./disks.nix ./disks.nix
./hardware.nix ./hardware.nix
]; ];
environment.systemPackages = with pkgs; [bup];
services.postgresqlBackup = {
enable = true;
backupAll = true;
startAt = "*-*-* 01:00:00";
location = "/var/backup/postgresql";
};
networking = { networking = {
interfaces.enp2s0 = { interfaces.enp2s0 = {
ipv6.addresses = [ ipv6.addresses = [