Compare commits
2 commits
ac463949c7
...
e46677a3f6
Author | SHA1 | Date | |
---|---|---|---|
e46677a3f6 | |||
838f85f25d |
3 changed files with 10 additions and 3 deletions
|
@ -42,14 +42,21 @@ in {
|
||||||
];
|
];
|
||||||
|
|
||||||
services.restic.backups = lib.mkIf (inputs ? nix-secrets) {
|
services.restic.backups = lib.mkIf (inputs ? nix-secrets) {
|
||||||
remote = {
|
local = {
|
||||||
repositoryFile = config.sops.secrets.restic-url.path;
|
repositoryFile = "/backup/restic/";
|
||||||
passwordFile = config.sops.secrets.restic-password.path;
|
passwordFile = config.sops.secrets.restic-password.path;
|
||||||
initialize = true;
|
initialize = true;
|
||||||
paths = [
|
paths = [
|
||||||
"/storage/syncthing"
|
"/storage/syncthing"
|
||||||
"/storage/factorio"
|
"/storage/factorio"
|
||||||
];
|
];
|
||||||
|
pruneOpts=[
|
||||||
|
"--keep-within 14d"
|
||||||
|
"--keep-daily 14"
|
||||||
|
"--keep-weekly 8"
|
||||||
|
"--keep-monthly 12"
|
||||||
|
"--keep-yearly 10"
|
||||||
|
];
|
||||||
timerConfig = {
|
timerConfig = {
|
||||||
OnCalendar = "daily";
|
OnCalendar = "daily";
|
||||||
Persistent = true;
|
Persistent = true;
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
sshfs
|
sshfs
|
||||||
just
|
just
|
||||||
|
dua
|
||||||
fd
|
fd
|
||||||
sd
|
sd
|
||||||
curl
|
curl
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
tre-command
|
tre-command
|
||||||
hyperfine
|
hyperfine
|
||||||
dua
|
|
||||||
fclones
|
fclones
|
||||||
libqalculate
|
libqalculate
|
||||||
];
|
];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue