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 {
inherit dataDir;
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";
"Tasks".path = dataDir + "/Tasks";
"Zotero".path = dataDir + "/Zotero";
};
};

View file

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

View file

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

View file

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

View file

@ -3,12 +3,4 @@
# 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, ... }:
let
devices = [ "Legion" "Northstar" "Ronin" "Scorch" "Vanguard" ];
devicesWithPhone = devices ++ [ "Ion" ];
let devices = [ "Ion" "Legion" "Northstar" "Ronin" "Scorch" "Vanguard" ];
in {
services.syncthing = {
inherit user;
@ -26,53 +24,17 @@ in {
"I366QNQ-D3FTDRX-RNOTXMW-YITZXOF-DSCDMQD-63Q72LI-ME2Y4HZ-T34RMQK";
};
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" = {
id = "ziuj8-rm6dn";
path = lib.mkDefault "~/Pictures";
ignorePerms = true;
devices = devicesWithPhone;
devices = devices;
};
"Zotero" = {
id = "huyvn-liwc9";
path = lib.mkDefault "~/Documents/Zotero";
ignorePerms = true;
devices = devicesWithPhone;
devices = devices;
};
};
};