os/modules/sway/wayvnc.service.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
497 B
Nix
Raw Normal View History

2023-01-28 21:27:52 +00:00
pkgs: {
Unit = {
Description = "A VNC server for wlroots based Wayland compositors ";
Documentation = "https://github.com/any1/wayvnc";
2023-01-28 21:27:52 +00:00
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:08:48 +00:00
ExecStart = "${pkgs.wayvnc}/bin/wayvnc -r -p 0.0.0.0 5901";
};
Install = {
2023-01-28 21:27:52 +00:00
WantedBy = ["sway-session.target"];
};
}