feat: added user2 and refactored to accommodate

This commit is contained in:
Nick 2025-01-28 20:45:11 -06:00
parent c169f84dcc
commit 9cdcf4fec4
97 changed files with 1473 additions and 1052 deletions

View file

@ -1,13 +1,16 @@
{devicesFunctions}: let
inherit
(devicesFunctions)
{ devicesFunctions }:
let
inherit (devicesFunctions)
ownerWriteOthersReadMask
readWritePermissions
;
in {
in
{
label = "Desktop";
name = "desktop";
sync = "";
sync = {
address0 = "";
};
ip = {
address0 = "192.168.50.196";
};

View file

@ -0,0 +1,32 @@
{ devicesFunctions }:
let
inherit (devicesFunctions)
readWritePermissions
;
drivePath = "/run/media";
byLabel = "/dev/disk/by-label";
in
{
label = "Fallaryn";
name = "fallaryn";
ip = {
address0 = "192.168.58.104";
};
boot = {
options = [
"fmask=0022"
"dmask=0022"
];
};
storage0 = {
mount = "${drivePath}/games";
device = "${byLabel}/Games";
options = readWritePermissions;
};
storage1 = {
mount = "${drivePath}/entertainment";
device = "${byLabel}/Entertainment";
options = readWritePermissions;
};
}

View file

@ -1,12 +1,15 @@
{devicesFunctions}: let
inherit
(devicesFunctions)
{ devicesFunctions }:
let
inherit (devicesFunctions)
ownerWriteOthersReadMask
;
in {
in
{
label = "Laptop";
name = "laptop";
sync = "";
sync = {
address0 = "";
};
ip = {
address0 = "192.168.50.142";
};

View file

@ -1,12 +1,16 @@
{devicesFunctions}: let
inherit
(devicesFunctions)
{ devicesFunctions }:
let
inherit (devicesFunctions)
dummy
;
in {
in
{
name = "pixel";
label = dummy;
sync = "RMDKNJY-BTX6FYF-G6SR332-WS6HARI-PF74SC6-VPBSGRQ-MKVQZEQ-KSIB6QV";
sync = {
address0 = "RMDKNJY-BTX6FYF-G6SR332-WS6HARI-PF74SC6-VPBSGRQ-MKVQZEQ-KSIB6QV"; # User0
address1 = "RUKSHY4-UCBYRVG-CVYFCMU-M3NLA3Q-JINRF5V-YPR5W32-TEIBJN6-DNQRCAR"; # User2
};
ip = {
address0 = "192.168.50.243";
};

View file

@ -1,6 +1,6 @@
{devicesFunctions}: let
inherit
(devicesFunctions)
{ devicesFunctions }:
let
inherit (devicesFunctions)
fileModeAndDirMode
ownerExclusiveReadWriteMask
readWritePermissions
@ -10,9 +10,13 @@
serverName = "server";
serverIP = "192.168.50.140";
serverStorageDriveName = "NAS1";
in {
in
{
label = "Server";
name = serverName;
sync = {
address0 = "";
};
ip = {
address0 = serverIP;
};

View file

@ -15,7 +15,10 @@ let
in
{
label = "Synology";
sync = "MWRGX2V-F5XKE5E-REP6ECT-OOPFBMF-22NHSMW-YFBU6MB-PLFUN63-R3MW2QX";
sync = {
address0 = "MWRGX2V-F5XKE5E-REP6ECT-OOPFBMF-22NHSMW-YFBU6MB-PLFUN63-R3MW2QX"; # User0
address1 = ""; # User2
};
name = synologyName;
ip = {
address0 = synologyIP;

View file

@ -1,12 +1,15 @@
{devicesFunctions}: let
inherit
(devicesFunctions)
{ devicesFunctions }:
let
inherit (devicesFunctions)
dummy
;
in {
in
{
name = "tablet";
label = dummy;
sync = "I2ZSCZU-T4JMUJJ-XCUQ3MY-G5EUFZ5-KRG2DRY-XIBJZZM-FQW3UMY-CBCTUQU";
sync = {
address0 = "I2ZSCZU-T4JMUJJ-XCUQ3MY-G5EUFZ5-KRG2DRY-XIBJZZM-FQW3UMY-CBCTUQU";
};
ip = {
address0 = "192.168.50.189";
};