mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
gerg-desktop: remove vfio pain
This commit is contained in:
parent
9908662e8a
commit
d54be846e5
2 changed files with 24 additions and 12 deletions
|
|
@ -26,6 +26,14 @@ let
|
|||
};
|
||||
in
|
||||
{
|
||||
#hardware.amdgpu = {
|
||||
# amdvlk = {
|
||||
# enable = true;
|
||||
# support32Bit.enable = true;
|
||||
# };
|
||||
# initrd.enable = true;
|
||||
# opencl.enable = true;
|
||||
#};
|
||||
environment.etc = {
|
||||
"Xorg/1_mon.conf".source = "${_dir}/1_mon.conf";
|
||||
"Xorg/2_mon.conf".source = "${_dir}/2_mon.conf";
|
||||
|
|
@ -33,6 +41,8 @@ in
|
|||
|
||||
services.xserver = {
|
||||
|
||||
videoDrivers = ["amdgpu"];
|
||||
|
||||
displayManager.setupCommands = lib.mkBefore ''
|
||||
if ! [ -e "/etc/Xorg/ONE_MONITOR" ] ; then
|
||||
${lib.getExe cfg_monitors}
|
||||
|
|
@ -75,18 +75,20 @@
|
|||
#sync.enable = true;
|
||||
};
|
||||
};
|
||||
services.xserver.videoDrivers = [
|
||||
services.xserver = {
|
||||
videoDrivers = [
|
||||
"nvidia"
|
||||
"amdgpu"
|
||||
];
|
||||
|
||||
hardware.amdgpu = {
|
||||
amdvlk = {
|
||||
enable = true;
|
||||
support32Bit.enable = true;
|
||||
};
|
||||
initrd.enable = true;
|
||||
opencl.enable = true;
|
||||
displayManager.setupCommands = lib.mkBefore ''
|
||||
${lib.getExe pkgs.xorg.xrandr} \
|
||||
--output DP-0 \
|
||||
--mode 3440x1440 \
|
||||
--rate 120 \
|
||||
--primary \
|
||||
--output HDMI-0 \
|
||||
--mode 1920x1080 \
|
||||
--rate 120
|
||||
'';
|
||||
};
|
||||
|
||||
programs = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue