summaryrefslogtreecommitdiff
path: root/modules/snorlax
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
parent2414dc1eeb900b0113bd310fefae8e872f017015 (diff)
move syncoid to file
Diffstat (limited to 'modules/snorlax')
-rw-r--r--modules/snorlax/default.nix15
-rw-r--r--modules/snorlax/syncoid.nix14
2 files changed, 16 insertions, 13 deletions
diff --git a/modules/snorlax/default.nix b/modules/snorlax/default.nix
index 9cf1bfe..ee47d83 100644
--- a/modules/snorlax/default.nix
+++ b/modules/snorlax/default.nix
@@ -1,7 +1,8 @@
-{ config, lib, ... }:
+{ lib, ... }:
{
imports = [
./disk-config.nix
+ ./syncoid.nix
./git.nix
./samba.nix
./nginx.nix
@@ -22,16 +23,4 @@
time.timeZone = "Europe/Amsterdam";
home-manager.users.jras = { home.stateVersion = "24.11"; };
-
- 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";
- };
}
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";
+ };
+}