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 = {
enable = false;
};
sync = {
enable = true;
folders = {
share = {
enable = true;
calendar.enable = true;
};
leyla = {
documents.enable = true;
notes.enable = true;
};
};
};
};
networking = {
hostId = "c51763d6";
@ -168,6 +155,8 @@
];
};
syncthing.enable = true;
fail2ban.enable = true;
jellyfin = {

View file

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

View file

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

View file

@ -7,39 +7,6 @@
mountDir = "/mnt/sync";
configDir = "/etc/syncthing";
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 [
{
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 = {
enable = true;
user = "syncthing";
group = "syncthing";
dataDir = "${mountDir}/default";