change directory structure

This commit is contained in:
2025-10-29 01:28:17 +09:00
parent 18f1ef1e20
commit 3dc7ef3d9d
35 changed files with 390 additions and 266 deletions
+6
View File
@@ -0,0 +1,6 @@
{ ... }:
{
imports = [
./intel-drivers.nix
];
}
+21
View File
@@ -0,0 +1,21 @@
{ lib, pkgs, config, ... }:
with lib; let
cfg = config.drivers.intel;
in
{
options.drivers.intel = {
enable = mkEnableOption "Enable Intel Graphics Drivers";
};
config = mkIf cfg.enable {
# OpenGL
hardware.graphics = {
extraPackages = with pkgs; [
intel-media-driver
vaapiIntel
vaapiVdpau
libvdpau-va-gl
];
};
};
}