vno1-gdrx: +syncthing

This commit is contained in:
Motiejus Jakštys 2024-08-05 18:48:52 +03:00
parent 63ad6f0673
commit 2b5daee129
6 changed files with 89 additions and 6 deletions

View File

@ -203,8 +203,8 @@
root-passwd-hash.file = ./secrets/root_passwd_hash.age; root-passwd-hash.file = ./secrets/root_passwd_hash.age;
sasl-passwd.file = ./secrets/postfix_sasl_passwd.age; sasl-passwd.file = ./secrets/postfix_sasl_passwd.age;
#syncthing-key.file = ./secrets/mtworx/syncthing/key.pem.age; syncthing-key.file = ./secrets/vno1-gdrx/syncthing/key.pem.age;
#syncthing-cert.file = ./secrets/mtworx/syncthing/cert.pem.age; syncthing-cert.file = ./secrets/vno1-gdrx/syncthing/cert.pem.age;
}; };
} }
]; ];

View File

@ -66,11 +66,19 @@ in
services = { services = {
sshguard.enable = false; sshguard.enable = false;
tailscale = { tailscale = {
enable = true; enable = true;
verboseLogs = true; verboseLogs = true;
}; };
syncthing = {
enable = true;
dataDir = "/home/motiejus/";
user = "motiejus";
group = "users";
};
#btrfssnapshot = { #btrfssnapshot = {
# enable = true; # enable = true;
# subvolumes = [ # subvolumes = [

View File

@ -14,6 +14,7 @@ let
"rzj-744P2PE".id = "UW6ISH2-NW6X6AW-BJR76TV-TV3BIGZ-PA5QH2M-YEF567T-IWMHKD5-P3XHHAH"; "rzj-744P2PE".id = "UW6ISH2-NW6X6AW-BJR76TV-TV3BIGZ-PA5QH2M-YEF567T-IWMHKD5-P3XHHAH";
"sqq1-desk".id = "WJ5KGRS-AGDZ7SW-INIVWHR-Q4E5QX4-Y4TT2AK-QRJTOTL-2UHXX6O-5MUPGA2"; "sqq1-desk".id = "WJ5KGRS-AGDZ7SW-INIVWHR-Q4E5QX4-Y4TT2AK-QRJTOTL-2UHXX6O-5MUPGA2";
"vno1-vinc".id = "4W3S7R2-OWI6XO6-V4NMDNB-NTIETYP-QJSBQGA-WEIXPHR-WNZZ7R4-VT4COAR"; "vno1-vinc".id = "4W3S7R2-OWI6XO6-V4NMDNB-NTIETYP-QJSBQGA-WEIXPHR-WNZZ7R4-VT4COAR";
"vno1-gdrx".id = "XOZO6GL-MEH55QR-PTNRVHE-45PD3L2-SHP7XW6-VXKROQ5-F47U3AX-QQACLQP";
"vno2-irena".id = "VL2MA2E-ZDGVHYN-A3Q3EKU-7J625QM-FG7CNXY-UKDL563-MDRRIEG-XQDS3AW"; "vno2-irena".id = "VL2MA2E-ZDGVHYN-A3Q3EKU-7J625QM-FG7CNXY-UKDL563-MDRRIEG-XQDS3AW";
"v-kfire".id = "REEDZAL-KPLWARZ-466J4BR-H5UDI6D-UUA33QG-HPZHIMX-WNFLDGD-PJLTFQZ"; "v-kfire".id = "REEDZAL-KPLWARZ-466J4BR-H5UDI6D-UUA33QG-HPZHIMX-WNFLDGD-PJLTFQZ";
"a-kfire".id = "VIQF4QW-2OLBBIK-XWOIO4A-264J32R-BE4J4BT-WEJXMYO-MXQDQHD-SJ6MEQ7"; "a-kfire".id = "VIQF4QW-2OLBBIK-XWOIO4A-264J32R-BE4J4BT-WEJXMYO-MXQDQHD-SJ6MEQ7";
@ -21,6 +22,7 @@ let
folders = { folders = {
Books = { Books = {
devices = [ devices = [
"vno1-gdrx"
"fwminex" "fwminex"
"mxp10" "mxp10"
]; ];
@ -28,12 +30,16 @@ let
label = "Books"; label = "Books";
}; };
Mail = { Mail = {
devices = [ "fwminex" ]; devices = [
"vno1-gdrx"
"fwminex"
];
id = "66fmz-x6f1a"; id = "66fmz-x6f1a";
label = "Mail"; label = "Mail";
}; };
M-Active = { M-Active = {
devices = [ devices = [
"vno1-gdrx"
"mxp10" "mxp10"
"fwminex" "fwminex"
"mtworx" "mtworx"
@ -49,7 +55,10 @@ let
}; };
}; };
M-Documents = { M-Documents = {
devices = [ "fwminex" ]; devices = [
"vno1-gdrx"
"fwminex"
];
id = "4fu7z-z6es2"; id = "4fu7z-z6es2";
label = "M-Documents"; label = "M-Documents";
}; };
@ -57,6 +66,7 @@ let
devices = [ devices = [
"vno1-vinc" "vno1-vinc"
"sqq1-desk" "sqq1-desk"
"vno1-gdrx"
"fwminex" "fwminex"
"mtworx" "mtworx"
"v-kfire" "v-kfire"
@ -70,6 +80,7 @@ let
M-Camera = { M-Camera = {
devices = [ devices = [
"mxp10" "mxp10"
"vno1-gdrx"
"fwminex" "fwminex"
"mtworx" "mtworx"
]; ];
@ -82,12 +93,16 @@ let
label = "R-Documents"; label = "R-Documents";
}; };
Pictures = { Pictures = {
devices = [ "fwminex" ]; devices = [
"vno1-gdrx"
"fwminex"
];
id = "d3hur-cbzyw"; id = "d3hur-cbzyw";
label = "Pictures"; label = "Pictures";
}; };
Music = { Music = {
devices = [ devices = [
"vno1-gdrx"
"fwminex" "fwminex"
"mtworx" "mtworx"
"mxp10" "mxp10"
@ -97,6 +112,7 @@ let
}; };
video-shared = { video-shared = {
devices = [ devices = [
"vno1-gdrx"
"mxp10" "mxp10"
"mtworx" "mtworx"
"fwminex" "fwminex"
@ -105,12 +121,16 @@ let
label = "video-shared"; label = "video-shared";
}; };
stud-cache = { stud-cache = {
devices = [ "fwminex" ]; devices = [
"vno1-gdrx"
"fwminex"
];
id = "2kq7n-jqzxj"; id = "2kq7n-jqzxj";
label = "stud-cache"; label = "stud-cache";
}; };
M-R = { M-R = {
devices = [ devices = [
"vno1-gdrx"
"fwminex" "fwminex"
"rzj-744P2PE" "rzj-744P2PE"
"mxp10" "mxp10"
@ -127,6 +147,11 @@ let
id = "wuwai-qkcqj"; id = "wuwai-qkcqj";
label = "Irenos"; label = "Irenos";
}; };
www-vno1-gdrx = {
devices = [ "vno1-gdrx" ];
id = "7z7ao-3hbxi";
label = "www-vno1-gdrx";
};
www-fwminex = { www-fwminex = {
devices = [ "fwminex" ]; devices = [ "fwminex" ];
id = "7z9sw-2nubh"; id = "7z9sw-2nubh";
@ -179,8 +204,23 @@ in
settings = { settings = {
devices = devices =
{ } { }
// (lib.optionalAttrs (config.networking.hostName == "vno1-gdrx") {
inherit (devices)
vno1-gdrx
fwminex
mtworx
mxp10
rzj-744P2PE
sqq1-desk
vno1-vinc
vno2-irena
v-kfire
a-kfire
;
})
// (lib.optionalAttrs (config.networking.hostName == "fwminex") { // (lib.optionalAttrs (config.networking.hostName == "fwminex") {
inherit (devices) inherit (devices)
vno1-gdrx
fwminex fwminex
mtworx mtworx
mxp10 mxp10
@ -194,6 +234,7 @@ in
}) })
// (lib.optionalAttrs (config.networking.hostName == "mtworx") { // (lib.optionalAttrs (config.networking.hostName == "mtworx") {
inherit (devices) inherit (devices)
vno1-gdrx
mtworx mtworx
fwminex fwminex
vno1-vinc vno1-vinc
@ -235,6 +276,20 @@ in
"${cfg.dataDir}/Video" = video-shared; "${cfg.dataDir}/Video" = video-shared;
"${cfg.dataDir}/music" = Music; "${cfg.dataDir}/music" = Music;
"${cfg.dataDir}/www" = www-mtworx; "${cfg.dataDir}/www" = www-mtworx;
})
// (lib.optionalAttrs (config.networking.hostName == "vno1-gdrx") {
"${cfg.dataDir}/Books" = Books;
"${cfg.dataDir}/Mail" = Mail;
"${cfg.dataDir}/M-Active" = M-Active;
"${cfg.dataDir}/M-Camera" = M-Camera;
"${cfg.dataDir}/M-Documents" = M-Documents;
"${cfg.dataDir}/Pictures" = Pictures;
"${cfg.dataDir}/M-R" = M-R;
"${cfg.dataDir}/stud-cache" = stud-cache;
"${cfg.dataDir}/video/shared" = video-shared;
"${cfg.dataDir}/video/Vaikai" = Vaikai;
"${cfg.dataDir}/music" = Music;
"${cfg.dataDir}/www" = www-vno1-gdrx;
}); });
}; };
}; };

