21 lines
552 B
Nix
21 lines
552 B
Nix
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";
|
|
Environment = "WAYLAND_DISPLAY=wayland-1";
|
|
ExecStart = "${pkgs.wayvnc}/bin/wayvnc -r -p 0.0.0.0 5901";
|
|
};
|
|
|
|
Install = {
|
|
WantedBy = [ "sway-session.target" ];
|
|
};
|
|
}
|