2022-04-28 21:20:18 +00:00
|
|
|
pkgs:
|
|
|
|
{
|
|
|
|
Unit = {
|
|
|
|
Description = "A VNC server for wlroots based Wayland compositors ";
|
|
|
|
Documentation = "https://github.com/any1/wayvnc";
|
|
|
|
BindsTo = [ "sway-session.target" ];
|
|
|
|
After = [ "graphical-session-pre.target" "network-online.target" ];
|
|
|
|
Wants = [ "graphical-session-pre.target" "network-online.target" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
Service = {
|
|
|
|
Type = "simple";
|
2022-04-30 15:41:08 +00:00
|
|
|
Environment = "WAYLAND_DISPLAY=wayland-1";
|
2022-04-30 22:07:23 +00:00
|
|
|
ExecStart = "${pkgs.wayvnc}/bin/wayvnc --render-cursor --unix-socket /run/wayvnc.sock";
|
2022-04-28 21:20:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
Install = {
|
|
|
|
WantedBy = [ "sway-session.target" ];
|
|
|
|
};
|
|
|
|
}
|