mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-08-08 06:30:18 +02:00
huge refactoring
This commit is contained in:
parent
fffcee128e
commit
7a2fba99cd
30 changed files with 246 additions and 201 deletions
36
features/backups.nix
Normal file
36
features/backups.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
sops.secrets.borgRepoPassword = {};
|
||||
|
||||
opt.services.borgbackup.jobs = {
|
||||
localBackup = {
|
||||
paths = "/";
|
||||
exclude = [
|
||||
"/nix"
|
||||
"/srv/Multimedia"
|
||||
"/srv/media"
|
||||
];
|
||||
repo = "/srv/backups/serverBackups";
|
||||
doInit = true;
|
||||
encryption = {
|
||||
mode = "repokey";
|
||||
passCommand = "cat /run/secrets/borgRepoPassword";
|
||||
};
|
||||
compression = "auto,lzma";
|
||||
startAt = "weekly";
|
||||
};
|
||||
|
||||
borgPersonalServer = {
|
||||
authorizedKeys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHyeTAANyYqMFded6mJHWuhGVXROu3TqDV2b8icjolfO root@meowcats-silly-computer"
|
||||
];
|
||||
path = "/srv/backups/localComputerBackups";
|
||||
};
|
||||
|
||||
/*
|
||||
serverBackup = {
|
||||
|
||||
};
|
||||
*/
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue