tangled
alpha
login
or
join now
quasigod.xyz
/
nixconfig
8
fork
atom
My NixOS and Home Manager configurations
8
fork
atom
overview
issues
pulls
pipelines
sync documents folder
quasigod.xyz
1 month ago
aadc98c2
915d5894
verified
This commit was signed with the committer's
known signature
.
quasigod.xyz
SSH Key Fingerprint:
SHA256:IYQIQqk4Il5k+VDa+O4RM4mqCqVtyRilM/eLPbx2jjc=
+17
-10
1 changed file
expand all
collapse all
unified
split
modules
services
syncthing.nix
+17
-10
modules/services/syncthing.nix
···
1
1
+
{ lib, ... }:
1
2
{
2
3
styx.syncthing =
3
4
let
···
11
12
enable = true;
12
13
settings = {
13
14
inherit devices;
14
14
-
folders."~/sync" = {
15
15
-
id = "general";
16
16
-
devices = all_devices;
17
17
-
};
18
18
-
folders."~/projects" = {
19
19
-
id = "projects";
20
20
-
devices = all_devices;
15
15
+
folders = {
16
16
+
"~/projects" = {
17
17
+
id = "projects";
18
18
+
devices = all_devices;
19
19
+
};
20
20
+
"~/Documents" = {
21
21
+
id = "documents";
22
22
+
devices = all_devices;
23
23
+
};
21
24
};
22
25
};
23
26
};
···
26
29
provides.client.homeManager.services = {
27
30
inherit syncthing;
28
31
};
29
29
-
provides.server.nixos.services.syncthing = syncthing // {
30
30
-
openDefaultPorts = true;
31
31
-
};
32
32
+
provides.server.nixos.services.syncthing = lib.mkMerge [
33
33
+
syncthing
34
34
+
{
35
35
+
openDefaultPorts = true;
36
36
+
devices = lib.mapAttrs (name: value: value // { autoAcceptFolders = true; }) devices;
37
37
+
}
38
38
+
];
32
39
};
33
40
}