Add mac-demarco-mini syncthing config
This commit is contained in:
37
nix-darwin/home/syncthing.nix
Normal file
37
nix-darwin/home/syncthing.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user