configurations of hq services
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

x11vnc-service.nix 431B

123456789101112131415161718192021222324
  1. { stdenv, pkgs, ... }:
  2. with pkgs;
  3. stdenv.mkDerivation rec {
  4. name = "x11vnc-service";
  5. version = "0.0.0";
  6. src = ./.;
  7. buildInputs = [ x11vnc ];
  8. dontBuild = true;
  9. installPhase = ''
  10. cat > $out/lib/systemd/user/x11vnc.service <<_EOF_
  11. [Unit]
  12. Description=VNC server
  13. [Service]
  14. Type=simple
  15. ExecStart=${x11vnc}/bin/x11vnc -shared -forever -passwd k-ot
  16. Restart=on-failure
  17. _EOF_
  18. '';
  19. }