wbob: add synergy
This commit is contained in:
parent
36cfa05172
commit
edcd69d82a
|
@ -1,5 +1,9 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
makefu.awesome = {
|
||||||
|
modkey = "Mod1";
|
||||||
|
baseConfig = pkgs.awesomecfg.kiosk;
|
||||||
|
};
|
||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
../.
|
../.
|
||||||
|
@ -10,6 +14,15 @@
|
||||||
retiolum.enable = true;
|
retiolum.enable = true;
|
||||||
build.host = config.krebs.hosts.wbob;
|
build.host = config.krebs.hosts.wbob;
|
||||||
};
|
};
|
||||||
|
networking.firewall.allowedUDPPorts = [ 1655 ];
|
||||||
|
networking.firewall.allowedTCPPorts = [ 1655 ];
|
||||||
|
services.tinc.networks.siem = {
|
||||||
|
name = "display";
|
||||||
|
extraConfig = ''
|
||||||
|
ConnectTo = sjump
|
||||||
|
Port = 1655
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
# rt2870.bin wifi card, part of linux-unfree
|
# rt2870.bin wifi card, part of linux-unfree
|
||||||
hardware.enableAllFirmware = true;
|
hardware.enableAllFirmware = true;
|
||||||
|
@ -39,23 +52,18 @@
|
||||||
xrandr --output HDMI2 --right-of HDMI1
|
xrandr --output HDMI2 --right-of HDMI1
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
## TODO Awesomecfg + autostart chrome
|
# TODO: update synergy package with these extras (username)
|
||||||
#
|
# TODO: add crypto layer
|
||||||
#local current_screen = 1
|
systemd.services."synergy-client" = {
|
||||||
#awful.rules.rules = {
|
environment.DISPLAY = ":0";
|
||||||
# { rule = { class = "chromium-browser" },
|
serviceConfig.User = "makefu";
|
||||||
# callback = function()
|
};
|
||||||
# awful.client.movetotag(tags[current_screen][1],c)
|
|
||||||
# if (current_screen == 1) then
|
|
||||||
# current_screen = current_screen+1
|
|
||||||
# else
|
|
||||||
# current_screen = current_screen-1
|
|
||||||
# end
|
|
||||||
# end
|
|
||||||
# },
|
|
||||||
#}
|
|
||||||
#awful.util.spawn_with_shell("chromium --new-window --kiosk http://wolf:3000/dashboard/db/soc-critical-values")
|
|
||||||
# prevent Race Condition
|
|
||||||
#awful.util.spawn_with_shell("sleep 0.5;chromium --new-window --kiosk http://wolf:3000/dashboard/db/aralast")
|
|
||||||
|
|
||||||
|
services.synergy = {
|
||||||
|
client = {
|
||||||
|
enable = true;
|
||||||
|
screenName = "wbob";
|
||||||
|
serverAddress = "pornocauster.r";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user