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

@ -0,0 +1,38 @@
let
inherit (import ./helpers.nix) labHelpers nasUsers;
inherit (labHelpers)
guestPath
mediaPath
docsPath
homePath
miscPath
userPath
groupPath
mntPath
;
nasDirs = user: [
"d ${userPath user} 0751 microvm wheel - -"
"d ${homePath user} 0751 microvm wheel - -"
"d ${guestPath user} 0751 microvm wheel - -"
"d ${docsPath user} 0751 microvm wheel - -"
"d ${mediaPath user} 0751 microvm wheel - -"
"d ${miscPath user} 0751 microvm wheel - -"
];
nasUserList = [
nasUsers.nasUser0
nasUsers.nasUser1
nasUsers.nasUser2
];
nasDirBuilder = builtins.concatLists (builtins.map (user: nasDirs user) nasUserList);
defaultDirs = [
"d ${mntPath} 0751 microvm wheel - -"
"d ${groupPath} 0751 microvm wheel - -"
];
in
{
systemd.tmpfiles.rules = defaultDirs ++ nasDirBuilder;
}