mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 05:27:13 -06:00
feat: removed synology
This commit is contained in:
parent
afd0379585
commit
1f07e76d98
13 changed files with 6 additions and 142 deletions
|
|
@ -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 { };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue