works again, mostly done, now we can start with server
This commit is contained in:
parent
784f214fb7
commit
270e1a0be4
38 changed files with 623 additions and 381 deletions
|
|
@ -31,22 +31,30 @@
|
|||
};
|
||||
config = {
|
||||
programs = {
|
||||
kdeconnect = lib.mkIf config.apps.sync.kde-connect.enable {
|
||||
enable = true;
|
||||
};
|
||||
kdeconnect =
|
||||
if config.apps.sync.kde-connect.enable then
|
||||
{
|
||||
enable = true;
|
||||
}
|
||||
else
|
||||
{ };
|
||||
};
|
||||
services = {
|
||||
syncthing = lib.mkIf config.apps.sync.syncthing.enable {
|
||||
enable = true;
|
||||
tray.enable = true;
|
||||
guiAddress = "0.0.0.0:8384";
|
||||
settings = {
|
||||
devices = config.apps.sync.syncthing.devices;
|
||||
folders = config.apps.sync.syncthing.folders;
|
||||
};
|
||||
overrideDevices = lib.mkIf (config.apps.sync.syncthing.devices == { }) false;
|
||||
overrideFolders = lib.mkIf (config.apps.sync.syncthing.folders == { }) false;
|
||||
};
|
||||
syncthing =
|
||||
if config.apps.sync.syncthing.enable then
|
||||
{
|
||||
enable = true;
|
||||
tray.enable = true;
|
||||
guiAddress = "0.0.0.0:8384";
|
||||
settings = {
|
||||
devices = config.apps.sync.syncthing.devices;
|
||||
folders = config.apps.sync.syncthing.folders;
|
||||
};
|
||||
overrideDevices = if (config.apps.sync.syncthing.devices == { }) then false else true;
|
||||
overrideFolders = if (config.apps.sync.syncthing.folders == { }) then false else true;
|
||||
}
|
||||
else
|
||||
{ };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue