feat: big refactor
This commit is contained in:
parent
2c09c21833
commit
ebedec9768
159 changed files with 1927 additions and 2222 deletions
90
modules/services/syncthing.nix
Normal file
90
modules/services/syncthing.nix
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
{ lib, config, ... }:
|
||||
lib.mkIf config.bchmnn.sync.enable {
|
||||
|
||||
options.bchmnn.services.syncthing = {
|
||||
enable = lib.mkEnableOption "syncthing";
|
||||
};
|
||||
|
||||
config = lib.mkIf (config.bchmnn.services.syncthing.enable) {
|
||||
services.syncthing = {
|
||||
enable = false;
|
||||
openDefaultPorts = true;
|
||||
|
||||
settings = {
|
||||
devices = {
|
||||
T430 = {
|
||||
id = "UGQINNI-SC6F24X-5JE7YTP-LZLORTX-7GQ5NKK-YMRDRPK-JHRTWUV-4ILUJQQ";
|
||||
};
|
||||
IROH = {
|
||||
id = "PJA2MBA-66PQQEO-5KICONS-FGHDH46-YRV2X5Y-47UUP77-QXI2WNS-R33FPAK";
|
||||
};
|
||||
};
|
||||
|
||||
folders = {
|
||||
"dl" = {
|
||||
path = "~/dl";
|
||||
id = "z97eb-myxtp";
|
||||
devices = [
|
||||
"IROH"
|
||||
"T430"
|
||||
];
|
||||
};
|
||||
"docs" = {
|
||||
path = "~/docs";
|
||||
id = "rhh6x-dmymv";
|
||||
devices = [
|
||||
"IROH"
|
||||
"T430"
|
||||
];
|
||||
};
|
||||
"music" = {
|
||||
path = "~/music";
|
||||
id = "umzur-ncrf6";
|
||||
devices = [
|
||||
"IROH"
|
||||
"T430"
|
||||
];
|
||||
};
|
||||
"orgfiles" = {
|
||||
path = "~/orgfiles";
|
||||
id = "0f5t9-dl5l5";
|
||||
devices = [ ];
|
||||
versioning = {
|
||||
type = "simple";
|
||||
params.keep = "5";
|
||||
};
|
||||
};
|
||||
"pics" = {
|
||||
path = "~/pics";
|
||||
id = "cuejs-esf7u";
|
||||
devices = [
|
||||
"IROH"
|
||||
"T430"
|
||||
];
|
||||
};
|
||||
"tmp" = {
|
||||
path = "~/tmp";
|
||||
id = "d6k5d-hdxyh";
|
||||
devices = [
|
||||
"IROH"
|
||||
"T430"
|
||||
];
|
||||
};
|
||||
"vids" = {
|
||||
path = "~/vids";
|
||||
id = "bjx9u-ujjwi";
|
||||
devices = [
|
||||
"IROH"
|
||||
"T430"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
user = "gandalf";
|
||||
group = "users";
|
||||
dataDir = "/home/gandalf";
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue