improve syncthing config

This commit is contained in:
Henri Dohmen 2025-12-30 14:49:21 +01:00
parent 72c6b7ce88
commit 6461102325
Signed by: hd
GPG key ID: AB79213B044674AE
5 changed files with 52 additions and 31 deletions

View file

@ -1,4 +1,4 @@
{ lib, ... }:
{ lib, var, ... }:
with builtins;
rec {
walk-dir =
@ -16,4 +16,7 @@ rec {
else
throw "Items of type ${value} are unsupported.";
}) dir;
is-desktop = x: builtins.elem x var.desktops;
is-server = x: builtins.elem x var.servers;
}