2020-04-29 02:50:17 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2020-06-01 19:39:12 +02:00
|
|
|
# ZFS automatic backup solution
|
2020-04-29 02:50:17 +02:00
|
|
|
services.znapzend = {
|
|
|
|
enable = true;
|
|
|
|
autoCreation = true;
|
|
|
|
features = {
|
|
|
|
compressed = true;
|
|
|
|
recvu = true;
|
|
|
|
};
|
2020-12-01 16:09:12 +01:00
|
|
|
pure = true;
|
2020-04-29 02:50:17 +02:00
|
|
|
zetup = {
|
2020-12-01 16:09:12 +01:00
|
|
|
"syscea/stateful/root".plan =
|
|
|
|
"1day=>1hour,2week=>1day,1month=>1week,1year=>1month";
|
2020-05-09 01:17:35 +02:00
|
|
|
|
2020-12-01 16:09:12 +01:00
|
|
|
"syscea/stateful/home".plan =
|
|
|
|
"1day=>1hour,2week=>1day,1month=>1week,1year=>1month";
|
2020-04-29 02:50:17 +02:00
|
|
|
};
|
|
|
|
};
|
2020-04-30 03:02:54 +02:00
|
|
|
|
|
|
|
# Syncthing configuration
|
|
|
|
services.syncthing = {
|
|
|
|
enable = true;
|
2020-05-09 18:53:22 +02:00
|
|
|
user = "coolneng";
|
2020-04-30 03:02:54 +02:00
|
|
|
dataDir = "/home/coolneng";
|
|
|
|
declarative = {
|
|
|
|
devices = {
|
2020-06-01 19:39:12 +02:00
|
|
|
zion = {
|
|
|
|
id =
|
|
|
|
"XABIMVG-K5RKMAF-KNC33AR-TDAVEGK-GHUIVFD-NIFCX6L-6PQXRM5-KLK2PAU";
|
2020-09-14 18:08:46 +02:00
|
|
|
addresses = [ "tcp://10.8.0.1:22000" ];
|
2020-06-01 19:39:12 +02:00
|
|
|
};
|
2020-04-30 03:02:54 +02:00
|
|
|
};
|
|
|
|
folders = {
|
|
|
|
Documents = {
|
|
|
|
id = "wusdj-bfjkr";
|
|
|
|
path = "/home/coolneng/Documents";
|
|
|
|
devices = [ "zion" ];
|
|
|
|
versioning = {
|
|
|
|
type = "simple";
|
2020-06-01 19:39:12 +02:00
|
|
|
params = { keep = "5"; };
|
2020-04-30 03:02:54 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
Notes = {
|
|
|
|
id = "kafhz-bfmzm";
|
|
|
|
path = "/home/coolneng/Notes";
|
|
|
|
devices = [ "zion" ];
|
|
|
|
versioning = {
|
|
|
|
type = "simple";
|
2020-06-01 19:39:12 +02:00
|
|
|
params = { keep = "5"; };
|
2020-04-30 03:02:54 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
Music = {
|
|
|
|
id = "2aqt7-vpprc";
|
|
|
|
path = "/home/coolneng/Music";
|
|
|
|
devices = [ "zion" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
Photos = {
|
|
|
|
id = "mjibc-ustcg";
|
|
|
|
path = "/home/coolneng/Photos";
|
|
|
|
devices = [ "zion" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
Projects = {
|
|
|
|
id = "cjhmu-avy9v";
|
|
|
|
path = "/home/coolneng/Projects";
|
|
|
|
devices = [ "zion" ];
|
|
|
|
};
|
2020-12-11 14:27:02 +01:00
|
|
|
Phone = {
|
|
|
|
id = "m2007j20cg_288y-photos";
|
|
|
|
type = "receiveonly";
|
|
|
|
path = "/home/coolneng/Photos/Phone";
|
|
|
|
devices = [ "zion" ];
|
|
|
|
};
|
2020-04-30 03:02:54 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2020-04-29 02:50:17 +02:00
|
|
|
}
|