wayvnc
module
This commit is contained in:
parent
98d64349ab
commit
409e64b82d
2 changed files with 23 additions and 0 deletions
|
@ -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];
|
||||||
|
|
22
hmModules/wayvnc/default.nix
Normal file
22
hmModules/wayvnc/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue