Move syncthing options to new format

This commit is contained in:
Toast 2023-12-01 00:00:42 +01:00
parent 20d4b6d48a
commit 7d9ec83e15
5 changed files with 33 additions and 33 deletions

View file

@ -5,39 +5,39 @@
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" = { name = "Xiaomi Redmi Note 10 Pro";
name = "Xiaomi Redmi Note 10 Pro"; id = "K7KNZ5V-XREUADL-CROQXPV-6AA4H65-2VUD34Z-VQWKJ6S-LWWW4EE-XPNEZQ6";
id = "K7KNZ5V-XREUADL-CROQXPV-6AA4H65-2VUD34Z-VQWKJ6S-LWWW4EE-XPNEZQ6"; };
"pc" = {
name = "Archie";
id = "NJPX754-64AQNP3-7GZFIRZ-W2EDRJQ-27ORWYM-X5YXEXQ-ERRTRTQ-BSYD4AY";
};
"steamdeck" = {
name = "Steam Deck";
id = "DNFEGEA-PDEVW5A-O5VBVQK-IUXI7J5-MAHCQAG-2JLEFFM-DSXB6AS-TX6ZHAN";
};
"server" = {
name = "Everest";
id = "BVJBCAZ-WDIWBFR-CK3WB3N-TWH3UXX-EPZXVWE-BLQ3IDU-U7MHVVB-WO4BKAJ";
};
"surface" = {
name = "Surface Go";
id = "HTVSF3O-AHY3TNH-BLVSEGK-HRRSMHC-H5LJWVF-NDKGM6O-ATWZALC-YXNV2Q4";
};
}; };
"pc" = { folders = {
name = "Archie"; "passwords" = {
id = "NJPX754-64AQNP3-7GZFIRZ-W2EDRJQ-27ORWYM-X5YXEXQ-ERRTRTQ-BSYD4AY"; label = "KeePassXC Passwords";
}; id = "rdyaq-ex659";
"steamdeck" = { devices = [ "phone" "pc" "steamdeck" "server" "surface"];
name = "Steam Deck"; };
id = "DNFEGEA-PDEVW5A-O5VBVQK-IUXI7J5-MAHCQAG-2JLEFFM-DSXB6AS-TX6ZHAN";
};
"server" = {
name = "Everest";
id = "BVJBCAZ-WDIWBFR-CK3WB3N-TWH3UXX-EPZXVWE-BLQ3IDU-U7MHVVB-WO4BKAJ";
};
"surface" = {
name = "Surface Go";
id = "HTVSF3O-AHY3TNH-BLVSEGK-HRRSMHC-H5LJWVF-NDKGM6O-ATWZALC-YXNV2Q4";
};
};
folders = {
"passwords" = {
label = "KeePassXC Passwords";
id = "rdyaq-ex659";
devices = [ "phone" "pc" "steamdeck" "server" "surface"];
}; };
}; };
}; };

View file

@ -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

View file

@ -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";

View file

@ -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";

View file

@ -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";
}; };