Compare commits
2 commits
ce50046970
...
11499b5109
Author | SHA1 | Date | |
---|---|---|---|
11499b5109 | |||
dc68f1b678 |
6 changed files with 35 additions and 2 deletions
hosts/home
|
@ -5,7 +5,7 @@
|
|||
./hardware-configuration
|
||||
./configs
|
||||
./users
|
||||
./forgejo-runners
|
||||
./services
|
||||
];
|
||||
|
||||
################################################################################
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
output = "DP-3";
|
||||
monitorConfig = ''
|
||||
Option "PreferredMode" "1920x1080"
|
||||
Option "Rotate" "right"
|
||||
# Option "Rotate" "right"
|
||||
'';
|
||||
}
|
||||
{
|
||||
|
|
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