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,18 +1,18 @@
{flake, ...}: let
inherit
(flake.config.machines.devices)
{ flake, ... }:
let
inherit (flake.config.machines.devices)
synology
phone
tablet
;
inherit
(flake.config.services.instances)
inherit (flake.config.services.instances)
syncthing
web
;
service = syncthing;
localhost = web.localhost.address0;
in {
in
{
services = {
syncthing = {
enable = true;
@ -29,7 +29,7 @@ in {
addresses = [
"tcp://${synology.ip.address0}:${toString service.ports.port2}"
];
id = synology.sync;
id = synology.sync.address0;
};
${phone.name} = {
autoAcceptFolders = true;
@ -37,7 +37,7 @@ in {
addresses = [
"tcp://${phone.ip.address0}:${toString service.ports.port2}"
];
id = phone.sync;
id = phone.sync.address0;
};
${tablet.name} = {
autoAcceptFolders = true;
@ -45,7 +45,7 @@ in {
addresses = [
"tcp://${tablet.ip.address0}:${toString service.ports.port2}"
];
id = tablet.sync;
id = tablet.sync.address0;
};
};
};