wayvnc module

This commit is contained in:
Andrea Ciceri 2024-05-15 16:54:40 +02:00
parent 98d64349ab
commit 409e64b82d
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg
2 changed files with 23 additions and 0 deletions

View file

@ -30,6 +30,7 @@ in {
../gammastep ../gammastep
# ../kitty # ../kitty
../wezterm ../wezterm
../wayvnc
]; ];
home.packages = with pkgs; [wl-clipboard waypipe]; home.packages = with pkgs; [wl-clipboard waypipe];

View file

@ -0,0 +1,22 @@
{
pkgs,
lib,
vpn,
hostname,
...
}: {
systemd.user.services.wayvnc = {
Install.WantedBy = ["graphical-session.target"];
Unit = {
Description = "WayVNC";
PartOf = ["graphical-session.target"];
};
Service = {
ExecStart = "${lib.getExe pkgs.wayvnc "wayvnc"} ${vpn.${hostname}.ip} 5900";
Restart = "on-failure";
RestartSec = 3;
};
};
}