Add mac-demarco-mini syncthing config

This commit is contained in:
2026-04-26 22:31:34 -07:00
parent f15aea9a9c
commit 36a08c5c26
4 changed files with 108 additions and 60 deletions

View File

@@ -88,6 +88,7 @@
sharedHomeModules = [
./home/common.nix
./home/git-sync.nix
./home/syncthing.nix
];
homeForUser = user: "/Users/${user}";
configuration = {

View File

@@ -0,0 +1,37 @@
{
config,
lib,
pkgs,
...
}: let
shared = import ../../nix-shared/syncthing.nix;
inherit (shared) devices allDevices;
in {
home.activation.ensureSyncthingDirectories = lib.hm.dag.entryAfter ["writeBoundary"] ''
/bin/mkdir -p "$HOME/Library/Logs/Syncthing" "$HOME/sync" "$HOME/railbird"
'';
services.syncthing = {
enable = true;
package = pkgs.syncthing;
settings = {
inherit devices;
folders = {
sync = {
path = "~/sync";
devices = allDevices;
ignorePerms = true;
};
railbird = {
path = "~/railbird";
devices = allDevices;
ignorePerms = true;
};
};
options = {
relaysEnabled = true;
localAnnounceEnabled = true;
};
};
};
}