26 lines
502 B
Nix
26 lines
502 B
Nix
{ config, lib, pkgs, ... }: {
|
|
|
|
options.sysconfig.opts.wayvnc.enable = lib.options.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
};
|
|
|
|
config = lib.mkIf config.sysconfig.opts.wayvnc.enable {
|
|
home.packages = with pkgs; [
|
|
novnc
|
|
];
|
|
|
|
services.wayvnc = {
|
|
enable = true;
|
|
|
|
autoStart = true;
|
|
|
|
settings = {
|
|
address = "0.0.0.0";
|
|
|
|
port = 5900;
|
|
};
|
|
};
|
|
};
|
|
}
|