60 lines
1.3 KiB
Nix
60 lines
1.3 KiB
Nix
{pkgs, ...}: {
|
|
virtualisation.libvirtd.qemu.ovmf.packages = [
|
|
# pkgs.pkgsCross.aarch64-multiplatform.OVMF.fd # AAVMF
|
|
pkgs.OVMF.fd
|
|
];
|
|
virtualisation.spiceUSBRedirection.enable = true;
|
|
# security.wrappers.spice-client-glib-usb-acl-helper.source = "${pkgs.spice_gtk}/bin/spice-client-glib-usb-acl-helper";
|
|
programs.droidcam.enable = true;
|
|
environment.systemPackages = [
|
|
pkgs.pkgsCross.aarch64-multiplatform.ubootQemuAarch64
|
|
# pkgs.pkgsCross.aarch64-multiplatform.OVMF.fd # AAVMF
|
|
] ++ (with pkgs; [
|
|
spice-gtk
|
|
wget
|
|
tree
|
|
file
|
|
kate
|
|
util-linux
|
|
btop
|
|
kitty
|
|
polkit-kde-agent
|
|
skanpage
|
|
cached-nix-shell
|
|
gnupg
|
|
visualvm
|
|
ffmpeg-full
|
|
lm_sensors
|
|
oci-cli
|
|
xcb-util-cursor
|
|
krfb
|
|
|
|
imagemagick
|
|
pypy3
|
|
(python3.withPackages(ps: with ps; [
|
|
requests
|
|
matplotlib
|
|
numpy
|
|
scipy
|
|
]))
|
|
|
|
libsForQt5.audiocd-kio
|
|
# libsForQt5.libkcompactdisc
|
|
# libsForQt5.kio-extras
|
|
# libsForQt5.phonon
|
|
# libsForQt5.qt5.qtmultimedia
|
|
|
|
(writeShellScriptBin "primerun" ''
|
|
export __NV_PRIME_RENDER_OFFLOAD=1
|
|
export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0
|
|
export __GLX_VENDOR_LIBRARY_NAME=nvidia
|
|
export __VK_LAYER_NV_optimus=NVIDIA_only
|
|
exec "$@"
|
|
'')
|
|
|
|
(writeShellScriptBin "rebuild" ''
|
|
pkexec nixos-rebuild switch --flake /home/grimmauld/grimm-nixos-laptop
|
|
'')
|
|
]);
|
|
}
|