removed unused syncthing config options

This commit is contained in:
Leyla Becker 2025-03-22 14:35:54 -05:00
parent 597c25b49d
commit 759390af8d
4 changed files with 7 additions and 66 deletions

View file

@ -98,19 +98,6 @@
adguardhome = { adguardhome = {
enable = false; enable = false;
}; };
sync = {
enable = true;
folders = {
share = {
enable = true;
calendar.enable = true;
};
leyla = {
documents.enable = true;
notes.enable = true;
};
};
};
}; };
networking = { networking = {
hostId = "c51763d6"; hostId = "c51763d6";
@ -168,6 +155,8 @@
]; ];
}; };
syncthing.enable = true;
fail2ban.enable = true; fail2ban.enable = true;
jellyfin = { jellyfin = {

View file

@ -17,15 +17,6 @@
}; };
eve.isDesktopUser = true; eve.isDesktopUser = true;
}; };
sync = {
enable = true;
folders = {
share.enable = true;
leyla = {
documents.enable = true;
};
};
};
}; };
environment.systemPackages = [ environment.systemPackages = [
@ -66,6 +57,8 @@
# "--advertise-tags=tag:client,tag:mobile" # "--advertise-tags=tag:client,tag:mobile"
]; ];
}; };
syncthing.enable = true;
}; };
networking = { networking = {

View file

@ -29,15 +29,6 @@
openRGB.enable = true; openRGB.enable = true;
graphicsAcceleration.enable = true; graphicsAcceleration.enable = true;
}; };
sync = {
enable = true;
folders = {
share.enable = true;
leyla = {
documents.enable = true;
};
};
};
}; };
services = { services = {
@ -65,6 +56,8 @@
"--advertise-routes=192.168.0.0/24" "--advertise-routes=192.168.0.0/24"
]; ];
}; };
syncthing.enable = true;
}; };
programs.steam = { programs.steam = {
enable = true; enable = true;

View file

@ -7,39 +7,6 @@
mountDir = "/mnt/sync"; mountDir = "/mnt/sync";
configDir = "/etc/syncthing"; configDir = "/etc/syncthing";
in { in {
options.host.sync = {
enable = lib.mkEnableOption "should sync thing be enabled on this device";
folders = {
share = {
enable = lib.mkEnableOption "should the share folder by synced";
calendar = {
enable = lib.mkEnableOption "should the calendar folder be synced";
};
};
leyla = {
documents = {
enable = lib.mkEnableOption "should the documents folder be synced";
};
notes = {
enable = lib.mkEnableOption "should the notes folder by synced";
};
};
extraFolders = lib.mkOption {
type = lib.types.attrsOf (lib.types.submodule ({...}: {
options = {
path = lib.mkOption {
type = lib.types.str;
};
devices = lib.mkOption {
type = lib.types.listof lib.types.str;
};
};
}));
default = {};
};
};
};
config = lib.mkMerge [ config = lib.mkMerge [
{ {
systemd = lib.mkIf config.services.syncthing.enable { systemd = lib.mkIf config.services.syncthing.enable {
@ -50,10 +17,9 @@ in {
]; ];
}; };
} }
(lib.mkIf config.host.sync.enable (lib.mkMerge [ (lib.mkIf config.services.syncthing.enable (lib.mkMerge [
{ {
services.syncthing = { services.syncthing = {
enable = true;
user = "syncthing"; user = "syncthing";
group = "syncthing"; group = "syncthing";
dataDir = "${mountDir}/default"; dataDir = "${mountDir}/default";