Desktop : Better GPU support.

This commit is contained in:
Dmitry Voronin 2024-01-24 19:36:59 +03:00
parent 29e01ae75b
commit 02c36335bd

View file

@ -9,6 +9,7 @@
# Bootloader. # Bootloader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.initrd.kernelModules = [ "amdgpu" ];
# Network. # Network.
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
@ -31,12 +32,16 @@
# GUI. # GUI.
services.xserver.enable = true; services.xserver.enable = true;
services.xserver.videoDrivers = [ "amdgpu" ];
services.xserver.displayManager.gdm.enable = true; services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true; services.xserver.desktopManager.gnome.enable = true;
services.xserver = { services.xserver = {
layout = "us"; layout = "us";
xkbVariant = ""; xkbVariant = "";
}; };
hardware.opengl.extraPackages = with pkgs; [
amdvlk
];
# Printing. # Printing.
services.printing = { services.printing = {
@ -126,20 +131,20 @@
# Filesystems. # Filesystems.
fileSystems."/storage/hot" = { fileSystems."/storage/hot" = {
device = "/dev/storage/hot"; device = "/dev/storage/hot";
fsType = "ext4"; fsType = "ext4";
options = [ "nofail" ]; options = [ "nofail" ];
}; };
fileSystems."/storage/cold_1" = { fileSystems."/storage/cold_1" = {
device = "/dev/storage/cold_1"; device = "/dev/storage/cold_1";
fsType = "ext4"; fsType = "ext4";
options = [ "noauto" "nofail" ]; options = [ "noauto" "nofail" ];
}; };
fileSystems."/storage/cold_2" = { fileSystems."/storage/cold_2" = {
device = "/dev/storage/cold_2"; device = "/dev/storage/cold_2";
fsType = "ext4"; fsType = "ext4";
options = [ "noauto" "nofail" ]; options = [ "noauto" "nofail" ];
}; };