mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-26 13:50:51 +01:00
Compare commits
3 commits
96a9901a8e
...
74921ea499
Author | SHA1 | Date | |
---|---|---|---|
74921ea499 | |||
61f1aa3f9c | |||
a6864f69ef |
2 changed files with 48 additions and 3 deletions
|
@ -9,6 +9,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
./home-julien.nix
|
./home-julien.nix
|
||||||
|
./syncthing.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
machine.meta = {
|
machine.meta = {
|
||||||
|
|
44
machines/fischer/syncthing.nix
Normal file
44
machines/fischer/syncthing.nix
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
{ 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 = {
|
||||||
|
"gustave" = {
|
||||||
|
id = "6APF3EP-TIV7ZBK-5WB5SA4-Y2K37CR-AMIB2TM-6T2VORK-UYNQO2X-TO6V2QH";
|
||||||
|
addresses = [
|
||||||
|
"tcp://gustave.luj:22000"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
"gallifrey" = {
|
||||||
|
id = "P3BTFAX-4MCSFQB-C5R5YBP-YGMJ6FU-OKJN4QG-MJ2BV6Y-YB4U7VL-3GFSTAM";
|
||||||
|
addresses = [
|
||||||
|
"tcp://gallifrey.luj:22000"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
folders = {
|
||||||
|
"dev" = {
|
||||||
|
path = "/home/julien/dev";
|
||||||
|
devices = [
|
||||||
|
"gustave"
|
||||||
|
"gallifrey"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.services.syncthing.serviceConfig.StateDirectory = "syncthing";
|
||||||
|
systemd.services.syncthing.environment.STNODEFAULTFOLDER = "true";
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue