fix nvidia and ozone env var

This commit is contained in:
Joseph Hanson 2025-03-05 10:57:06 -06:00
parent a21deba5f2
commit efbf50f860
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
4 changed files with 57 additions and 26 deletions

View file

@ -28,8 +28,10 @@
packages = with pkgs; [
# apps
solaar # open source manager for logitech unifying receivers
unstable.seabird
# unstable.vesktop # gpu issues. Using the flatpak version solves this issue.
vlc
yt-dlp
];
};
};

View file

@ -12,10 +12,6 @@ in {
imports = [inputs.ags.homeManagerModules.default];
config = mkIf cfg.enable {
environment.sessionVariables = {
# Wayland and Chromium/Electron apps.
NIXOS_OZONE_WL = "1";
};
# Downloads the Theme Resources
home.packages = with pkgs; [
andromeda-gtk-theme

View file

@ -69,8 +69,29 @@ in {
hardware = {
cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
nvidia.open = true;
graphics.enable = true;
nvidia = {
modesetting.enable = true;
nvidiaSettings = true;
open = false;
package = config.boot.kernelPackages.nvidiaPackages.latest;
powerManagement = {
enable = false;
finegrained = false;
};
};
graphics = {
enable = true;
enable32Bit = true;
extraPackages = with pkgs; [
vaapiVdpau
libvdpau
libvdpau-va-gl
nvidia-vaapi-driver
vdpauinfo
libva
libva-utils
];
};
# opengl.enable = true;
nvidia-container-toolkit.enable = true;
};
@ -100,16 +121,22 @@ in {
};
};
# System packages
environment.systemPackages = with pkgs; [
# dev
uv
# fun
fastfetch
# Scripts
pushoverNotify
refreshSeries
];
environment = {
sessionVariables = {
# Wayland and Chromium/Electron apps.
NIXOS_OZONE_WL = "1";
};
# System packages
systemPackages = with pkgs; [
# dev
uv
# fun
fastfetch
# Scripts
pushoverNotify
refreshSeries
];
};
# enable docker socket at /run/docker.sock
virtualisation.podman.dockerSocket.enable = true;

View file

@ -4,16 +4,22 @@
virtualisation.docker.enable = true;
# System packages
environment.systemPackages = with pkgs; [
# myPkgs.modrinth-app-unwrapped
dconf-editor
fastfetch
gtk3
nodejs_22
pavucontrol # Pulseaudio volume control
vesktop # Discord custom client
zulu # Java OpenJDK
];
environment = {
sessionVariables = {
# Wayland and Chromium/Electron apps.
NIXOS_OZONE_WL = "1";
};
systemPackages = with pkgs; [
# myPkgs.modrinth-app-unwrapped
dconf-editor
fastfetch
gtk3
nodejs_22
pavucontrol # Pulseaudio volume control
vesktop # Discord custom client
zulu # Java OpenJDK
];
};
services = {
# Tailscale