add Programming to Syncthing

This commit is contained in:
KoenDR06 2025-10-22 19:16:22 +02:00
parent b59e027503
commit e1eef0c5b6

View file

@ -5,6 +5,7 @@
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.horseman.network.syncthing;
username = config.horseman.username;
in {
options = {
horseman.network.syncthing = {
@ -15,10 +16,10 @@ in {
config = mkIf cfg.enable {
services.syncthing = {
enable = true;
user = "horseman";
user = username;
group = "users";
dataDir = "/home/horseman";
configDir = "/home/horseman/.config/syncthing";
dataDir = "/home/${username}";
configDir = "/home/${username}/.config/syncthing";
overrideDevices = true;
# overrideFolders = true;
settings = {
@ -45,7 +46,12 @@ in {
folders = {
"Documents" = {
id = "documentFolder";
path = "/home/horseman/Documents";
path = "/home/${username}/Documents";
devices = ["luna" "terra" "solis"];
};
"Programming" = {
id = "programmingFolder";
path = "/home/${username}/Programming";
devices = ["luna" "terra" "solis"];
};
};