mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2024-11-21 19:52:52 +00:00
add hardware option
This commit is contained in:
parent
463b9dff23
commit
ea040a6d5e
1 changed files with 19 additions and 9 deletions
|
@ -1,4 +1,13 @@
|
|||
{pkgs, ...}: {
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
hardware.enable = lib.mkEnableOption "enable hardware options";
|
||||
};
|
||||
config = lib.mkIf config.hardware.enable {
|
||||
hardware = {
|
||||
#firmware = with pkgs; [firmwareLinuxNonfree];
|
||||
opengl = {
|
||||
|
@ -9,4 +18,5 @@
|
|||
nixpkgs.config.packageOverrides = pkgs: {
|
||||
vaapiIntel = pkgs.vaapiIntel.override {enableHybridCodec = true;};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue