Reduce folders in syncthing

Only sync pictures and zotero library using syncthing, moving the rest
to NextCloud
This commit is contained in:
Evie Litherland-Smith 2023-10-19 08:29:32 +01:00
parent 50eb2a8190
commit 2bd6193286
6 changed files with 6 additions and 74 deletions

View file

@ -33,14 +33,7 @@ in {
in { in {
inherit dataDir; inherit dataDir;
settings.folders = { settings.folders = {
"Archive".path = dataDir + "/Archive";
"Books".path = dataDir + "/Books";
"Comics".path = dataDir + "/Comics";
"Documents".path = dataDir + "/Documents";
"Exports".path = dataDir + "/Exports";
"Notes".path = dataDir + "/Notes";
"Pictures".path = dataDir + "/Pictures"; "Pictures".path = dataDir + "/Pictures";
"Tasks".path = dataDir + "/Tasks";
"Zotero".path = dataDir + "/Zotero"; "Zotero".path = dataDir + "/Zotero";
}; };
}; };

View file

@ -14,5 +14,4 @@
}; };
emacs.package = pkgs.emacs29; emacs.package = pkgs.emacs29;
}; };
services.syncthing.enable = true;
} }

View file

@ -17,12 +17,5 @@
''; '';
systemPackages = with pkgs; [ openfortivpn ]; systemPackages = with pkgs; [ openfortivpn ];
}; };
services.syncthing.settings.folders = { services.syncthing.settings.folders = { "Pictures".enable = false; };
"Archive".enable = false;
"Books".enable = false;
"Comics".enable = false;
"Documents".enable = false;
"Exports".enable = false;
"Pictures".enable = false;
};
} }

View file

@ -16,12 +16,5 @@
boot.initrd.luks.devices."luks-47d34268-5100-4eba-b34d-220f4239c1cb".keyFile = boot.initrd.luks.devices."luks-47d34268-5100-4eba-b34d-220f4239c1cb".keyFile =
"/crypto_keyfile.bin"; "/crypto_keyfile.bin";
services.syncthing.settings.folders = { services.syncthing.settings.folders = { "Pictures".enable = false; };
"Archive".enable = false;
"Books".enable = false;
"Comics".enable = false;
"Documents".enable = false;
"Exports".enable = false;
"Pictures".enable = false;
};
} }

View file

@ -3,12 +3,4 @@
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{ ... }: { ... }:
{ { }
services.syncthing.settings.folders = {
"Archive".enable = false;
"Books".enable = false;
"Comics".enable = false;
"Exports".enable = false;
"Pictures".enable = false;
};
}

View file

@ -1,7 +1,5 @@
{ config, lib, pkgs, user, ... }: { config, lib, pkgs, user, ... }:
let let devices = [ "Ion" "Legion" "Northstar" "Ronin" "Scorch" "Vanguard" ];
devices = [ "Legion" "Northstar" "Ronin" "Scorch" "Vanguard" ];
devicesWithPhone = devices ++ [ "Ion" ];
in { in {
services.syncthing = { services.syncthing = {
inherit user; inherit user;
@ -26,53 +24,17 @@ in {
"I366QNQ-D3FTDRX-RNOTXMW-YITZXOF-DSCDMQD-63Q72LI-ME2Y4HZ-T34RMQK"; "I366QNQ-D3FTDRX-RNOTXMW-YITZXOF-DSCDMQD-63Q72LI-ME2Y4HZ-T34RMQK";
}; };
folders = { folders = {
"Archive" = {
inherit devices;
id = "hwnqy-xzcdx";
path = lib.mkDefault "~/Documents/Archive";
ignorePerms = true;
};
"Books" = {
inherit devices;
id = "zjmxy-ycmbq";
path = lib.mkDefault "~/Documents/Books";
ignorePerms = true;
};
"Comics" = {
inherit devices;
id = "kc2h0-q3wot";
path = lib.mkDefault "~/Documents/Comics";
ignorePerms = true;
};
"Documents" = {
id = "qc6qa-bipsd";
path = lib.mkDefault "~/Documents/Sync";
ignorePerms = true;
devices = devicesWithPhone;
};
"Exports" = {
inherit devices;
id = "tof2e-pdtde";
path = lib.mkDefault "~/Documents/Exports";
ignorePerms = true;
};
"Notes" = {
id = "4ggjz-5dyop";
path = lib.mkDefault "~/Notes";
ignorePerms = true;
devices = devicesWithPhone;
};
"Pictures" = { "Pictures" = {
id = "ziuj8-rm6dn"; id = "ziuj8-rm6dn";
path = lib.mkDefault "~/Pictures"; path = lib.mkDefault "~/Pictures";
ignorePerms = true; ignorePerms = true;
devices = devicesWithPhone; devices = devices;
}; };
"Zotero" = { "Zotero" = {
id = "huyvn-liwc9"; id = "huyvn-liwc9";
path = lib.mkDefault "~/Documents/Zotero"; path = lib.mkDefault "~/Documents/Zotero";
ignorePerms = true; ignorePerms = true;
devices = devicesWithPhone; devices = devices;
}; };
}; };
}; };