From 9ad4b4c27eb6528a6017be64c5b7429343e3a2f2 Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Sun, 21 Apr 2024 17:12:52 +0200 Subject: [PATCH] borg: sigma --- hosts/sigma/borg.nix | 14 ++++++++++++++ hosts/sigma/default.nix | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 hosts/sigma/borg.nix diff --git a/hosts/sigma/borg.nix b/hosts/sigma/borg.nix new file mode 100644 index 0000000..4589195 --- /dev/null +++ b/hosts/sigma/borg.nix @@ -0,0 +1,14 @@ +{secrets, ...}: { + imports = [ + ../../modules/borg.nix + ]; + + services.borgbackup.jobs.root.repo = "ssh://u394155-sub3@u394155.your-storagebox.de:23/./root"; + + age.secrets.borg-passphrase-file = { + file = "${secrets}/secrets/borg-passphrase-file-sigma.age"; + mode = "400"; + owner = "root"; + group = "root"; + }; +} diff --git a/hosts/sigma/default.nix b/hosts/sigma/default.nix index 969053d..bbd590a 100644 --- a/hosts/sigma/default.nix +++ b/hosts/sigma/default.nix @@ -4,7 +4,7 @@ ../../modules/base ../../modules/server ./acme.nix - #./borg.nix TODO! + ./borg.nix ./caddy.nix ./gitea.nix ./hardware.nix