Split generic parts out of machine-confs/helium.nix
This commit is contained in:
parent
d354c5d205
commit
39d8043ed0
7 changed files with 172 additions and 136 deletions
24
hardware-specific/amd-laptop.nix
Normal file
24
hardware-specific/amd-laptop.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
# Config for laptop with AMD CPU and integrated graphics
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [ zenmonitor ];
|
||||
|
||||
hardware.opengl.extraPackages = with pkgs; [ rocmPackages.clr.icd ];
|
||||
|
||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||
|
||||
services = {
|
||||
xserver = {
|
||||
videoDrivers = [
|
||||
"amdgpu"
|
||||
"modesetting"
|
||||
];
|
||||
deviceSection = ''
|
||||
Option "DRI" "2"
|
||||
Option "TearFree" "true"
|
||||
'';
|
||||
};
|
||||
|
||||
logind.lidSwitch = "hibernate";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue