services/syncthing: init
This commit is contained in:
parent
95b3116fa8
commit
16a8c3e186
3 changed files with 25 additions and 0 deletions
|
|
@ -31,6 +31,8 @@
|
||||||
snapper
|
snapper
|
||||||
virtualisation
|
virtualisation
|
||||||
|
|
||||||
|
modules.services.syncthing
|
||||||
|
|
||||||
./filesystem.nix
|
./filesystem.nix
|
||||||
./kernel.nix
|
./kernel.nix
|
||||||
./networking.nix
|
./networking.nix
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@ in {
|
||||||
./services/postgres.nix
|
./services/postgres.nix
|
||||||
./services/sonarr.nix
|
./services/sonarr.nix
|
||||||
./services/synapse.nix
|
./services/synapse.nix
|
||||||
|
./services/syncthing.nix
|
||||||
./services/tmptsync.nix
|
./services/tmptsync.nix
|
||||||
./services/unbound.nix
|
./services/unbound.nix
|
||||||
./services/vaultwarden.nix
|
./services/vaultwarden.nix
|
||||||
|
|
|
||||||
22
modules/services/syncthing.nix
Normal file
22
modules/services/syncthing.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
{ ... }: {
|
||||||
|
systemd.services.syncthing.environment.STNODEFAULTFOLDER = "true";
|
||||||
|
services.syncthing = {
|
||||||
|
enable = true;
|
||||||
|
openDefaultPorts = true;
|
||||||
|
user = "rin";
|
||||||
|
group = "users";
|
||||||
|
dataDir = "/persist/shared/.syncthing/data";
|
||||||
|
configDir = "/persist/shared/.syncthing/config";
|
||||||
|
settings = {
|
||||||
|
devices = {
|
||||||
|
#"anemone".id = "";
|
||||||
|
};
|
||||||
|
# folders = {
|
||||||
|
# "Obby" = {
|
||||||
|
# path = "/home/rin/Documents/Obby/Obby";
|
||||||
|
# devices = [];
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue