Split generic parts out of machine-confs/helium.nix

This commit is contained in:
Vili Sinervä 2024-06-06 21:12:13 +03:00
parent d354c5d205
commit 39d8043ed0
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996
7 changed files with 172 additions and 136 deletions

View 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";
};
}