add vnc and add it to focalor

This commit is contained in:
waveringana 2025-06-11 02:59:19 -04:00
parent b3d97cdc5f
commit 7fcf7e9bfb
4 changed files with 78 additions and 18 deletions

17
common/vnc.nix Normal file
View file

@ -0,0 +1,17 @@
{ pkgs, config, ...}:
{
services.xserver.enable = true;
services.xserver.displayManager.autoLogin = {
enable = true;
user = "regent";
};
services.xserver.displayManager.sessionCommands = ''
${pkgs.x11vnc}/bin/x11vnc -rfbauth $HOME/.vnc/passwd &
'';
services.xserver.desktopManager.xfce = {
enable = true;
}
};