From 16d944c8faaf13455d70c411325fa1337611636f Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 10 Jun 2024 14:40:04 +0200 Subject: [PATCH] feat: enable embedded setup for laptop --- config/hardware/nvidia.nix | 1 + hosts/patricknix/default.nix | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/config/hardware/nvidia.nix b/config/hardware/nvidia.nix index aff1b4f..8cb9dc1 100644 --- a/config/hardware/nvidia.nix +++ b/config/hardware/nvidia.nix @@ -13,6 +13,7 @@ lib.optionalAttrs (!minimal) { driSupport = true; driSupport32Bit = true; extraPackages = with pkgs; [ + vaapiVdpau nvidia-vaapi-driver ]; }; diff --git a/hosts/patricknix/default.nix b/hosts/patricknix/default.nix index 0f143ff..6d8c7fd 100644 --- a/hosts/patricknix/default.nix +++ b/hosts/patricknix/default.nix @@ -1,6 +1,7 @@ { inputs, lib, + pkgs, ... }: { imports = [ @@ -52,4 +53,7 @@ }; }; nixpkgs.hostPlatform = "x86_64-linux"; + # for embedded + services.udev.packages = [pkgs.j-link]; + environment.systemPackages = [pkgs.j-link]; }