mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 05:27:13 -06:00
37 lines
857 B
Nix
Executable file
37 lines
857 B
Nix
Executable file
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
let
|
|
# TODO: did not get sommelier to work
|
|
# run-sommelier = with pkgs; writeShellScriptBin "run-sommelier" ''
|
|
# exec ${lib.getExe sommelier} --virtgpu-channel -- $@
|
|
# '';
|
|
# Working: run Wayland applications prefixed with `run-wayland-proxy`
|
|
run-wayland-proxy =
|
|
with pkgs;
|
|
writeShellScriptBin "run-wayland-proxy" ''
|
|
exec ${lib.getExe wayland-proxy-virtwl} --virtio-gpu -- $@
|
|
'';
|
|
# Waypipe. Needs `microvm#waypipe-client` on the host.
|
|
run-waypipe =
|
|
with pkgs;
|
|
writeShellScriptBin "run-waypipe" ''
|
|
exec ${lib.getExe waypipe}/bin/waypipe --vsock -s 2:6000 server $@
|
|
'';
|
|
in
|
|
lib.mkIf config.microvm.graphics.enable {
|
|
boot.kernelModules = [
|
|
"drm"
|
|
"virtio_gpu"
|
|
];
|
|
|
|
environment.systemPackages = [
|
|
#run-sommelier
|
|
run-wayland-proxy
|
|
run-waypipe
|
|
];
|
|
}
|