summaryrefslogtreecommitdiff
path: root/host/athena.nix
diff options
context:
space:
mode:
authorAdrian Kummerlaender2022-10-08 20:58:44 +0200
committerAdrian Kummerlaender2022-10-08 20:58:44 +0200
commitbe86f0083be17d3bb5560f332b6eb7e4a66d90b2 (patch)
tree037a2e983e726a3fc9a4ecb833adc04a9320ccd7 /host/athena.nix
parentffc5ec5b39eb925285199356a29c46aa80fe87c3 (diff)
downloadnixos_system-be86f0083be17d3bb5560f332b6eb7e4a66d90b2.tar
nixos_system-be86f0083be17d3bb5560f332b6eb7e4a66d90b2.tar.gz
nixos_system-be86f0083be17d3bb5560f332b6eb7e4a66d90b2.tar.bz2
nixos_system-be86f0083be17d3bb5560f332b6eb7e4a66d90b2.tar.lz
nixos_system-be86f0083be17d3bb5560f332b6eb7e4a66d90b2.tar.xz
nixos_system-be86f0083be17d3bb5560f332b6eb7e4a66d90b2.tar.zst
nixos_system-be86f0083be17d3bb5560f332b6eb7e4a66d90b2.zip
Provide zenith-nvidia for GPU systems
Diffstat (limited to 'host/athena.nix')
-rw-r--r--host/athena.nix17
1 files changed, 10 insertions, 7 deletions
diff --git a/host/athena.nix b/host/athena.nix
index 6ce2285..8f74c51 100644
--- a/host/athena.nix
+++ b/host/athena.nix
@@ -85,13 +85,16 @@
powerManagement.enable = true;
};
- environment.systemPackages = [ (pkgs.writeScriptBin "nvidia-offload" ''
- 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 -a "$0" "$@"
- '') ];
+ environment.systemPackages = [
+ pkgs.zenith-nvidia
+ (pkgs.writeScriptBin "nvidia-offload" ''
+ 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 -a "$0" "$@"
+ '')
+ ];
virtualisation.docker = {
enable = true;