summaryrefslogtreecommitdiff
path: root/modules/snorlax/syncoid.nix
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2025-03-23 20:28:05 +0100
committerJasper Ras <jras@hostnet.nl>2025-03-23 20:28:05 +0100
commit7a768cc5de8f0de198ea37ae1804af06dcf351ae (patch)
tree82c0e0e1008ff73918292694e2ed6edd388e0440 /modules/snorlax/syncoid.nix
parent2414dc1eeb900b0113bd310fefae8e872f017015 (diff)
move syncoid to file
Diffstat (limited to 'modules/snorlax/syncoid.nix')
-rw-r--r--modules/snorlax/syncoid.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/snorlax/syncoid.nix b/modules/snorlax/syncoid.nix
new file mode 100644
index 0000000..3d4654a
--- /dev/null
+++ b/modules/snorlax/syncoid.nix
@@ -0,0 +1,14 @@
+{ config, ... }:
+{
+ age.secrets.syncoid-key = {
+ file = ../../secrets/syncoid-key.age;
+ owner = "syncoid";
+ group = "syncoid";
+ };
+
+ services.syncoid.enable = true;
+ services.syncoid.sshKey = config.age.secrets.syncoid-key.path;
+ services.syncoid.commands = {
+ "data/safe/persist".target = "ubuntu@185.107.88.38:backup/snorlax";
+ };
+}