host/home: add synergy configs
This commit is contained in:
parent
ce50046970
commit
dc68f1b678
5 changed files with 34 additions and 1 deletions
hosts/home
configuration.nix
services
|
@ -5,7 +5,7 @@
|
|||
./hardware-configuration
|
||||
./configs
|
||||
./users
|
||||
./forgejo-runners
|
||||
./services
|
||||
];
|
||||
|
||||
################################################################################
|
||||
|
|
6
hosts/home/services/default.nix
Normal file
6
hosts/home/services/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./forgejo-runners
|
||||
./synergy.nix
|
||||
];
|
||||
}
|
27
hosts/home/services/synergy.nix
Normal file
27
hosts/home/services/synergy.nix
Normal 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 ];
|
||||
}
|
Loading…
Add table
Reference in a new issue