Compare commits

..

4 Commits

Author SHA1 Message Date
Andreas Schaafsma
9ca20b8e24 bla 2024-12-07 18:03:00 +01:00
Andreas Schaafsma
2f5a44b112 fix error 2024-12-07 18:02:49 +01:00
Andreas Schaafsma
c29cae486e fix warning 2024-12-07 18:02:43 +01:00
Andreas Schaafsma
769e1c166a try to fix modesetting 2024-12-07 18:02:36 +01:00
4 changed files with 10 additions and 5 deletions

View File

@ -15,7 +15,7 @@ in {
inetutils
neofetch
tmux
nerdfonts
# nerdfonts
p7zip
rclone
ripgrep

View File

@ -16,7 +16,12 @@ in
config = mkIf cfg.enable {
# Enable NVIDIA driver for X11 and Wayland
services.xserver.videoDrivers = [ "amdgpu" "nvidia" ];
# without modesetting, x server will be run by nvidia
services.xserver.videoDrivers = [
"amdgpu"
"modesetting"
"nvidia"
];
# Enable OpenGL
hardware.graphics = {
@ -77,7 +82,7 @@ in
hardware.nvidia = {
# Modesetting is required.
modesetting.enable = true;
# Nvidia power management. Experimental, and can cause sleep/suspend to fail.
# Enable this if you have graphical corruption issues or application crashes after waking
# up from sleep. This fixes it by saving the entire VRAM memory to /tmp/ instead

View File

@ -101,7 +101,7 @@
environment.systemPackages = with pkgs; [
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
# wget
pkgs.gnome3.gnome-tweaks
pkgs.gnome-tweaks
];
# Some programs need SUID wrappers, can be configured further or are

View File

@ -4,7 +4,7 @@ let
in
{
my-namespace.hardware = {
graphics-nvidia-prime-amd.enable = false;
# graphics-nvidia-prime-amd = enabled;
graphics-nvidia-prime-amd-testing = enabled;
};
}