summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2022-10-08 20:58:44 +0200
committerAdrian Kummerlaender2022-10-08 20:58:44 +0200
commitbe86f0083be17d3bb5560f332b6eb7e4a66d90b2 (patch)
tree037a2e983e726a3fc9a4ecb833adc04a9320ccd7
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
-rw-r--r--host/athena.nix17
-rw-r--r--host/hephaestus.nix2
-rw-r--r--host/majestix.nix5
3 files changed, 16 insertions, 8 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;
diff --git a/host/hephaestus.nix b/host/hephaestus.nix
index a2886b7..6aca093 100644
--- a/host/hephaestus.nix
+++ b/host/hephaestus.nix
@@ -37,6 +37,8 @@
hardware.nvidia.package = pkgs.linuxPackages.nvidia_x11;
+ environment.systemPackages = [ pkgs.zenith-nvidia ];
+
hardware.bluetooth.enable = true;
services.blueman.enable = true;
diff --git a/host/majestix.nix b/host/majestix.nix
index f67d1b6..ce839b1 100644
--- a/host/majestix.nix
+++ b/host/majestix.nix
@@ -30,7 +30,10 @@
virtualisation.libvirtd.enable = true;
programs.dconf.enable = true;
- environment.systemPackages = with pkgs; [ virt-manager ];
+ environment.systemPackages = with pkgs; [
+ zenith-nvidia
+ virt-manager
+ ];
users.extraUsers.common.extraGroups = [ "networkmanager" "libvirtd" ];