borg: wip

This commit is contained in:
Ingolf Wagner 2020-09-01 23:43:03 +02:00
parent 8f46c93e95
commit 025c31e7ae
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
3 changed files with 16 additions and 1 deletions

View 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>)
];
};
};
}

View file

@ -24,6 +24,7 @@
#./wetten.nix
./nextcloud.nix
./mattermost.nix
./borg.nix
];
# todo: add this to each file instead summing that here

View file

@ -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";