Move syncthing options to new format
This commit is contained in:
parent
63d6a617c1
commit
d5098eb264
5 changed files with 33 additions and 33 deletions
|
|
@ -5,11 +5,10 @@
|
||||||
overrideDevices = true;
|
overrideDevices = true;
|
||||||
overrideFolders = true;
|
overrideFolders = true;
|
||||||
openDefaultPorts = true;
|
openDefaultPorts = true;
|
||||||
extraOptions = {
|
settings = {
|
||||||
options = {
|
options = {
|
||||||
urAccepted = 3;
|
urAccepted = 3;
|
||||||
};
|
};
|
||||||
};
|
|
||||||
# Set up devices and folders common to every device
|
# Set up devices and folders common to every device
|
||||||
devices = {
|
devices = {
|
||||||
"phone" = {
|
"phone" = {
|
||||||
|
|
@ -41,4 +40,5 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
user = "toast";
|
user = "toast";
|
||||||
group = "users";
|
group = "users";
|
||||||
dataDir = config.users.users.toast.home;
|
dataDir = config.users.users.toast.home;
|
||||||
folders."passwords".path = "~/Documents/Passwords";
|
settings.folders."passwords".path = "~/Documents/Passwords";
|
||||||
};
|
};
|
||||||
# Allow regular users to stop syncthing
|
# Allow regular users to stop syncthing
|
||||||
# https://stackoverflow.com/questions/61480914/using-policykit-to-allow-non-root-users-to-start-and-stop-a-service
|
# https://stackoverflow.com/questions/61480914/using-policykit-to-allow-non-root-users-to-start-and-stop-a-service
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
TODO: turn this into a module eventually
|
TODO: turn this into a module eventually
|
||||||
*/
|
*/
|
||||||
|
|
||||||
services.syncthing.folders = {
|
services.syncthing.settings.folders = {
|
||||||
"steam-201810" = {
|
"steam-201810" = {
|
||||||
label = "Wolfenstein The New Order Saves";
|
label = "Wolfenstein The New Order Saves";
|
||||||
id = "laxxf-t2wmy";
|
id = "laxxf-t2wmy";
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
services.syncthing.folders = {
|
services.syncthing.settings.folders = {
|
||||||
"school-things" = {
|
"school-things" = {
|
||||||
label = "School things";
|
label = "School things";
|
||||||
id = "z6alc-nfoqr";
|
id = "z6alc-nfoqr";
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
key = config.age.secrets.syncthingKey.path;
|
key = config.age.secrets.syncthingKey.path;
|
||||||
cert = config.age.secrets.syncthingCert.path;
|
cert = config.age.secrets.syncthingCert.path;
|
||||||
guiAddress = "0.0.0.0:8384";
|
guiAddress = "0.0.0.0:8384";
|
||||||
folders = {
|
settings.folders = {
|
||||||
"passwords" = {
|
"passwords" = {
|
||||||
path = "${config.services.syncthing.dataDir}/passwords";
|
path = "${config.services.syncthing.dataDir}/passwords";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue