mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-13 10:00:52 -06:00
39 lines
898 B
Nix
Executable file
39 lines
898 B
Nix
Executable file
{ flake, ... }:
|
|
let
|
|
inherit (import ../helpers.nix { inherit flake; }) 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;
|
|
}
|