View File

@ -38,6 +38,10 @@ in
"secrets/mtworx/syncthing/key.pem.age" "secrets/mtworx/syncthing/key.pem.age"
"secrets/mtworx/syncthing/cert.pem.age" "secrets/mtworx/syncthing/cert.pem.age"
] ]
// mk ([ vno1-gdrx ] ++ motiejus) [
"secrets/vno1-gdrx/syncthing/key.pem.age"
"secrets/vno1-gdrx/syncthing/cert.pem.age"
]
// mk ([ fwminex ] ++ motiejus) [ // mk ([ fwminex ] ++ motiejus) [
"secrets/motiejus_server_passwd_hash.age" "secrets/motiejus_server_passwd_hash.age"
"secrets/root_server_passwd_hash.age" "secrets/root_server_passwd_hash.age"

View File

@ -0,0 +1,16 @@
age-encryption.org/v1
-> ssh-ed25519 lDWJbA qd8pCtAkTVE/GeUes2de1g1aUsYhwu1irvUl+vBW4V8
Hp09L0sWIMnGU7+vTQ3nK+eWPICmwnFcv4PAae/UGu4
-> X25519 XTt+hV/Amhe84t0Klb8tPHmlMNriOt/GyLEed8cS/Uo
nkJ9nUAFOBCMnDT//EOw/Fw3Reyp07QXW9cTt9bSWZE
-> X25519 8k2/ghGi/a5rCh9RI9YvEpOnyMm8UC4WJJuYVQV0jUs
OvPJPwLzhAiPDDnCDDkOEjuVMEgW94/BZHZA7YoFrB4
-> piv-p256 +y2G/w AtumpdI8OtBy0KZlmQPXIa2uUoLo0z6nZOHmm+qDQi9P
/3fzNyESI1D+0QwLlu+kPqPOqTPIiD9gRe3lAjksjRo
-> piv-p256 jNqd3A Aqx0y3TaULqvMGecH971t3rrgoUP3/v1m054UMHv1Hco
tJjFn60OQawyIyDqNGpSKFjpgdBhB3S6Ry/rEGXWGjo
--- vvu+ME266bC882uH9jopi+YekAHa+SzC/WmTvifEfMc
¸Ö« Ñ£5<C2A3>h_—«~—÷`¾ù_¸ÑXÄþp¯@n™ Žü°pHíÌ:ºO|-1þ·ÉïOÈs/ý)‹á€'Ò³¿ë;GhD&H€yˆ/4Cté,Í_Pâ·ˆ)±îVÍFÞ§·MÊÍs>ûd<C3BB>äù¦%ÄTôfýÑÃð¿e>¶áŒ/Ø bTü¢//ÖË€xÖäëÝÁ¸ºHÈ„Lz¦0·Ô²1¸°H/céS çÖJ¯06Ôê4Q{P©¸LÆGN3È@<40>2"Ÿéº<C3A9>˜ ŸÝaUÂiÕ†ÏÊwºaD .FèïB˜6ÝŽ#¬;ñáf*)
y<EFBFBD>ª]<5D>pðÿ©Ä7Ã}˜²ÈÐEã1: ¦‘<dÆpX}X|†Ã_~Tš¾öÑðU_¡¥7¦ñ`/ZJç<4A>^¹ƒcßž\›”!3:q½hÿæçY;IöÅbCì«T¯ˆ(i€28ÖM_„ð¾÷üžX§%»½<>†Ÿ•Ù±Ç>4ze¦ÈŒ8!pÛ:ŒÚƒ¹óS­„ô"¶¦è¥á3^†÷˜Ú—užüyq¶wïxèîI°_ƒ<5F>h׳UòéØÊõ¥Zð2RÑùó#˜I¡3ø<33>Žƒ×MS¶ÎÖ¯i
{dG<64>1oÿ98ä×ì˜q•Ùª ÞãIn öâ<C3B6>¸ð}7­½÷<C2BD>܇‰”ñÇXcŽjôaßòÓÕ„Xæ=üä澓yó6jÓƒ<C393>è Ò+k±·µÀ³ïºÞá¯ó<C2AF>?™1 ~ƒÂÐùé<E28099>[°IÏz{ÛµN<C2B5>Ѓ˜d#<23>쉮ÏÆlÏì=²­È6™ãBÓÀ`¬|Ð3V©„[Ê8]õ:eLÔc*Þ'ƒ-!°„C°ðÝTBs^÷gý{÷1g¯<67>6øo1Ÿó~eÙ{î»>O¨±¢4Âڬƞ<cõi¨pç¶íx¼[ÊêÎa9qšCƒX± ÂѤƒßëùÙ­s¯ïšìD4×ß
<70>̇AÌ9Rb4b“­ ®¦Ÿx·O³ MËÜè+Þ;ÇSŸ)Þþw{&G ²¹DrÒÕG¸Ê[墿gNçÿ

Binary file not shown.