remove restic azure
This commit is contained in:
parent
0fc512c3c6
commit
e634f2a628
6 changed files with 40 additions and 48 deletions
|
@ -11,7 +11,6 @@
|
|||
sops.age.keyFile = "/root/.config/sops/age/keys.txt";
|
||||
sops.secrets = {
|
||||
"borg/yt" = { };
|
||||
"restic/azure-yt" = { };
|
||||
"azure" = { };
|
||||
"ntfy" = { };
|
||||
};
|
||||
|
@ -145,6 +144,8 @@
|
|||
aw-watcher-window-wayland
|
||||
aw-qt
|
||||
aw-watcher-afk
|
||||
sshfs
|
||||
nextcloud-client
|
||||
|
||||
(callPackage ./anki-bin.nix {})
|
||||
];
|
||||
|
@ -255,43 +256,6 @@
|
|||
'';
|
||||
};
|
||||
|
||||
services.restic.backups.ytazure = {
|
||||
paths = [ "/root" "/home" "/var/lib" "/var/log" "/opt" "/etc" ];
|
||||
exclude = [
|
||||
".git"
|
||||
"**/.cache"
|
||||
"**/node_modules"
|
||||
"**/cache"
|
||||
"**/Cache"
|
||||
"/var/lib/docker"
|
||||
"/home/**/Downloads"
|
||||
"**/.steam"
|
||||
"**/.rustup"
|
||||
"**/.docker"
|
||||
"**/borg"
|
||||
];
|
||||
passwordFile = "/run/secrets/restic/azure-yt";
|
||||
environmentFile = "/run/secrets/azure";
|
||||
repository = "azure:yt-backup:/";
|
||||
extraOptions = [
|
||||
"azure.access-tier=Archive"
|
||||
];
|
||||
package = pkgs.restic.overrideAttrs {
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "restic";
|
||||
repo = "restic";
|
||||
rev = "1133498ef80762608f959df41d303f7246fff04f";
|
||||
hash = "sha256-RmCEZ5T99uNNDwrQ3CofXBf4UzNjelVzyZyvx5aZO0A=";
|
||||
};
|
||||
vendorHash = "sha256-TstuI6KgAFEQH90PCZMN6s4dUab2GyPKqOtqMfIV8wA=";
|
||||
};
|
||||
backupCleanupCommand = ''
|
||||
${pkgs.curl}/bin/curl -u $(cat /run/secrets/ntfy) -d "ytazure: backup completed with exit code: $exitStatus
|
||||
$(journalctl -u restic-backups-ytazure.service|tail -n 5)" \
|
||||
https://ntfy.cything.io/chunk
|
||||
'';
|
||||
};
|
||||
|
||||
services.btrbk.instances.local = {
|
||||
onCalendar = "hourly";
|
||||
settings = {
|
||||
|
@ -380,4 +344,11 @@
|
|||
enable = true;
|
||||
wlr.enable = true;
|
||||
};
|
||||
|
||||
nix.optimise = {
|
||||
automatic = true;
|
||||
dates = [ "03:45" ];
|
||||
};
|
||||
|
||||
nix.settings.auto-optimise-store = true;
|
||||
}
|
||||
|
|
12
nix/flake.lock
generated
12
nix/flake.lock
generated
|
@ -7,11 +7,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1733389730,
|
||||
"narHash": "sha256-KZMu4ddMll5khS0rYkJsVD0hVqjMNHlhTM3PCQar0Ag=",
|
||||
"lastModified": 1733484277,
|
||||
"narHash": "sha256-i5ay20XsvpW91N4URET/nOc0VQWOAd4c4vbqYtcH8Rc=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "65912bc6841cf420eb8c0a20e03df7cbbff5963f",
|
||||
"rev": "d00c6f6d0ad16d598bf7e2956f52c1d9d5de3c3a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -22,11 +22,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1733212471,
|
||||
"narHash": "sha256-M1+uCoV5igihRfcUKrr1riygbe73/dzNnzPsmaLCmpo=",
|
||||
"lastModified": 1733392399,
|
||||
"narHash": "sha256-kEsTJTUQfQFIJOcLYFt/RvNxIK653ZkTBIs4DG+cBns=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "55d15ad12a74eb7d4646254e13638ad0c4128776",
|
||||
"rev": "d0797a04b81caeae77bcff10a9dde78bc17f5661",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue