borg: wip
This commit is contained in:
parent
8f46c93e95
commit
025c31e7ae
3 changed files with 16 additions and 1 deletions
14
configs/workhorse/borg.nix
Normal file
14
configs/workhorse/borg.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ lib, config, pkgs, ... }: {
|
||||
|
||||
services.borgbackup.repos = {
|
||||
default = {
|
||||
quota = "100G";
|
||||
allowSubRepos = true;
|
||||
authorizedKeysAppendOnly = [
|
||||
# todo rename this one
|
||||
(toString <common_secrets/backup/sftp-user_rsa.pub>)
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
}
|
|
@ -24,6 +24,7 @@
|
|||
#./wetten.nix
|
||||
./nextcloud.nix
|
||||
./mattermost.nix
|
||||
./borg.nix
|
||||
];
|
||||
|
||||
# todo: add this to each file instead summing that here
|
||||
|
|
|
@ -55,7 +55,7 @@ in {
|
|||
|
||||
# var/lib/docker
|
||||
# --------------
|
||||
fileSystems."/var/lib/docker" = {
|
||||
fileSystems."/var/lib/borgbackup" = {
|
||||
options = [ "noatime" "nodiratime" ];
|
||||
device = "/dev/mapper/decrypted_docker";
|
||||
fsType = "ext4";
|
||||
|
|
Loading…
Reference in a new issue