Commit d323f292 authored by Bang Lee's avatar Bang Lee
Browse files

nixos/wayvnc: init

parent 9b409248
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -25,6 +25,8 @@
- [gtklock](https://github.com/jovanlanik/gtklock), a GTK-based lockscreen for Wayland. Available as [programs.gtklock](#opt-programs.gtklock.enable).
- [Chrysalis](https://github.com/keyboardio/Chrysalis), a graphical configurator for Kaleidoscope-powered keyboards. Available as [programs.chrysalis](#opt-programs.chrysalis.enable).

- [wayvnc](https://github.com/any1/wayvnc), VNC server for wlroots based Wayland compositors. Available as [programs.wayvnc](#opt-programs.wayvnc.enable).

- [Pi-hole](https://pi-hole.net/), a DNS sinkhole for advertisements based on Dnsmasq. Available as [services.pihole-ftl](#opt-services.pihole-ftl.enable), and [services.pihole-web](#opt-services.pihole-web.enable) for the web GUI and API.

- [Fediwall](https://fediwall.social), a web application for live displaying toots from mastodon, inspired by mastowall. Available as [services.fediwall](#opt-services.fediwall.enable).
+1 −0
Original line number Diff line number Diff line
@@ -350,6 +350,7 @@
  ./programs/wayland/uwsm.nix
  ./programs/wayland/waybar.nix
  ./programs/wayland/wayfire.nix
  ./programs/wayland/wayvnc.nix
  ./programs/weylus.nix
  ./programs/winbox.nix
  ./programs/wireshark.nix
+25 −0
Original line number Diff line number Diff line
{
  lib,
  pkgs,
  config,
  ...
}:

let
  cfg = config.programs.wayvnc;
in
{
  options.programs.wayvnc = {
    enable = lib.mkEnableOption "wayvnc, VNC server for wlroots based Wayland compositors";
    package = lib.mkPackageOption pkgs "wayvnc" { };
  };

  config = lib.mkIf cfg.enable {
    environment.systemPackages = [ cfg.package ];

    # https://github.com/any1/wayvnc/blob/master/src/pam_auth.c
    security.pam.services.wayvnc = { };
  };

  meta.maintainers = with lib.maintainers; [ qusic ];
}