37 lines
775 B
Nix
37 lines
775 B
Nix
{ config, lib, pkgs, inputs, ... }: {
|
|
|
|
options.homeconfig.wayvnc.enable = lib.options.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
};
|
|
|
|
disabledModules = [
|
|
];
|
|
|
|
imports = [
|
|
(import "${inputs.home-manager-us}/modules/services/wayvnc.nix" {
|
|
inherit config;
|
|
inherit lib;
|
|
pkgs = (import inputs.nixpkgs-us { system = "x86_64-linux"; });
|
|
})
|
|
];
|
|
|
|
config = lib.mkIf config.homeconfig.wayvnc.enable {
|
|
home.packages = with pkgs; [
|
|
novnc
|
|
];
|
|
|
|
services.wayvnc = {
|
|
enable = true;
|
|
|
|
autoStart = true;
|
|
|
|
settings = {
|
|
address = "0.0.0.0";
|
|
|
|
port = 5900;
|
|
};
|
|
};
|
|
};
|
|
}
|