29 lines
718 B
Nix
29 lines
718 B
Nix
{ pkgs, ... }:
|
||
|
||
{
|
||
services.synergy.server = {
|
||
enable = true;
|
||
screenName = "home";
|
||
configFile = pkgs.writeText "synergy-server.conf" ''
|
||
section: screens
|
||
home:
|
||
macbook-pro:
|
||
end
|
||
section: links
|
||
home:
|
||
left = macbook-pro
|
||
down = macbook-pro
|
||
macbook-pro:
|
||
right = home
|
||
up = home
|
||
end
|
||
section: options
|
||
# Включение синхронизации буфера обмена
|
||
clipboardSharing = true
|
||
# Максимальный размер данных в килобайтах
|
||
clipboardSharingSize = 2048
|
||
end
|
||
'';
|
||
};
|
||
networking.firewall.allowedTCPPorts = [ 24800 ];
|
||
}
|