168 lines
5 KiB
Nix
168 lines
5 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
with lib;
|
|
{
|
|
|
|
test.services.syncthing = {
|
|
guiAddress = "${config.networking.hostName}.private:8384";
|
|
declarative = {
|
|
overrideDevices = true;
|
|
devices = let
|
|
device = name: id:
|
|
{
|
|
"${name}" = {
|
|
name = name;
|
|
id = id;
|
|
addresses = [ "tcp://${name}.private:22000" "tcp://${name}.private:21027" ];
|
|
};
|
|
};
|
|
in
|
|
(device "workhorse" "AFSAKB6-JLH4QAS-DSRMPI3-6PVCIHF-IIAVLPC-STPNO3Y-YRDU5NW-QD445QI")
|
|
// (device "pepe" "SZLXFW3-VTAC7UB-V2Z7CHE-3VZAYPL-6D72AK6-OCDMPZP-G4FPY5P-FL6ZVAG")
|
|
// (device "workout" "DZOOAKG-GI2SVOS-QEVMFL7-TRHVTPQ-ADIJEVH-RH5WV3J-6M7MJHC-C53EOAC")
|
|
// (device "porani" "6YOIA4E-X52ZD5Z-FPNWPRS-77QIMMU-VDIXVZB-6BPQN7A-FFJDU4W-EXEGFAI")
|
|
// (device "sterni" "ZFNNKPD-ZSOAYJQ-VROXXDB-5MD3UTJ-GDCNTSQ-G5POVV3-UZG5HFT-CCAU3AD")
|
|
// {
|
|
smartphone = {
|
|
name = "smartphone";
|
|
id = "P6MFODE-PO7CRVB-5RL5AMX-HG4D2CE-C2NC7M4-RYHGX2N-VUU2DWL-C6GVPQN";
|
|
addresses = [ "dynamic" ];
|
|
};
|
|
}
|
|
// {
|
|
bumba = {
|
|
name = "windows-bumba";
|
|
id = "JS7PWTO-VKFGBUP-GNFLSWP-MGFJ2KH-HLO2LKW-V3RPCR6-PCB5SQC-42FCKQZ";
|
|
addresses = [ "dynamic" ];
|
|
};
|
|
}
|
|
// {
|
|
mors = {
|
|
name = "lassulus-mors";
|
|
id = "ZPRS57K-YK32ROQ-7A6MRAV-VOYXQ3I-CQCXISZ-C5PCV2A-GSFLG3I-K7UGGAH";
|
|
addresses = [ "tcp://mors.r:22000" ];
|
|
};
|
|
};
|
|
|
|
folders = {
|
|
|
|
# needs to be on encrypted drives
|
|
# -------------------------------
|
|
desktop = {
|
|
enable = lib.mkDefault false;
|
|
watch = false;
|
|
devices = [ "workout" "workhorse" "pepe" "sterni" "porani" ];
|
|
};
|
|
finance = {
|
|
enable = lib.mkDefault false;
|
|
watch = false;
|
|
devices = [ "workout" "workhorse" "pepe" "sterni" "porani" ];
|
|
};
|
|
|
|
# no need to be stored on encrypted drives
|
|
# ----------------------------------------
|
|
book = {
|
|
enable = lib.mkDefault false;
|
|
id = "wwbvs-5lfbh";
|
|
watch = false;
|
|
devices = [ "workout" "pepe" "sterni" ];
|
|
};
|
|
lost-fotos = {
|
|
enable = lib.mkDefault false;
|
|
watch = false;
|
|
devices = [ "workout" "workhorse" "sterni" "porani" ];
|
|
};
|
|
movies = {
|
|
enable = lib.mkDefault false;
|
|
id = "vatmy-c2qf4";
|
|
watch = false;
|
|
devices = [ "workhorse" "porani" ];
|
|
};
|
|
porn = {
|
|
enable = lib.mkDefault false;
|
|
id = "vatmy-c2qf4";
|
|
watch = false;
|
|
devices = [ "workhorse" "porani" ];
|
|
};
|
|
music-library = {
|
|
enable = lib.mkDefault false;
|
|
id = "gytmq-r2zrx";
|
|
watch = false;
|
|
devices = [ "porani" "workout" "workhorse" "pepe" "sterni" ];
|
|
};
|
|
music-library-free = {
|
|
enable = lib.mkDefault false;
|
|
id = "mu9mn-zgvsw";
|
|
watch = false;
|
|
devices = [ "workout" "workhorse" "mors" ];
|
|
};
|
|
music-projects = {
|
|
enable = lib.mkDefault false;
|
|
id = "acfhu-r4t4f";
|
|
watch = false;
|
|
devices = [ "workout" "workhorse" "pepe" "sterni" ];
|
|
};
|
|
podcasts = {
|
|
enable = lib.mkDefault false;
|
|
id = "yvzmx-hcomd";
|
|
watch = false;
|
|
devices = [ "workhorse" "porani" ];
|
|
};
|
|
samples = {
|
|
enable = lib.mkDefault false;
|
|
id = "pcgkj-tjucd";
|
|
watch = false;
|
|
devices = [ "workout" "workhorse" "sterni" ];
|
|
};
|
|
series = {
|
|
enable = lib.mkDefault false;
|
|
id = "all-series";
|
|
watch = false;
|
|
devices = [ "workhorse" "porani" ];
|
|
};
|
|
smartphone-music = {
|
|
enable = lib.mkDefault false;
|
|
id = "0vjze-xvs8n";
|
|
watch = false;
|
|
devices = [ "workout" "smartphone" ];
|
|
};
|
|
smartphone-fotos = {
|
|
enable = lib.mkDefault false;
|
|
id = "e5823_jtbr-photos";
|
|
watch = false;
|
|
devices = [ "sterni" "workout" "pepe" "smartphone" ];
|
|
};
|
|
video-material = {
|
|
enable = lib.mkDefault false;
|
|
id = "wgkun-fec5h";
|
|
watch = false;
|
|
devices = [ "workout" "workhorse" ];
|
|
};
|
|
|
|
# one on one
|
|
porani-workout = {
|
|
enable = lib.mkDefault false;
|
|
devices = [ "porani" "workout" ];
|
|
watch = false;
|
|
};
|
|
porani-pepe = {
|
|
enable = lib.mkDefault false;
|
|
devices = [ "porani" "pepe" ];
|
|
watch = false;
|
|
};
|
|
windows-sync = {
|
|
enable = lib.mkDefault false;
|
|
id = "hcity-p5ikc";
|
|
watch = false;
|
|
devices = [ "bumba" "workout" ];
|
|
};
|
|
workout-pepe = {
|
|
enable = lib.mkDefault false;
|
|
devices = [ "pepe" "workout" ];
|
|
watch = false;
|
|
};
|
|
};
|
|
|
|
};
|
|
};
|
|
|
|
}
|