mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 18:09:06 +02:00
chore: activate syncthing on several machines
This commit is contained in:
parent
9214bed77f
commit
5b249c58e5
6 changed files with 120 additions and 6 deletions
|
@ -14,7 +14,16 @@
|
|||
|
||||
devices = {
|
||||
"fischer" = {
|
||||
id = "XEPZZIP-GX73OKE-KNGZA47-XWWGI5G-LNXPU57-BMLXK5M-VNGS5UQ-ZFIZSAK";
|
||||
id = "PLIMD3Z-L4DYKDB-MY4PFTS-3RMQUNF-GFWFOBB-SELW6MB-WIQJ2LM-QAC45QQ";
|
||||
addresses = [
|
||||
"tcp://fischer.luj:22000"
|
||||
];
|
||||
};
|
||||
"gallifrey" = {
|
||||
id = "P3BTFAX-4MCSFQB-C5R5YBP-YGMJ6FU-OKJN4QG-MJ2BV6Y-YB4U7VL-3GFSTAM";
|
||||
addresses = [
|
||||
"tcp://gallifrey.luj:22000"
|
||||
];
|
||||
};
|
||||
};
|
||||
folders = {
|
||||
|
@ -22,6 +31,7 @@
|
|||
path = "/home/julien/dev";
|
||||
devices = [
|
||||
"fischer"
|
||||
"gallifrey"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
@ -29,4 +39,13 @@
|
|||
|
||||
systemd.services.syncthing.serviceConfig.StateDirectory = "syncthing";
|
||||
systemd.services.syncthing.environment.STNODEFAULTFOLDER = "true";
|
||||
|
||||
environment.persistence."/persistent".directories = [
|
||||
{
|
||||
directory = "/home/julien/dev";
|
||||
user = "julien";
|
||||
group = "users";
|
||||
}
|
||||
];
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue