fwminex: +synthing

This commit is contained in:
Motiejus Jakštys 2024-07-30 22:46:29 +03:00
parent 6d6d68584e
commit 6a54c9f69d
3 changed files with 48 additions and 68 deletions

View File

@ -124,6 +124,13 @@ in
]; ];
}; };
syncthing = {
enable = true;
dataDir = "/home/motiejus/";
user = "motiejus";
group = "users";
};
remote-builder.client = remote-builder.client =
let let
host = myData.hosts."fra1-a.servers.jakst"; host = myData.hosts."fra1-a.servers.jakst";

View File

@ -135,10 +135,7 @@
{ {
mountpoint = "/home"; mountpoint = "/home";
repo = "zh2769@zh2769.rsync.net:${config.networking.hostName}.${config.networking.domain}-home-motiejus-annex2"; repo = "zh2769@zh2769.rsync.net:${config.networking.hostName}.${config.networking.domain}-home-motiejus-annex2";
paths = [ paths = [ "motiejus/annex2" ];
"motiejus/annex2"
"motiejus/.config/syncthing"
];
backup_at = "*-*-* 02:00:00 UTC"; backup_at = "*-*-* 02:00:00 UTC";
} }
{ {
@ -146,10 +143,7 @@
repo = "borgstor@${ repo = "borgstor@${
myData.hosts."vno3-rp3b.servers.jakst".jakstIP myData.hosts."vno3-rp3b.servers.jakst".jakstIP
}:${config.networking.hostName}.${config.networking.domain}-home-motiejus-annex2"; }:${config.networking.hostName}.${config.networking.domain}-home-motiejus-annex2";
paths = [ paths = [ "motiejus/annex2" ];
"motiejus/annex2"
"motiejus/.config/syncthing"
];
backup_at = "*-*-* 02:00:00 UTC"; backup_at = "*-*-* 02:00:00 UTC";
} }
]; ];

View File

@ -212,33 +212,23 @@ in
settings = { settings = {
devices = devices =
{ } { }
// (lib.optionalAttrs (config.networking.hostName == "vno1-oh2") { // (lib.optionalAttrs
inherit (devices) (config.networking.hostName == "vno1-oh2" || config.networking.hostName == "fwminex")
fwminex {
mtworx inherit (devices)
vno1-oh2 fwminex
mxp10 mtworx
rzj-744P2PE vno1-oh2
sqq1-desk mxp10
vno1-vinc rzj-744P2PE
vno2-irena sqq1-desk
v-kfire vno1-vinc
a-kfire vno2-irena
; v-kfire
}) a-kfire
// (lib.optionalAttrs (config.networking.hostName == "fwminex") { ;
inherit (devices) }
fwminex )
mtworx
vno1-oh2
mxp10
rzj-744P2PE
sqq1-desk
vno1-vinc
v-kfire
a-kfire
;
})
// (lib.optionalAttrs (config.networking.hostName == "mtworx") { // (lib.optionalAttrs (config.networking.hostName == "mtworx") {
inherit (devices) inherit (devices)
mtworx mtworx
@ -256,25 +246,28 @@ in
folders = folders =
with folders; with folders;
{ } { }
// (lib.optionalAttrs (config.networking.hostName == "vno1-oh2") { // (lib.optionalAttrs
"/var/www/dl/tel" = www-mxp10; (config.networking.hostName == "vno1-oh2" || config.networking.hostName == "fwminex")
"/var/www/dl/fwminex" = www-fwminex; {
"/var/www/dl/mtworx" = www-mtworx; "/var/www/dl/tel" = www-mxp10;
"/var/www/dl/mykolo" = mykolo; "/var/www/dl/fwminex" = www-fwminex;
"${cfg.dataDir}/annex2/Books" = Books; "/var/www/dl/mtworx" = www-mtworx;
"${cfg.dataDir}/annex2/Mail" = Mail; "/var/www/dl/mykolo" = mykolo;
"${cfg.dataDir}/annex2/M-Active" = M-Active; "${cfg.dataDir}/annex2/Books" = Books;
"${cfg.dataDir}/annex2/M-Camera" = M-Camera; "${cfg.dataDir}/annex2/Mail" = Mail;
"${cfg.dataDir}/annex2/M-Documents" = M-Documents; "${cfg.dataDir}/annex2/M-Active" = M-Active;
"${cfg.dataDir}/annex2/R-Documents" = R-Documents; "${cfg.dataDir}/annex2/M-Camera" = M-Camera;
"${cfg.dataDir}/annex2/Pictures" = Pictures; "${cfg.dataDir}/annex2/M-Documents" = M-Documents;
"${cfg.dataDir}/annex2/M-R" = M-R; "${cfg.dataDir}/annex2/R-Documents" = R-Documents;
"${cfg.dataDir}/stud-cache" = stud-cache; "${cfg.dataDir}/annex2/Pictures" = Pictures;
"${cfg.dataDir}/video/shared" = video-shared; "${cfg.dataDir}/annex2/M-R" = M-R;
"${cfg.dataDir}/video/Vaikai" = Vaikai; "${cfg.dataDir}/stud-cache" = stud-cache;
"${cfg.dataDir}/music" = Music; "${cfg.dataDir}/video/shared" = video-shared;
"${cfg.dataDir}/irenos" = Irenos; "${cfg.dataDir}/video/Vaikai" = Vaikai;
}) "${cfg.dataDir}/music" = Music;
"${cfg.dataDir}/irenos" = Irenos;
}
)
// (lib.optionalAttrs (config.networking.hostName == "mtworx") { // (lib.optionalAttrs (config.networking.hostName == "mtworx") {
"${cfg.dataDir}/M-Active" = M-Active; "${cfg.dataDir}/M-Active" = M-Active;
"${cfg.dataDir}/M-Camera" = M-Camera; "${cfg.dataDir}/M-Camera" = M-Camera;
@ -283,20 +276,6 @@ 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 == "fwminex") {
"${cfg.dataDir}/.cache/evolution" = Mail;
"${cfg.dataDir}/Books" = Books;
"${cfg.dataDir}/M-Active" = M-Active;
"${cfg.dataDir}/M-Documents" = M-Documents;
"${cfg.dataDir}/M-Camera" = M-Camera;
"${cfg.dataDir}/Pictures" = Pictures;
"${cfg.dataDir}/Music" = Music;
"${cfg.dataDir}/M-R" = M-R;
"${cfg.dataDir}/Vaikai" = Vaikai;
"${cfg.dataDir}/Video" = video-shared;
"${cfg.dataDir}/stud-cache" = stud-cache;
"${cfg.dataDir}/www" = www-fwminex;
}); });
}; };
}; };