mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-10 02:52:55 +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;
|
wsl.enable = false;
|
||||||
caddy.enable = true;
|
caddy.enable = true;
|
||||||
|
|
||||||
|
backup.s3 = {
|
||||||
|
endpoint = "s3.us-west-002.backblazeb2.com";
|
||||||
|
bucket = "noahmasur-backup";
|
||||||
|
accessKeyId = "0026b0e73b2e2c80000000005";
|
||||||
|
};
|
||||||
|
|
||||||
# Disable passwords, only use SSH key
|
# Disable passwords, only use SSH key
|
||||||
publicKey =
|
publicKey =
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB+AbmjGEwITk5CK9y7+Rg27Fokgj9QEjgc9wST6MA3s";
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB+AbmjGEwITk5CK9y7+Rg27Fokgj9QEjgc9wST6MA3s";
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
users.groups.backup = { };
|
users.groups.backup = { };
|
||||||
|
|
||||||
secrets.backup = {
|
secrets.backup = {
|
||||||
source = ../../private/backup.age;
|
source = ../../../private/backup.age;
|
||||||
dest = "${config.secretsDirectory}/backup";
|
dest = "${config.secretsDirectory}/backup";
|
||||||
group = "backup";
|
group = "backup";
|
||||||
permissions = "0440";
|
permissions = "0440";
|
||||||
@ -38,6 +38,7 @@
|
|||||||
services.litestream = {
|
services.litestream = {
|
||||||
enable = true;
|
enable = true;
|
||||||
environmentFile = config.secrets.backup.dest;
|
environmentFile = config.secrets.backup.dest;
|
||||||
|
settings = { };
|
||||||
};
|
};
|
||||||
|
|
||||||
# Wait for secret to exist
|
# Wait for secret to exist
|
||||||
|
Loading…
Reference in New Issue
Block a user