pub-solar-os/modules/headless-graphical/wayvnc.service.nix

21 lines
549 B
Nix
Raw Normal View History

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";
ExecStart = "${pkgs.wayvnc}/bin/wayvnc --render-cursor";
2022-04-30 15:41:08 +00:00
Environment = "WAYLAND_DISPLAY=wayland-1";
};
Install = {
WantedBy = [ "sway-session.target" ];
};
}