lp2 config
This commit is contained in:
parent
0ce50fb0de
commit
b3f1de1a7d
5 changed files with 45 additions and 43 deletions
|
|
@ -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
|
||||
];
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue