restic: add pepe as backup target

This commit is contained in:
Ingolf Wagner 2020-04-29 20:27:49 +02:00
parent eca3701605
commit 0a01174657
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
9 changed files with 18 additions and 25 deletions

View file

@ -1,5 +1,6 @@
{ {
backup.services.restic = { backup.services.restic = {
"on-pepe.insecure".enable = false;
"on-porani.insecure".enable = false; "on-porani.insecure".enable = false;
"on-workhorse.private".enable = false; "on-workhorse.private".enable = false;
"on-workout.private".enable = false; "on-workout.private".enable = false;

View file

@ -6,6 +6,7 @@
./nginx.nix ./nginx.nix
./tinc.nix ./tinc.nix
./restic.nix
#./syncplay.nix #./syncplay.nix
#./mail-server.nix #./mail-server.nix

View file

@ -0,0 +1,8 @@
{
backup.services.restic = {
"on-pepe.private".enable = false;
"on-porani.insecure".enable = false;
"on-workhorse.private".enable = false;
"on-workout.private".enable = false;
};
}

View file

@ -16,7 +16,6 @@
./mail-fetcher.nix ./mail-fetcher.nix
./packages.nix ./packages.nix
./prometheus.nix ./prometheus.nix
./restic.nix
./syncthing.nix ./syncthing.nix
./taskserver.nix ./taskserver.nix
./tinc.nix ./tinc.nix

View file

@ -1,8 +0,0 @@
{ config, ... }: {
backup.services.restic = {
"on-porani.insecure".enable = true;
"on-workhorse.private".enable = true;
};
}

View file

@ -8,10 +8,16 @@
}; };
config = let config = let
servers = [ "porani.insecure" "workhorse.private" "workout.private" ]; servers = [
"porani.insecure"
"workhorse.private"
"workout.private"
"pepe.private"
];
dirs = config.backup.all.restic.dirs; dirs = config.backup.all.restic.dirs;
setup = server: { setup = server: {
enable = lib.mkDefault true;
passwordFile = toString <secrets/backup/restic-repo>; passwordFile = toString <secrets/backup/restic-repo>;
repo = "sftp::backup/remote-${config.networking.hostName}"; repo = "sftp::backup/remote-${config.networking.hostName}";
requires = [ ]; requires = [ ];

View file

@ -1,10 +1,6 @@
{ lib, ... }: { { lib, ... }: {
backup.services.restic = { backup.services.restic = { "on-porani.insecure".enable = false; };
"on-porani.insecure".enable = lib.mkDefault true;
"on-workhorse.private".enable = lib.mkDefault true;
"on-workout.private".enable = lib.mkDefault true;
};
backup.all.restic.dirs = [ "/home/palo/.password-store" ]; backup.all.restic.dirs = [ "/home/palo/.password-store" ];

View file

@ -6,7 +6,6 @@
./initssh.nix ./initssh.nix
./graylog-exporter.nix ./graylog-exporter.nix
./prometheus-exporters.nix ./prometheus-exporters.nix
./restic.nix
]; ];
# make sure laptops stay awake when closing the montior # make sure laptops stay awake when closing the montior

View file

@ -1,9 +0,0 @@
{ lib, ... }: {
backup.services.restic = {
"on-porani.insecure".enable = lib.mkDefault true;
"on-workhorse.private".enable = lib.mkDefault true;
"on-workout.private".enable = lib.mkDefault true;
};
}