Add intel driver module and syncthing service

This commit is contained in:
Tyler Kelley 2024-05-14 15:38:14 -05:00
parent c3280afa7a
commit 97c350b080
2 changed files with 42 additions and 0 deletions

View File

@ -16,6 +16,7 @@ in
./users.nix
../../modules/amd-drivers.nix
../../modules/nvidia-drivers.nix
../../modules/intel-drivers.nix
../../modules/vm-guest-services.nix
];
@ -186,6 +187,12 @@ in
openFirewall = true;
};
services.ipp-usb.enable = true;
services.syncthing = {
enable = false;
user = "${username}";
dataDir = "/home/${username}";
configDir = "/home/${username}/.config/syncthing";
};
hardware.sane = {
enable = true;
extraBackends = [ pkgs.sane-airscan ];
@ -251,6 +258,7 @@ in
# Extra Module Options
drivers.amdgpu.enable = true;
drivers.nvidia.enable = false;
drivers.intel.enable = false;
vm.guest-services.enable = false;
# Open ports in the firewall.

34
modules/intel-drivers.nix Normal file
View File

@ -0,0 +1,34 @@
{
lib,
pkgs,
config,
...
}:
with lib;
let
cfg = config.drivers.intel;
in
{
options.drivers.intel = {
enable = mkEnableOption "Enable Intel Graphics Drivers";
};
config = mkIf cfg.enable {
nixpkgs.config.packageOverrides =
pkgs: {
vaapiIntel = pkgs.vaapiIntel.override {
enableHybridCodec = true;
};
};
# OpenGL
hardware.opengl = {
extraPackages = with pkgs; [
intel-media-driver
vaapiIntel
vaapiVdpau
libvdpau-va-gl
];
};
};
}