mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-06 21:17:14 -06:00
feat: added eris
This commit is contained in:
parent
c469f48b4e
commit
74f9c483ad
11 changed files with 212 additions and 0 deletions
|
|
@ -231,6 +231,7 @@ in
|
|||
|
||||
ceresStorageDriveName = "NAS1";
|
||||
ceresIP = "192.168.50.140";
|
||||
erisIP = "192.168.50.139";
|
||||
deimosIP = "192.168.50.176";
|
||||
marsIP = "192.168.50.218";
|
||||
phoneIP = "192.168.50.243";
|
||||
|
|
@ -244,6 +245,8 @@ in
|
|||
desktopLabel = "Mars";
|
||||
server = "ceres";
|
||||
serverLabel = "Ceres";
|
||||
eris = "eris";
|
||||
erisLabel = "Eris";
|
||||
laptop = "deimos";
|
||||
laptopLabel = "Deimos";
|
||||
laptop2 = "phobos";
|
||||
|
|
|
|||
31
modules/config/devices/config/eris.nix
Executable file
31
modules/config/devices/config/eris.nix
Executable file
|
|
@ -0,0 +1,31 @@
|
|||
{ moduleFunctions }:
|
||||
let
|
||||
inherit (moduleFunctions.devicesFunctions)
|
||||
fileModeAndDirMode
|
||||
ownerExclusiveReadWriteMask
|
||||
sambaPermissions
|
||||
userIdForUser0
|
||||
erisIP
|
||||
deviceNames
|
||||
;
|
||||
|
||||
erisName = deviceNames.eris;
|
||||
in
|
||||
{
|
||||
label = deviceNames.serverLabel;
|
||||
name = erisName;
|
||||
sync = {
|
||||
address0 = "";
|
||||
};
|
||||
ip = {
|
||||
address0 = erisIP;
|
||||
};
|
||||
boot = {
|
||||
options = ownerExclusiveReadWriteMask;
|
||||
};
|
||||
samba0 = {
|
||||
mount = "/mnt/media/${erisName}";
|
||||
device = "//${erisIP}";
|
||||
options = sambaPermissions ++ fileModeAndDirMode ++ userIdForUser0;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue