lp2 config

This commit is contained in:
Vinzenz Schroeter 2024-02-05 22:44:35 +01:00
parent 0ce50fb0de
commit b3f1de1a7d
5 changed files with 45 additions and 43 deletions

View file

@ -9,6 +9,7 @@ in {
options.my.hardware.intel = {
cpu = lib.mkEnableOption "intel cpu";
iGpu = lib.mkEnableOption "intel integrated gpu";
xe = lib.mkEnableOption "intel xe gpu";
};
config = lib.mkMerge [
@ -35,5 +36,18 @@ in {
nvtop-intel
];
})
(lib.mkIf cfg.xe {
hardware.opengl = {
extraPackages = with pkgs; [
intel-media-driver
vaapiIntel
vaapiVdpau
libvdpau-va-gl
];
};
environment.systemPackages = with pkgs; [
nvtop-intel
];
})
];
}