fix: syncthing cucked

This commit is contained in:
Nick 2025-12-09 17:58:22 -06:00
parent 1eacc3aa09
commit 2cd05e31fc
15 changed files with 64 additions and 23 deletions

View file

@ -3,7 +3,7 @@
...
}:
let
inherit (import ../../helpers.nix) labHelpers;
inherit (import ../../../helpers.nix) labHelpers;
inherit (labHelpers)
guestPath
mediaPath
@ -81,13 +81,6 @@ let
"d /var/lib/${serviceCfg.name}/misc 0755 ${serviceCfg.name} ${serviceCfg.name} -"
];
tmpRulesOut = user: [
"d ${guestPath user} 0751 microvm wheel - -"
"d ${docsPath user} 0751 microvm wheel - -"
"d ${mediaPath user} 0751 microvm wheel - -"
"d ${miscPath user} 0751 microvm wheel - -"
];
syncthingNick =
let
phoneID = "OALKHLZ-OODUWVX-PAC2LI7-UMZMSZO-FELLRCD-RS4DHJS-PVA5YQK-WTFXXQI";
@ -102,8 +95,7 @@ let
folders = foldersHelper user0;
devices = devicesHelper user0 phoneID "Phone" "192.168.50.8";
mounts = mountsHelper user0;
tmpIn = tmpRulesIn;
tmpOut = tmpRulesOut user0;
tmp = tmpRulesIn;
};
in
syncthingNick