Added gdm and amd driver configuration complete

This commit is contained in:
Nathan Anderson 2024-01-22 14:25:27 -07:00
parent 4195ef4e3a
commit a9d67fd51f
2 changed files with 24 additions and 3 deletions

View File

@ -60,6 +60,7 @@
# #
# Gaming # Gaming
# #
amdgpu_top
wine-wayland wine-wayland
webcord webcord
@ -84,6 +85,7 @@
imv imv
mpv mpv
gimp gimp
ffmpeg
# #
# Communication # Communication

View File

@ -113,26 +113,45 @@
services.gvfs.enable = true; # thunar functionalities services.gvfs.enable = true; # thunar functionalities
services.openssh.enable = true; services.openssh.enable = true;
services.dbus.enable = true; services.dbus.enable = true;
# Audio
security.rtkit.enable = true;
services.pipewire = { services.pipewire = {
enable = true; enable = true;
alsa.enable = true; alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true; pulse.enable = true;
wireplumber.enable = true;
}; };
sound.enable = false;
### ###
## Misc ## Misc
### ###
sound.enable = true;
# Necessary for home-manager sway setup # Necessary for home-manager sway setup
security.polkit.enable = true; security.polkit.enable = true;
# Use amdgpu-pro drivers for davinci services.xserver.enable = true;
services.xserver.displayManager.defaultSession = "sway";
services.xserver.displayManager.gdm.enable = true;
services.xserver.displayManager.gdm.wayland = true;
services.xserver.videoDrivers = [ "amdgpu" ];
# Enable HIP
systemd.tmpfiles.rules = [
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
];
# services.xserver.videoDrivers = [ "amdgpu-pro" ]; # services.xserver.videoDrivers = [ "amdgpu-pro" ];
hardware.opengl = { hardware.opengl = {
# Mesa # Mesa
enable = true; enable = true;
# Vulkan # Vulkan
driSupport = true; driSupport = true;
# Rocm support and vulkan drivers
extraPackages = with pkgs; [
rocmPackages.clr.icd
amdvlk
];
}; };
}; };
} }