mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-08-11 22:34:38 -05:00
refactor: abstacted records
This commit is contained in:
parent
64572cb106
commit
06a684fa32
42 changed files with 211 additions and 202 deletions
|
@ -1,6 +1,6 @@
|
|||
{ devicesFunctions }:
|
||||
{ moduleFunctions }:
|
||||
let
|
||||
inherit (devicesFunctions)
|
||||
inherit (moduleFunctions.devicesFunctions)
|
||||
sshfsOptions
|
||||
fileModeAndDirMode
|
||||
ceresStorageDriveName
|
||||
|
@ -10,6 +10,9 @@ let
|
|||
userIdForUser0
|
||||
ceresIP
|
||||
;
|
||||
inherit (moduleFunctions.usersFunctions) user0;
|
||||
inherit (moduleFunctions.devicesFunctions) externalIP;
|
||||
|
||||
ceresName = "ceres";
|
||||
in
|
||||
{
|
||||
|
@ -36,7 +39,7 @@ in
|
|||
};
|
||||
remote0 = {
|
||||
mount = "/mnt/media/remote";
|
||||
device = "nick@24.76.173.0:/mnt/media/${ceresStorageDriveName}";
|
||||
device = "${user0}@${externalIP}:/mnt/media/${ceresStorageDriveName}";
|
||||
options = sshfsOptions;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ devicesFunctions }:
|
||||
{ moduleFunctions }:
|
||||
let
|
||||
inherit (devicesFunctions)
|
||||
inherit (moduleFunctions.devicesFunctions)
|
||||
ownerWriteOthersReadMask
|
||||
deimosIP
|
||||
;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ devicesFunctions }:
|
||||
{ moduleFunctions }:
|
||||
let
|
||||
inherit (devicesFunctions)
|
||||
inherit (moduleFunctions.devicesFunctions)
|
||||
ownerWriteOthersReadMask
|
||||
readWritePermissions
|
||||
marsIP
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ devicesFunctions }:
|
||||
{ moduleFunctions }:
|
||||
let
|
||||
inherit (devicesFunctions)
|
||||
inherit (moduleFunctions.devicesFunctions)
|
||||
ownerWriteOthersReadMask
|
||||
phobosIP
|
||||
;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ devicesFunctions }:
|
||||
{ moduleFunctions }:
|
||||
let
|
||||
inherit (devicesFunctions)
|
||||
inherit (moduleFunctions.devicesFunctions)
|
||||
phoneIP
|
||||
dummy
|
||||
;
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
{ devicesFunctions }:
|
||||
{ moduleFunctions }:
|
||||
let
|
||||
inherit (devicesFunctions)
|
||||
dummy
|
||||
;
|
||||
inherit (moduleFunctions.devicesFunctions) dummy;
|
||||
|
||||
in
|
||||
{
|
||||
name = dummy;
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
{ devicesFunctions }:
|
||||
{ moduleFunctions }:
|
||||
let
|
||||
inherit (devicesFunctions)
|
||||
brotherIP
|
||||
dummy
|
||||
;
|
||||
inherit (moduleFunctions.devicesFunctions) brotherIP dummy;
|
||||
|
||||
in
|
||||
{
|
||||
name = dummy;
|
||||
|
|
|
@ -1,15 +1,12 @@
|
|||
{ devicesFunctions }:
|
||||
{ moduleFunctions }:
|
||||
let
|
||||
inherit (devicesFunctions)
|
||||
inherit (moduleFunctions.devicesFunctions)
|
||||
sambaPermissions
|
||||
userIdForUser0
|
||||
userIdForUser1
|
||||
synologyIP
|
||||
;
|
||||
|
||||
user0 = "nick";
|
||||
user1 = "streaming";
|
||||
user0Name = "Nick";
|
||||
inherit (moduleFunctions.usersFunctions) user0 user0Label user1;
|
||||
synologyName = "synology";
|
||||
in
|
||||
{
|
||||
|
@ -24,13 +21,13 @@ in
|
|||
# Nick Home Folder
|
||||
folder0 = {
|
||||
mount = "/mnt/media/${synologyName}/${user0}";
|
||||
device = "//${synologyIP}/homes/${user0Name}";
|
||||
device = "//${synologyIP}/homes/${user0Label}";
|
||||
options = sambaPermissions ++ userIdForUser0;
|
||||
};
|
||||
# Streaming Folder
|
||||
folder1 = {
|
||||
mount = "/mnt/media/${synologyName}/${user1}";
|
||||
device = "//${synologyIP}/homes/${user0Name}";
|
||||
device = "//${synologyIP}/homes/${user0Label}";
|
||||
options = sambaPermissions ++ userIdForUser1;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue