host/home: add synergy configs

This commit is contained in:
Dmitriy Pleshevskiy 2025-03-05 19:33:44 +03:00
parent ce50046970
commit dc68f1b678
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2
5 changed files with 34 additions and 1 deletions

View file

@ -5,7 +5,7 @@
./hardware-configuration
./configs
./users
./forgejo-runners
./services
];
################################################################################

View file

@ -0,0 +1,6 @@
{
imports = [
./forgejo-runners
./synergy.nix
];
}

View file

@ -0,0 +1,27 @@
{ 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
macbook-pro:
right = home
end
section: options
# Включение синхронизации буфера обмена
clipboardSharing = true
# Максимальный размер данных в килобайтах
clipboardSharingSize = 2048
end
'';
};
networking.firewall.allowedTCPPorts = [ 24800 ];
}