syncthing: a few more folders
This commit is contained in:
parent
52b1aa4450
commit
e6a47f4420
@ -5,6 +5,14 @@
|
|||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
guiPort = 8384;
|
guiPort = 8384;
|
||||||
|
cfg = config.services.syncthing;
|
||||||
|
devices = {
|
||||||
|
"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";
|
||||||
|
"KrekenavosNamai".id = "CYZDYL6-YMW7SZ3-K6IJO4Q-6NOULSG-OVZ3BGN-6LN3CLR-P3BJFKW-2PMHJQT";
|
||||||
|
};
|
||||||
folders = {
|
folders = {
|
||||||
Books = {
|
Books = {
|
||||||
devices = ["mxp10" "fwminex" "vno1-oh2"];
|
devices = ["mxp10" "fwminex" "vno1-oh2"];
|
||||||
@ -16,6 +24,26 @@
|
|||||||
id = "f6fma-unkxq";
|
id = "f6fma-unkxq";
|
||||||
label = "M-Active";
|
label = "M-Active";
|
||||||
};
|
};
|
||||||
|
M-Documents = {
|
||||||
|
devices = ["fwminex" "vno1-oh2"];
|
||||||
|
id = "4fu7z-z6es2";
|
||||||
|
label = "M-Documents";
|
||||||
|
};
|
||||||
|
M-Camera = {
|
||||||
|
devices = ["mxp10" "fwminex" "vno1-oh2"];
|
||||||
|
id = "pixel_xl_dtm3-photos";
|
||||||
|
label = "M-Active";
|
||||||
|
};
|
||||||
|
R-Documents = {
|
||||||
|
devices = ["rzj-744P2PE" "vno1-oh2"];
|
||||||
|
id = "nm23h-aog6k";
|
||||||
|
label = "R-Documents";
|
||||||
|
};
|
||||||
|
Pictures = {
|
||||||
|
devices = ["fwminex" "vno1-oh2"];
|
||||||
|
id = "d3hur-cbzyw";
|
||||||
|
label = "Pictures";
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
@ -51,20 +79,14 @@ in {
|
|||||||
devices =
|
devices =
|
||||||
{}
|
{}
|
||||||
// (lib.optionalAttrs (config.networking.hostName == "vno1-oh2") {
|
// (lib.optionalAttrs (config.networking.hostName == "vno1-oh2") {
|
||||||
"fwminex".id = "GKSUKZE-AOBQOWY-CNLZ2ZI-WNKATYE-MV4Y452-J3VCJ5C-EAANXRX-2P6EHA6";
|
inherit (devices) fwminex vno1-oh2 mxp10 rzj-744P2PE KrekenavosNamai;
|
||||||
"mxp10".id = "LO54QZZ-5J3G62P-WUVM3MW-7J3VWHD-BG76TOQ-5S7PZSY-JU45K3I-X3ZL4AN";
|
|
||||||
"rzj-744P2PE".id = "UW6ISH2-NW6X6AW-BJR76TV-TV3BIGZ-PA5QH2M-YEF567T-IWMHKD5-P3XHHAH";
|
|
||||||
"KrekenavosNamai".id = "CYZDYL6-YMW7SZ3-K6IJO4Q-6NOULSG-OVZ3BGN-6LN3CLR-P3BJFKW-2PMHJQT";
|
|
||||||
})
|
})
|
||||||
// (lib.optionalAttrs (config.networking.hostName == "fwminex") {
|
// (lib.optionalAttrs (config.networking.hostName == "fwminex") {
|
||||||
"fwminex".id = "GKSUKZE-AOBQOWY-CNLZ2ZI-WNKATYE-MV4Y452-J3VCJ5C-EAANXRX-2P6EHA6";
|
inherit (devices) fwminex vno1-oh2 mxp10 rzj-744P2PE;
|
||||||
"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 = with folders;
|
||||||
{}
|
{}
|
||||||
// (
|
// (
|
||||||
lib.optionalAttrs (config.networking.hostName == "vno1-oh2") {
|
lib.optionalAttrs (config.networking.hostName == "vno1-oh2") {
|
||||||
@ -83,49 +105,33 @@ in {
|
|||||||
id = "wslmq-fyw4w";
|
id = "wslmq-fyw4w";
|
||||||
label = "mykolo";
|
label = "mykolo";
|
||||||
};
|
};
|
||||||
"${config.services.syncthing.dataDir}/annex2/Books" = folders.Books;
|
"${cfg.dataDir}/annex2/Books" = Books;
|
||||||
"${config.services.syncthing.dataDir}/annex2/M-Active" = folders.M-Active;
|
"${cfg.dataDir}/annex2/M-Active" = M-Active;
|
||||||
"${config.services.syncthing.dataDir}/annex2/M-Camera" = {
|
"${cfg.dataDir}/annex2/M-Camera" = M-Camera;
|
||||||
devices = ["mxp10" "fwminex"];
|
"${cfg.dataDir}/annex2/M-Documents" = M-Documents;
|
||||||
id = "pixel_xl_dtm3-photos";
|
"${cfg.dataDir}/annex2/R-Documents" = R-Documents;
|
||||||
label = "M-Active";
|
"${cfg.dataDir}/annex2/Pictures" = Pictures;
|
||||||
};
|
"${cfg.dataDir}/annex2/M-R" = {
|
||||||
"${config.services.syncthing.dataDir}/annex2/M-Documents" = {
|
|
||||||
devices = ["fwminex"];
|
|
||||||
id = "4fu7z-z6es2";
|
|
||||||
label = "M-Documents";
|
|
||||||
};
|
|
||||||
"${config.services.syncthing.dataDir}/annex2/R-Documents" = {
|
|
||||||
devices = ["rzj-744P2PE"];
|
|
||||||
id = "nm23h-aog6k";
|
|
||||||
label = "R-Documents";
|
|
||||||
};
|
|
||||||
"${config.services.syncthing.dataDir}/annex2/Pictures" = {
|
|
||||||
devices = ["fwminex"];
|
|
||||||
id = "d3hur-cbzyw";
|
|
||||||
label = "Pictures";
|
|
||||||
};
|
|
||||||
"${config.services.syncthing.dataDir}/annex2/M-R" = {
|
|
||||||
devices = ["fwminex" "rzj-744P2PE" "mxp10"];
|
devices = ["fwminex" "rzj-744P2PE" "mxp10"];
|
||||||
id = "evgn9-ahngz";
|
id = "evgn9-ahngz";
|
||||||
label = "M-R";
|
label = "M-R";
|
||||||
};
|
};
|
||||||
"${config.services.syncthing.dataDir}/stud-cache" = {
|
"${cfg.dataDir}/stud-cache" = {
|
||||||
devices = ["fwminex"];
|
devices = ["fwminex"];
|
||||||
id = "2kq7n-jqzxj";
|
id = "2kq7n-jqzxj";
|
||||||
label = "stud-cache";
|
label = "stud-cache";
|
||||||
};
|
};
|
||||||
"${config.services.syncthing.dataDir}/video/shared" = {
|
"${cfg.dataDir}/video/shared" = {
|
||||||
devices = ["mxp10" "fwminex"];
|
devices = ["mxp10" "fwminex"];
|
||||||
id = "byzmw-f6zhg";
|
id = "byzmw-f6zhg";
|
||||||
label = "video-shared";
|
label = "video-shared";
|
||||||
};
|
};
|
||||||
"${config.services.syncthing.dataDir}/music" = {
|
"${cfg.dataDir}/music" = {
|
||||||
devices = ["fwminex" "mxp10"];
|
devices = ["fwminex" "mxp10"];
|
||||||
id = "tg94v-cqcwr";
|
id = "tg94v-cqcwr";
|
||||||
label = "music";
|
label = "music";
|
||||||
};
|
};
|
||||||
"${config.services.syncthing.dataDir}/irenos" = {
|
"${cfg.dataDir}/irenos" = {
|
||||||
devices = ["KrekenavosNamai"];
|
devices = ["KrekenavosNamai"];
|
||||||
id = "wuwai-qkcqj";
|
id = "wuwai-qkcqj";
|
||||||
label = "Irenos";
|
label = "Irenos";
|
||||||
@ -134,8 +140,11 @@ in {
|
|||||||
)
|
)
|
||||||
// (
|
// (
|
||||||
lib.optionalAttrs (config.networking.hostName == "fwminex") {
|
lib.optionalAttrs (config.networking.hostName == "fwminex") {
|
||||||
"/home/motiejus/Books" = folders.Books;
|
"${cfg.dataDir}/Books" = Books;
|
||||||
"/home/motiejus/M-Active" = folders.M-Active;
|
"${cfg.dataDir}/M-Active" = M-Active;
|
||||||
|
"${cfg.dataDir}/M-Documents" = M-Documents;
|
||||||
|
"${cfg.dataDir}/M-Camera" = M-Camera;
|
||||||
|
"${cfg.dataDir}/Pictures" = Pictures;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user