Skip to content

Commit

Permalink
fix(fuji): desperate attempt at making firefox work
Browse files Browse the repository at this point in the history
  • Loading branch information
uku3lig committed Jun 9, 2024
1 parent 86c7ae8 commit e9fff62
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 27 deletions.
1 change: 1 addition & 0 deletions configs/desktop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
home = {
packages = with pkgs; [
# font-manager
chromium
gimp
gnome.gnome-calculator
gparted
Expand Down
36 changes: 15 additions & 21 deletions programs/gnome.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,19 @@
displayManager.defaultSession = "gnome";
};

environment = {
gnome.excludePackages =
(with pkgs; [
gnome-tour
])
++ (with pkgs.gnome; [
cheese # webcam tool
gnome-terminal
epiphany # web browser
geary # email reader
totem # video player
tali # poker game
iagno # go game
hitori # sudoku game
atomix # puzzle game
]);

sessionVariables = {
NIXOS_OZONE_WL = "1";
};
};
environment.gnome.excludePackages =
(with pkgs; [
gnome-tour
])
++ (with pkgs.gnome; [
cheese # webcam tool
gnome-terminal
epiphany # web browser
geary # email reader
totem # video player
tali # poker game
iagno # go game
hitori # sudoku game
atomix # puzzle game
]);
}
16 changes: 10 additions & 6 deletions systems/fuji/nvidia.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@
}: {
services.xserver.videoDrivers = lib.mkForce ["nvidia"];

boot.kernelParams = [
"nvidia.NVreg_EnableGpuFirmware=0"
];

environment.sessionVariables = {
NIXOS_OZONE_WL = "1";
LIBVA_DRIVER_NAME = "nvidia";
__EGL_VENDOR_LIBRARY_FILENAMES = "/run/opengl-driver/share/glvnd/egl_vendor.d/10_nvidia.json";
};

hardware.opengl = {
driSupport = true;
driSupport32Bit = true;
Expand All @@ -21,16 +31,10 @@
};
};

# boot.extraModprobeConfig = ''
# options nvidia NVreg_RegistryDwords="PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerLevel=0x3; PowerMizerDefault=0x3; PowerMizerDefaultAC=0x3"
# '';

hm.wayland.windowManager.hyprland.settings.env = [
"LIBVA_DRIVER_NAME,nvidia"
"XDG_SESSION_TYPE,wayland"
"GBM_BACKEND,nvidia-drm"
"__GLX_VENDOR_LIBRARY_NAME,nvidia"
"__EGL_VENDOR_LIBRARY_FILENAMES,/run/opengl-driver/share/glvnd/egl_vendor.d/10_nvidia.json"
"NVD_BACKEND,direct"
];
}

0 comments on commit e9fff62

Please sign in to comment.