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,7 +212,9 @@ in
settings = { settings = {
devices = devices =
{ } { }
// (lib.optionalAttrs (config.networking.hostName == "vno1-oh2") { // (lib.optionalAttrs
(config.networking.hostName == "vno1-oh2" || config.networking.hostName == "fwminex")
{
inherit (devices) inherit (devices)
fwminex fwminex
mtworx mtworx
@ -225,20 +227,8 @@ in
v-kfire v-kfire
a-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,7 +246,9 @@ in
folders = folders =
with folders; with folders;
{ } { }
// (lib.optionalAttrs (config.networking.hostName == "vno1-oh2") { // (lib.optionalAttrs
(config.networking.hostName == "vno1-oh2" || config.networking.hostName == "fwminex")
{
"/var/www/dl/tel" = www-mxp10; "/var/www/dl/tel" = www-mxp10;
"/var/www/dl/fwminex" = www-fwminex; "/var/www/dl/fwminex" = www-fwminex;
"/var/www/dl/mtworx" = www-mtworx; "/var/www/dl/mtworx" = www-mtworx;
@ -274,7 +266,8 @@ in
"${cfg.dataDir}/video/Vaikai" = Vaikai; "${cfg.dataDir}/video/Vaikai" = Vaikai;
"${cfg.dataDir}/music" = Music; "${cfg.dataDir}/music" = Music;
"${cfg.dataDir}/irenos" = Irenos; "${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;
}); });
}; };
}; };