secrets: move borg backup to subdir
This commit is contained in:
parent
3b634acd78
commit
b861b1bba0
2
.gitattributes
vendored
2
.gitattributes
vendored
|
@ -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
|
secrets/wireguard.nix filter=git-crypt diff=git-crypt
|
||||||
home/secrets/*.secret filter=git-crypt diff=git-crypt
|
home/secrets/*.secret filter=git-crypt diff=git-crypt
|
||||||
|
|
|
@ -64,7 +64,7 @@ in
|
||||||
|
|
||||||
borg-backup = {
|
borg-backup = {
|
||||||
enable = true;
|
enable = true;
|
||||||
repo = secrets.borg-backup-repo;
|
repo = secrets.borg-backup.poseidon-repo;
|
||||||
};
|
};
|
||||||
|
|
||||||
fail2ban = {
|
fail2ban = {
|
||||||
|
|
4
secrets/borg-backup/default.nix
Normal file
4
secrets/borg-backup/default.nix
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{ lib }:
|
||||||
|
{
|
||||||
|
poseidon-repo = lib.fileContents ./poseidon-repo.secret;
|
||||||
|
}
|
|
@ -10,12 +10,13 @@ with lib;
|
||||||
shadow-hashed-password-alarsyo = lib.fileContents ./shadow-hashed-password-alarsyo.secret;
|
shadow-hashed-password-alarsyo = lib.fileContents ./shadow-hashed-password-alarsyo.secret;
|
||||||
shadow-hashed-password-root = lib.fileContents ./shadow-hashed-password-root.secret;
|
shadow-hashed-password-root = lib.fileContents ./shadow-hashed-password-root.secret;
|
||||||
miniflux-admin-credentials = lib.fileContents ./miniflux-admin-credentials.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;
|
transmission-password = lib.fileContents ./transmission.secret;
|
||||||
nextcloud-admin-pass = lib.fileContents ./nextcloud-admin-pass.secret;
|
nextcloud-admin-pass = lib.fileContents ./nextcloud-admin-pass.secret;
|
||||||
nextcloud-admin-user = lib.fileContents ./nextcloud-admin-user.secret;
|
nextcloud-admin-user = lib.fileContents ./nextcloud-admin-user.secret;
|
||||||
lohr-shared-secret = lib.fileContents ./lohr-shared-secret.secret;
|
lohr-shared-secret = lib.fileContents ./lohr-shared-secret.secret;
|
||||||
|
|
||||||
|
borg-backup = import ./borg-backup { inherit lib; };
|
||||||
|
|
||||||
wireguard = pkgs.callPackage ./wireguard.nix { };
|
wireguard = pkgs.callPackage ./wireguard.nix { };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue