mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-23 16:29:42 -04:00
hwacc
This commit is contained in:
parent
071f0fdca0
commit
ceed49531b
2 changed files with 5 additions and 0 deletions
|
|
@ -17,6 +17,9 @@
|
||||||
|
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
|
||||||
|
# Enable VAAPI for hardware video acceleration
|
||||||
|
hardware.graphics.enable = true;
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,10 @@ in
|
||||||
services.frigate = {
|
services.frigate = {
|
||||||
enable = true;
|
enable = true;
|
||||||
hostname = "frigate.${domain}";
|
hostname = "frigate.${domain}";
|
||||||
|
vaapiDriver = "i965"; # Haswell (4th gen Intel)
|
||||||
settings = {
|
settings = {
|
||||||
mqtt.enabled = false;
|
mqtt.enabled = false;
|
||||||
|
ffmpeg.hwaccel_args = "preset-vaapi";
|
||||||
cameras = {
|
cameras = {
|
||||||
doorbell = {
|
doorbell = {
|
||||||
enabled = false;
|
enabled = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue