Skip to content

Commit

Permalink
feat(syncthing): added Work device and sharing learning project
Browse files Browse the repository at this point in the history
I added device to share my projects/learning staff which I created for
enterprice purposes
  • Loading branch information
Wittano committed Nov 1, 2024
1 parent 8af8893 commit 528c217
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 44 deletions.
80 changes: 38 additions & 42 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 19 additions & 2 deletions modules/services/syncthing.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ in
};
};

config = {
config = rec {
modules.dev.lang.ides = mkIf (cfg.enable && services.syncthing.settings.devices ? Work) [ "jvm" ];

services.syncthing = {
enable = cfg.enable;
systemService = true;
Expand All @@ -29,6 +31,21 @@ in
"TrueNAS"
];
};
learning = {
id = "7uub2-oxvra";
label = "Enterprice learning projects";
path = "~/projects/learning";
devices = [
"Work"
];
versioning = {
type = "trashcan";
params = {
keep = "3";
cleanoutDays = "356";
};
};
};
sync = {
id = "default";
label = "Sync folder";
Expand Down Expand Up @@ -60,8 +77,8 @@ in
TrueNAS.id = "CIMVMQO-7RLKQAL-BXRS6Z3-XXFPRLB-PYHZUR3-KKH5HGX-PFWLY6S-C3KLEQ6";
Karol.id = "F7EH7MZ-N5VYRKT-IA2XWJG-I7SPGDP-RDVSZCU-WTCI534-NQPF7I2-KLE6IQL";
Win10VM.id = "4KACCLO-MJCLRTA-2TOCUIE-4CNJL3W-EWUDXIR-2MIPHNC-HMZPQFP-IYTOHAW";
Work.id = "M3EUKVC-IYHSZZF-OFX75LZ-3E4WZAJ-PGUTYXD-FYDZSEW-GRBGRDZ-IBOHGQK";
};
extraOptions.gui.theme = "dark";
};
};
};
Expand Down

0 comments on commit 528c217

Please sign in to comment.