Adjust syncthing conf
This commit is contained in:
parent
a4c999b4fc
commit
d285e7647c
1 changed files with 16 additions and 26 deletions
|
@ -15,6 +15,18 @@
|
||||||
dataDir = config.users.users.${config.services.syncthing.user}.home;
|
dataDir = config.users.users.${config.services.syncthing.user}.home;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
|
defaults.ignores = [
|
||||||
|
"/Projects/Programming"
|
||||||
|
];
|
||||||
|
|
||||||
|
options = {
|
||||||
|
urAccepted = -1;
|
||||||
|
localAnnounceEnabled = false;
|
||||||
|
globalAnnounceEnabled = false;
|
||||||
|
natEnabled = false;
|
||||||
|
relaysEnabled = false;
|
||||||
|
};
|
||||||
|
|
||||||
devices = pkgs.lib.mkMerge [
|
devices = pkgs.lib.mkMerge [
|
||||||
{
|
{
|
||||||
"syncthing" = {
|
"syncthing" = {
|
||||||
|
@ -31,10 +43,6 @@
|
||||||
id = "S4ZORDV-QBY7QC7-FQHADMZ-NQSKJUA-7B7LQNS-CWJLSMG-JPMN7YJ-OVRDZQA";
|
id = "S4ZORDV-QBY7QC7-FQHADMZ-NQSKJUA-7B7LQNS-CWJLSMG-JPMN7YJ-OVRDZQA";
|
||||||
addresses = [ "tcp://lithium.vsinerva.fi:22000" ];
|
addresses = [ "tcp://lithium.vsinerva.fi:22000" ];
|
||||||
};
|
};
|
||||||
"phone" = {
|
|
||||||
id = "K6QCK2R-BU65RAC-PHTGLIA-24IHDXE-N6VNBAW-QYREMVD-XWGWKRA-VX2BNAK";
|
|
||||||
addresses = [ "tcp://phone.vsinerva.fi:22000" ];
|
|
||||||
};
|
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -46,7 +54,6 @@
|
||||||
(pkgs.lib.mkIf (config.networking.hostName == "syncthing") [
|
(pkgs.lib.mkIf (config.networking.hostName == "syncthing") [
|
||||||
"helium"
|
"helium"
|
||||||
"lithium"
|
"lithium"
|
||||||
"phone"
|
|
||||||
])
|
])
|
||||||
];
|
];
|
||||||
versioning = {
|
versioning = {
|
||||||
|
@ -55,34 +62,17 @@
|
||||||
};
|
};
|
||||||
fsWatcherDelayS = 1;
|
fsWatcherDelayS = 1;
|
||||||
};
|
};
|
||||||
default-no-phone = default // {
|
|
||||||
devices = pkgs.lib.mkMerge [
|
|
||||||
[ "syncthing" ]
|
|
||||||
(pkgs.lib.mkIf (config.networking.hostName == "syncthing") [
|
|
||||||
"helium"
|
|
||||||
"lithium"
|
|
||||||
])
|
|
||||||
];
|
|
||||||
};
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
"~/Documents" = default;
|
"~/Documents" = default;
|
||||||
"~/Downloads" = default-no-phone;
|
"~/Downloads" = default;
|
||||||
"~/Music" = default-no-phone;
|
"~/Music" = default;
|
||||||
"~/Pictures" = default;
|
"~/Pictures" = default;
|
||||||
"~/Projects" = default-no-phone;
|
"~/Projects" = default;
|
||||||
"~/School" = default;
|
"~/School" = default;
|
||||||
"~/Videos" = default-no-phone;
|
"~/Videos" = default;
|
||||||
"~/Zotero" = default;
|
"~/Zotero" = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
options = {
|
|
||||||
urAccepted = -1;
|
|
||||||
localAnnounceEnabled = false;
|
|
||||||
globalAnnounceEnabled = false;
|
|
||||||
natEnabled = false;
|
|
||||||
relaysEnabled = false;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#TCP/UDP 22000 for transfers and UDP 21027 for discovery
|
#TCP/UDP 22000 for transfers and UDP 21027 for discovery
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue