grimm-nixos-laptop/modules/system-packages.nix

25 lines
522 B
Nix

{pkgs, ...}: {
environment.systemPackages = with pkgs; [
spice-gtk
kate
oci-cli
xcb-util-cursor
krfb
kdePackages.audiocd-kio
(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
export DRI_PRIME=1
exec "$@"
'')
(writeShellScriptBin "rebuild" ''
pkexec nixos-rebuild switch --flake /home/grimmauld/grimm-nixos-laptop
'')
];
}