mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-09 14:29:24 -06:00
27 lines
644 B
Nix
Executable file
27 lines
644 B
Nix
Executable file
{ moduleFunctions }:
|
|
let
|
|
inherit (moduleFunctions.devicesFunctions)
|
|
sambaPermissions
|
|
userIdForUser0
|
|
synologyIP
|
|
deviceNames
|
|
;
|
|
inherit (moduleFunctions.usersFunctions) user0 user0Label;
|
|
synologyName = deviceNames.nas;
|
|
in
|
|
{
|
|
label = deviceNames.nasLabel;
|
|
sync = {
|
|
address0 = "MWRGX2V-F5XKE5E-REP6ECT-OOPFBMF-22NHSMW-YFBU6MB-PLFUN63-R3MW2QX"; # User0
|
|
};
|
|
name = synologyName;
|
|
ip = {
|
|
address0 = synologyIP;
|
|
};
|
|
# Nick Home Folder
|
|
folder0 = {
|
|
mount = "/mnt/media/${synologyName}/${user0}";
|
|
device = "//${synologyIP}/homes/${user0Label}";
|
|
options = sambaPermissions ++ userIdForUser0;
|
|
};
|
|
}
|