secrets: move borg backup to subdir

This commit is contained in:
Antoine Martin 2021-04-23 19:24:54 +02:00
parent 3b634acd78
commit b861b1bba0
5 changed files with 8 additions and 3 deletions

2
.gitattributes vendored
View file

@ -1,3 +1,3 @@
secrets/*.secret filter=git-crypt diff=git-crypt
secrets/**/*.secret filter=git-crypt diff=git-crypt
secrets/wireguard.nix filter=git-crypt diff=git-crypt
home/secrets/*.secret filter=git-crypt diff=git-crypt

View file

@ -64,7 +64,7 @@ in
borg-backup = {
enable = true;
repo = secrets.borg-backup-repo;
repo = secrets.borg-backup.poseidon-repo;
};
fail2ban = {

View file

@ -0,0 +1,4 @@
{ lib }:
{
poseidon-repo = lib.fileContents ./poseidon-repo.secret;
}

View file

@ -10,12 +10,13 @@ with lib;
shadow-hashed-password-alarsyo = lib.fileContents ./shadow-hashed-password-alarsyo.secret;
shadow-hashed-password-root = lib.fileContents ./shadow-hashed-password-root.secret;
miniflux-admin-credentials = lib.fileContents ./miniflux-admin-credentials.secret;
borg-backup-repo = lib.fileContents ./borg-backup-repo.secret;
transmission-password = lib.fileContents ./transmission.secret;
nextcloud-admin-pass = lib.fileContents ./nextcloud-admin-pass.secret;
nextcloud-admin-user = lib.fileContents ./nextcloud-admin-user.secret;
lohr-shared-secret = lib.fileContents ./lohr-shared-secret.secret;
borg-backup = import ./borg-backup { inherit lib; };
wireguard = pkgs.callPackage ./wireguard.nix { };
};
}