mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-14 02:20:53 -06:00
fix: syncthing cucked
This commit is contained in:
parent
1eacc3aa09
commit
2cd05e31fc
15 changed files with 64 additions and 23 deletions
38
modules/nixos/homelab/nasDirs/default.nix
Normal file
38
modules/nixos/homelab/nasDirs/default.nix
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue