mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-09 22:12:56 +00:00
enable backups without any specific
This commit is contained in:
parent
a7fe90b236
commit
ab9136af2c
@ -41,6 +41,12 @@ nixpkgs.lib.nixosSystem {
|
||||
wsl.enable = false;
|
||||
caddy.enable = true;
|
||||
|
||||
backup.s3 = {
|
||||
endpoint = "s3.us-west-002.backblazeb2.com";
|
||||
bucket = "noahmasur-backup";
|
||||
accessKeyId = "0026b0e73b2e2c80000000005";
|
||||
};
|
||||
|
||||
# Disable passwords, only use SSH key
|
||||
publicKey =
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB+AbmjGEwITk5CK9y7+Rg27Fokgj9QEjgc9wST6MA3s";
|
||||
|
@ -27,7 +27,7 @@
|
||||
users.groups.backup = { };
|
||||
|
||||
secrets.backup = {
|
||||
source = ../../private/backup.age;
|
||||
source = ../../../private/backup.age;
|
||||
dest = "${config.secretsDirectory}/backup";
|
||||
group = "backup";
|
||||
permissions = "0440";
|
||||
@ -38,6 +38,7 @@
|
||||
services.litestream = {
|
||||
enable = true;
|
||||
environmentFile = config.secrets.backup.dest;
|
||||
settings = { };
|
||||
};
|
||||
|
||||
# Wait for secret to exist
|
||||
|
Loading…
Reference in New Issue
Block a user