feat: removed synology

This commit is contained in:
Nick 2025-10-30 22:30:51 -05:00
parent afd0379585
commit 1f07e76d98
13 changed files with 6 additions and 142 deletions

View file

@ -236,7 +236,6 @@ in
marsIP = "192.168.50.218";
phoneIP = "192.168.50.243";
phobosIP = "192.168.50.180";
synologyIP = "10.0.0.122";
brotherIP = "192.168.50.195";
externalIP = "24.76.173.0";
@ -251,8 +250,6 @@ in
laptopLabel = "Deimos";
laptop2 = "phobos";
laptop2Label = "Phobos";
nas = "synology";
nasLabel = "Synology";
phone = "pixel";
phoneLabel = "Pixel";
iso = "iso";
@ -268,7 +265,6 @@ in
sopsPath = "/var/lib/secrets";
sslPath = "/var/lib/acme";
varLib = "/var/lib";
synologyName = "synology";
dummy = "";
};

View file

@ -1,27 +0,0 @@
{ 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;
};
}

View file

@ -5,7 +5,6 @@ let
varLib
sslPath
sopsPath
synologyName
;
label = "Syncthing";
@ -29,7 +28,6 @@ in
subdomain = name;
tags = [
name
synologyName
"sync"
"thing"
];

View file

@ -1,27 +0,0 @@
{ moduleFunctions }:
let
inherit (moduleFunctions.instancesFunctions)
sopsPath
synologyName
;
label = "Synology";
name = synologyName;
in
{
label = label;
name = name;
short = "Nas";
tags = [
name
"dsm"
"cloud"
];
sops = {
path0 = "${sopsPath}/${name}";
};
ports = {
port0 = 5000; # Synology HTTP
port1 = 5001; # Synology HTTPS
};
}

View file

@ -1,7 +1,6 @@
{ flake, ... }:
let
inherit (flake.config.machines.devices)
synology
ceres
mars
;
@ -59,15 +58,6 @@ let
instances.firefly-iii.name
];
}
{
suffix = "(Synology)";
urlTemplate =
name: "http://${synology.ip.address0}:${builtins.toString instances.${name}.ports.port0}";
services = [
instances.syncthing.name
instances.synology.name
];
}
];
generatedBookmarks = builtins.concatLists (builtins.map makeBookmarks bookmarkConfigs);

View file

@ -1,7 +1,6 @@
{ flake, config, ... }:
let
inherit (flake.config.machines.devices)
synology
phone
mars
ceres
@ -19,17 +18,6 @@ let
backupPath = "${service.paths.path1}";
syncDevices = {
synologySync = {
${synology.name} = {
autoAcceptFolders = true;
name = synology.name;
addresses = [
"tcp://${synology.ip.address0}:${toString service.ports.port2}"
];
id = synology.sync.address0;
};
};
phoneSync = {
${phone.name} = {
autoAcceptFolders = true;
@ -52,13 +40,7 @@ in
systemService = true;
guiAddress = "${localhost}:${toString service.ports.port0}";
settings = {
devices =
if hostname == mars.name then
syncDevices.phoneSync // syncDevices.synologySync
else if hostname == ceres.name then
syncDevices.synologySync
else
{ };
devices = if hostname == mars.name then syncDevices.phoneSync else { };
};
};
};