change backup frequency
This commit is contained in:
parent
a7de77a0fc
commit
48d8bacea8
4 changed files with 7 additions and 8 deletions
|
@ -53,6 +53,7 @@
|
||||||
toolchain:
|
toolchain:
|
||||||
toolchain.default.override {
|
toolchain.default.override {
|
||||||
extensions = [ "rust-src" ];
|
extensions = [ "rust-src" ];
|
||||||
|
targets = [ "aarch64-unknown-linux-musl" ];
|
||||||
}
|
}
|
||||||
))
|
))
|
||||||
pwgen
|
pwgen
|
||||||
|
|
|
@ -19,8 +19,5 @@
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
services.postgresqlBackup = {
|
services.postgresqlBackup.enable = true;
|
||||||
enable = true;
|
|
||||||
startAt = "hourly";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,7 +87,7 @@
|
||||||
resolvconf.enable = true;
|
resolvconf.enable = true;
|
||||||
firewall = {
|
firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
trustedInterfaces = [ "tailscale0" ];
|
trustedInterfaces = [ "tailscale0" "virbr0" ];
|
||||||
# allowedTCPPorts = [
|
# allowedTCPPorts = [
|
||||||
# 8080 # mitmproxy
|
# 8080 # mitmproxy
|
||||||
# 22000 # syncthing
|
# 22000 # syncthing
|
||||||
|
|
|
@ -47,7 +47,7 @@ in
|
||||||
};
|
};
|
||||||
startAt = lib.mkOption {
|
startAt = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
default = "hourly";
|
default = "daily";
|
||||||
description = "see systemd.timer(5)";
|
description = "see systemd.timer(5)";
|
||||||
};
|
};
|
||||||
jobName = lib.mkOption {
|
jobName = lib.mkOption {
|
||||||
|
@ -98,8 +98,9 @@ in
|
||||||
failOnWarnings = false;
|
failOnWarnings = false;
|
||||||
|
|
||||||
prune.keep = {
|
prune.keep = {
|
||||||
within = "2d";
|
daily = 7;
|
||||||
daily = 365;
|
weekly = 12;
|
||||||
|
monthly = -1;
|
||||||
};
|
};
|
||||||
extraPruneArgs = [ "--stats" ];
|
extraPruneArgs = [ "--stats" ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue