mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-22 20:00:54 +01:00
feat(gustave): init syncthing
This commit is contained in:
parent
3e615b11a3
commit
96a9901a8e
2 changed files with 33 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
|||
./plausible.nix
|
||||
./nextcloud.nix
|
||||
./glance.nix
|
||||
./syncthing.nix
|
||||
];
|
||||
|
||||
machine.meta = {
|
||||
|
|
32
machines/gustave/syncthing.nix
Normal file
32
machines/gustave/syncthing.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
user = "julien";
|
||||
group = "users";
|
||||
overrideDevices = true;
|
||||
overrideFolders = true;
|
||||
|
||||
settings.options = {
|
||||
urAccepted = -1;
|
||||
listenAddresses = [ "tcp://${config.machine.meta.ips.vpn.ipv4}" ];
|
||||
};
|
||||
|
||||
devices = {
|
||||
"fischer" = {
|
||||
id = "XEPZZIP-GX73OKE-KNGZA47-XWWGI5G-LNXPU57-BMLXK5M-VNGS5UQ-ZFIZSAK";
|
||||
};
|
||||
};
|
||||
folders = {
|
||||
"dev" = {
|
||||
path = "/home/julien/dev";
|
||||
devices = [
|
||||
"fischer"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.syncthing.serviceConfig.StateDirectory = "syncthing";
|
||||
systemd.services.syncthing.environment.STNODEFAULTFOLDER = "true";
|
||||
}
|
Loading…
Add table
Reference in a new issue