summaryrefslogtreecommitdiff
path: root/node/backup.jras.nl/default.nix
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2025-03-27 20:36:23 +0100
committerJasper Ras <jras@hostnet.nl>2025-03-27 20:36:23 +0100
commit5956e07b4c8de365bf3d9ffc7db081cedcbd852a (patch)
tree3fb6861a965109b482bc5c016784993f785bee28 /node/backup.jras.nl/default.nix
parent517fb4f0a0f0111e328544470aca84f8e3e120bc (diff)
fixed syncoid
Diffstat (limited to 'node/backup.jras.nl/default.nix')
-rw-r--r--node/backup.jras.nl/default.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/node/backup.jras.nl/default.nix b/node/backup.jras.nl/default.nix
index 515a4db..2857536 100644
--- a/node/backup.jras.nl/default.nix
+++ b/node/backup.jras.nl/default.nix
@@ -34,4 +34,26 @@
}
];
};
+
+ users.users.transfer = {
+ openssh.authorizedKeys.keyFiles = [ ../../public/syncoid-key.pub ];
+ createHome = true;
+ home = "/persist/home/transfer";
+ isSystemUser = true;
+ useDefaultShell = true;
+ group = "users";
+ };
+
+ services.openssh.settings.AllowUsers = [ "transfer" ];
+ services.sanoid.enable = true;
+ services.sanoid.datasets = {
+ "backup" = {
+ autoprune = true;
+ autosnap = false;
+ hourly = 72;
+ daily = 7;
+ monthly = 1;
+ yearly = 1;
+ };
+ };
}