forked from pub-solar/os
Benjamin Bädorf
ad313173ad
This change allows you to start wayvnc anytime your sway session starts. For hosts where you want to enable this, you'll need to generate the certificate and keys, see: https://github.com/any1/wayvnc#encryption--authentication You can then add these to your secrets via agenix, and load them as `vnc-key.pem` and `vnc-cert.pem` into `/run/secrets`. Enable the wayvnc server via the option `pub-solar.sway.vnc.enable`. At the time of writing, `tigervnc` appears to be a good vnc client to use. ```
20 lines
486 B
Nix
20 lines
486 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";
|
|
ExecStart = "${pkgs.wayvnc}/bin/wayvnc";
|
|
};
|
|
|
|
Install = {
|
|
WantedBy = [ "sway-session.target" ];
|
|
};
|
|
}
|