mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-15 09:35:12 -05:00
36 lines
753 B
Nix
Executable file
36 lines
753 B
Nix
Executable file
{ devicesFunctions }:
|
|
let
|
|
inherit (devicesFunctions)
|
|
fileModeAndDirMode
|
|
ownerExclusiveReadWriteMask
|
|
readWritePermissions
|
|
sambaPermissions
|
|
userIdForUser0
|
|
ceresIP
|
|
;
|
|
ceresName = "ceres";
|
|
ceresStorageDriveName = "NAS1";
|
|
in
|
|
{
|
|
label = "Ceres";
|
|
name = ceresName;
|
|
sync = {
|
|
address0 = "";
|
|
};
|
|
ip = {
|
|
address0 = ceresIP;
|
|
};
|
|
boot = {
|
|
options = ownerExclusiveReadWriteMask;
|
|
};
|
|
storage0 = {
|
|
mount = "/mnt/media/${ceresStorageDriveName}";
|
|
device = "/dev/disk/by-label/${ceresStorageDriveName}";
|
|
options = readWritePermissions;
|
|
};
|
|
samba0 = {
|
|
mount = "/mnt/media/${ceresName}";
|
|
device = "//${ceresIP}";
|
|
options = sambaPermissions ++ fileModeAndDirMode ++ userIdForUser0;
|
|
};
|
|
}
|