minor fix of syncthing module

This commit is contained in:
Yan Lin 2025-12-08 18:32:47 +01:00
parent ca82298afa
commit f12f3d9e39
2 changed files with 3 additions and 11 deletions

View file

@ -3,11 +3,5 @@
{ {
imports = [ imports = [
../home-default.nix ../home-default.nix
../../../modules/syncthing.nix
]; ];
syncthing-custom = {
enabledFolders = [ "Credentials" ];
enableGui = false;
};
} }

View file

@ -24,8 +24,7 @@ let
# Device groupings # Device groupings
pcDevices = [ "macbook" "imac" "hs" "thinkpad" ]; pcDevices = [ "macbook" "imac" "hs" "thinkpad" ];
touchDevices = [ "iphone" "ipad" ]; touchDevices = [ "iphone" "ipad" ];
cloudDevices = [ "vps" ]; allDevices = pcDevices ++ touchDevices;
allDevices = pcDevices ++ touchDevices ++ cloudDevices;
# Common versioning configuration # Common versioning configuration
commonVersioning = { commonVersioning = {
@ -85,9 +84,6 @@ in
"imac" = { "imac" = {
id = "2ST6EEF-KN3R2E6-PN64WAS-XGJ22NV-BAWAQX6-OCZLYE3-V5IM2SE-S22REAA"; id = "2ST6EEF-KN3R2E6-PN64WAS-XGJ22NV-BAWAQX6-OCZLYE3-V5IM2SE-S22REAA";
}; };
"vps" = {
id = "C44TBOW-OP4PMMY-O5P7JCJ-F6RBYES-E7R6YWX-5KA2WWR-CWUDLTC-IB3VQAF";
};
}; };
# Define shared folders (only enabled ones) # Define shared folders (only enabled ones)
@ -121,7 +117,9 @@ in
gui = { gui = {
enabled = cfg.enableGui; enabled = cfg.enableGui;
user = "yanlin"; user = "yanlin";
password = "";
useTLS = false; useTLS = false;
insecureSkipHostcheck = true;
}; };
# Additional settings # Additional settings