the great update

This commit is contained in:
2025-03-07 17:04:41 +09:00
parent 442f46f622
commit 6216fcd751
77 changed files with 732 additions and 305 deletions

11
system/vnc/default.nix Normal file
View File

@@ -0,0 +1,11 @@
{ pkgs, lib, ... }:
let
use-vnc = pkgs.callPackage ./use-vnc-script.nix { };
in
{
environment.systemPackages = with pkgs; [
x11vnc
wayvnc
use-vnc
];
}

View File

@@ -0,0 +1,10 @@
{ pkgs, lib, ... }:
pkgs.writeShellScriptBin "use-vnc" ''
if [[ $XDG_SESSION_TYPE == "x11" ]]; then
x11vnc -display :0 &
else
wayvnc 0.0.0.0 &
fi
sudo echo $! > /var/run/use-vnc.pid
''