syncthing: init
This commit is contained in:
parent
d90c248dc2
commit
5930433925
6 changed files with 93 additions and 0 deletions
33
modules/nixos/services/syncthing/default.nix
Normal file
33
modules/nixos/services/syncthing/default.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
settings = {
|
||||
devices = {
|
||||
drone = {
|
||||
addresses = [ "tcp://100.65.0.1:22000" ];
|
||||
id = "CTMJ5KR-H373JVN-5TDZU7H-KKUQBW5-HIXEFXW-7OIM3LV-ZRR4IAE-RZFGDQM";
|
||||
};
|
||||
earthmover = {
|
||||
addresses = [ "tcp://100.64.0.1:22000" ];
|
||||
id = "P7OPACI-4VYSXLP-6QU22HW-MTZETV4-TH55DRZ-KGHLFTY-FH6ZSGD-42V5RQN";
|
||||
};
|
||||
swordsmachine = {
|
||||
addresses = [ "tcp://100.64.0.2:22000" ];
|
||||
id = "QQVUKFI-24XOQUS-SEPQCJS-FFL3K4A-RPNYYHS-BDLMF2Q-B2BKBFI-2I2D4AU";
|
||||
};
|
||||
};
|
||||
|
||||
options = {
|
||||
urAccepted = -1;
|
||||
crashReportingEnabled = false;
|
||||
|
||||
natEnabled = false;
|
||||
relaysEnabled = false;
|
||||
globalAnnounceEnabled = false;
|
||||
localAnnounceEnabled = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
29
modules/nixos/services/syncthing/main.nix
Normal file
29
modules/nixos/services/syncthing/main.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
services.syncthing = {
|
||||
user = "wo2w";
|
||||
dataDir = "/home/wo2w";
|
||||
settings = {
|
||||
folders = {
|
||||
minecraft-instances = {
|
||||
path = "~/.local/share/PrismLauncher/instances";
|
||||
devices = [
|
||||
"drone"
|
||||
"earthmover"
|
||||
"swordsmachine"
|
||||
];
|
||||
};
|
||||
|
||||
terraria = {
|
||||
path = "~/.local/share/Terraria";
|
||||
devices = [
|
||||
"drone"
|
||||
"earthmover"
|
||||
"swordsmachine"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
25
modules/nixos/services/syncthing/server.nix
Normal file
25
modules/nixos/services/syncthing/server.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
services.syncthing.settings.folders = {
|
||||
minecraft-instances = {
|
||||
path = "${config.services.syncthing.dataDir}/minecraft-instances";
|
||||
type = "receiveonly";
|
||||
devices = [
|
||||
"drone"
|
||||
"earthmover"
|
||||
"swordsmachine"
|
||||
];
|
||||
};
|
||||
|
||||
terraria = {
|
||||
path = "${config.services.syncthing.dataDir}/terraria";
|
||||
type = "receiveonly";
|
||||
devices = [
|
||||
"drone"
|
||||
"earthmover"
|
||||
"swordsmachine"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue