nixfleet/hmModules/wayvnc/default.nix
Andrea Ciceri a394b9cefd
All checks were successful
/ test (push) Successful in 32s
Reformat everything
2024-09-20 11:37:17 +02:00

23 lines
402 B
Nix

{
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;
};
};
}