fwminex: start syncthing

This commit is contained in:
Motiejus Jakštys 2023-09-18 11:55:09 +03:00
parent 9ece2a456e
commit a9ec83c732
2 changed files with 93 additions and 74 deletions

View File

@ -95,7 +95,7 @@ in {
}; };
syncthing = { syncthing = {
enable = false; enable = true;
dataDir = "/home/motiejus/"; dataDir = "/home/motiejus/";
user = "motiejus"; user = "motiejus";
group = "users"; group = "users";

View File

@ -38,85 +38,104 @@ in {
devices = devices =
{} {}
// (lib.optionalAttrs (config.networking.hostName == "vno1-oh2") { // (lib.optionalAttrs (config.networking.hostName == "vno1-oh2") {
"fwmine".id = "GKSUKZE-AOBQOWY-CNLZ2ZI-WNKATYE-MV4Y452-J3VCJ5C-EAANXRX-2P6EHA6"; "fwminex".id = "GKSUKZE-AOBQOWY-CNLZ2ZI-WNKATYE-MV4Y452-J3VCJ5C-EAANXRX-2P6EHA6";
"mxp10".id = "LO54QZZ-5J3G62P-WUVM3MW-7J3VWHD-BG76TOQ-5S7PZSY-JU45K3I-X3ZL4AN"; "mxp10".id = "LO54QZZ-5J3G62P-WUVM3MW-7J3VWHD-BG76TOQ-5S7PZSY-JU45K3I-X3ZL4AN";
"rzj-744P2PE".id = "UW6ISH2-NW6X6AW-BJR76TV-TV3BIGZ-PA5QH2M-YEF567T-IWMHKD5-P3XHHAH"; "rzj-744P2PE".id = "UW6ISH2-NW6X6AW-BJR76TV-TV3BIGZ-PA5QH2M-YEF567T-IWMHKD5-P3XHHAH";
"KrekenavosNamai".id = "CYZDYL6-YMW7SZ3-K6IJO4Q-6NOULSG-OVZ3BGN-6LN3CLR-P3BJFKW-2PMHJQT"; "KrekenavosNamai".id = "CYZDYL6-YMW7SZ3-K6IJO4Q-6NOULSG-OVZ3BGN-6LN3CLR-P3BJFKW-2PMHJQT";
}) })
// (lib.optionalAttrs (config.networking.hostName == "fwminex") {
"fwminex".id = "GKSUKZE-AOBQOWY-CNLZ2ZI-WNKATYE-MV4Y452-J3VCJ5C-EAANXRX-2P6EHA6";
"vno1-oh2".id = "W45ROUW-CHKI3I6-C4VCOCU-NJYQ3ZS-MJDHH23-YYCDXTI-HTJSBZJ-KZMWTAF";
"mxp10".id = "LO54QZZ-5J3G62P-WUVM3MW-7J3VWHD-BG76TOQ-5S7PZSY-JU45K3I-X3ZL4AN";
"rzj-744P2PE".id = "UW6ISH2-NW6X6AW-BJR76TV-TV3BIGZ-PA5QH2M-YEF567T-IWMHKD5-P3XHHAH";
})
// {}; // {};
folders = { folders =
"/var/www/dl/tel" = { {}
devices = ["mxp10"]; // (
id = "gqrtz-prx9h"; lib.optionalAttrs (config.networking.hostName == "vno1-oh2") {
label = "www-tel"; "/var/www/dl/tel" = {
}; devices = ["mxp10"];
"/var/www/dl/fwmine" = { id = "gqrtz-prx9h";
devices = ["fwmine"]; label = "www-tel";
id = "7z9sw-2nubh"; };
label = "www-fwmine"; "/var/www/dl/fwminex" = {
}; devices = ["fwminex"];
"/var/www/dl/mykolo" = { id = "7z9sw-2nubh";
devices = ["mxp10"]; label = "www-fwminex";
id = "wslmq-fyw4w"; };
label = "mykolo"; "/var/www/dl/mykolo" = {
}; devices = ["mxp10"];
"${config.services.syncthing.dataDir}/annex2/Books" = { id = "wslmq-fyw4w";
devices = ["mxp10" "fwmine"]; label = "mykolo";
id = "8lk0n-mm63y"; };
label = "Books"; "${config.services.syncthing.dataDir}/annex2/Books" = {
}; devices = ["mxp10" "fwminex"];
"${config.services.syncthing.dataDir}/annex2/M-Active" = { id = "8lk0n-mm63y";
devices = ["mxp10" "fwmine"]; label = "Books";
id = "f6fma-unkxq"; };
label = "M-Active"; "${config.services.syncthing.dataDir}/annex2/M-Active" = {
}; devices = ["mxp10" "fwminex"];
"${config.services.syncthing.dataDir}/annex2/M-Camera" = { id = "f6fma-unkxq";
devices = ["mxp10" "fwmine"]; label = "M-Active";
id = "pixel_xl_dtm3-photos"; };
label = "M-Active"; "${config.services.syncthing.dataDir}/annex2/M-Camera" = {
}; devices = ["mxp10" "fwminex"];
"${config.services.syncthing.dataDir}/annex2/M-Documents" = { id = "pixel_xl_dtm3-photos";
devices = ["fwmine"]; label = "M-Active";
id = "4fu7z-z6es2"; };
label = "M-Documents"; "${config.services.syncthing.dataDir}/annex2/M-Documents" = {
}; devices = ["fwminex"];
"${config.services.syncthing.dataDir}/annex2/R-Documents" = { id = "4fu7z-z6es2";
devices = ["rzj-744P2PE"]; label = "M-Documents";
id = "nm23h-aog6k"; };
label = "R-Documents"; "${config.services.syncthing.dataDir}/annex2/R-Documents" = {
}; devices = ["rzj-744P2PE"];
"${config.services.syncthing.dataDir}/annex2/Pictures" = { id = "nm23h-aog6k";
devices = ["fwmine"]; label = "R-Documents";
id = "d3hur-cbzyw"; };
label = "Pictures"; "${config.services.syncthing.dataDir}/annex2/Pictures" = {
}; devices = ["fwminex"];
"${config.services.syncthing.dataDir}/annex2/M-R" = { id = "d3hur-cbzyw";
devices = ["fwmine" "rzj-744P2PE" "mxp10"]; label = "Pictures";
id = "evgn9-ahngz"; };
label = "M-R"; "${config.services.syncthing.dataDir}/annex2/M-R" = {
}; devices = ["fwminex" "rzj-744P2PE" "mxp10"];
"${config.services.syncthing.dataDir}/stud-cache" = { id = "evgn9-ahngz";
devices = ["fwmine"]; label = "M-R";
id = "2kq7n-jqzxj"; };
label = "stud-cache"; "${config.services.syncthing.dataDir}/stud-cache" = {
}; devices = ["fwminex"];
"${config.services.syncthing.dataDir}/video/shared" = { id = "2kq7n-jqzxj";
devices = ["mxp10" "fwmine"]; label = "stud-cache";
id = "byzmw-f6zhg"; };
label = "video-shared"; "${config.services.syncthing.dataDir}/video/shared" = {
}; devices = ["mxp10" "fwminex"];
"${config.services.syncthing.dataDir}/music" = { id = "byzmw-f6zhg";
devices = ["fwmine" "mxp10"]; label = "video-shared";
id = "tg94v-cqcwr"; };
label = "music"; "${config.services.syncthing.dataDir}/music" = {
}; devices = ["fwminex" "mxp10"];
"${config.services.syncthing.dataDir}/irenos" = { id = "tg94v-cqcwr";
devices = ["KrekenavosNamai"]; label = "music";
id = "wuwai-qkcqj"; };
label = "Irenos"; "${config.services.syncthing.dataDir}/irenos" = {
}; devices = ["KrekenavosNamai"];
}; id = "wuwai-qkcqj";
label = "Irenos";
};
}
)
// (
lib.optionalAttrs (config.networking.hostName == "fwminex") {
"/home/motiejus/Books" = {
devices = ["mxp10" "vno1-oh2" "fwminex"];
id = "gqrtz-prx9h";
label = "Books";
};
}
);
}; };
}; };
} }