24 lines
349 B
Nix
24 lines
349 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
inputs,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib;
|
|
let
|
|
cfg = config.custom.graphical.wayvnc;
|
|
in
|
|
{
|
|
options.custom.graphical.wayvnc = {
|
|
enable = mkEnableOption "Enables wayvnc";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
environment.systemPackages = with pkgs; [
|
|
wayvnc
|
|
];
|
|
networking.firewall.allowedTCPPorts = [ 5900 ];
|
|
};
|
|
}
|