nvidia-patch for NixOS
Find a file
icewind1991 0fe336d3ee [AUTO]Update bundled patches
Files changed:
M	patch-fbc.json
M	patch.json
2026-01-26 08:14:42 +00:00
.github/workflows test the patching in ci 2024-12-09 19:28:02 +01:00
.envrc initial version 2023-01-21 23:55:54 +01:00
.gitignore test the patching in ci 2024-12-09 19:28:02 +01:00
extractor.nix bypass root check in patch scripts 2024-12-09 18:55:02 +01:00
flake.lock remove leftover flake input 2024-04-03 19:35:00 +02:00
flake.nix test the patching in ci 2024-12-09 19:28:02 +01:00
overlay.nix expose patch list 2024-12-09 19:19:49 +01:00
patch-fbc.json [AUTO]Update bundled patches 2026-01-26 08:14:42 +00:00
patch.json [AUTO]Update bundled patches 2026-01-26 08:14:42 +00:00
patch.nix expose patch list 2024-12-09 19:19:49 +01:00
patchlist.nix expose patch list 2024-12-09 19:19:49 +01:00
README.md add maintenance notice 2025-05-26 21:04:29 +02:00

nvidia-patch-nixos

nvidia-patch flake for NixOS

Note

I'm currently not using any nvidia hardware anymore so I'm no longer using this myself.

While things should keep working, I'm no longer testing things. If you interest is taking over maintenership of this project then feel free to reach out.

Usage

  • Add this flake to your flake inputs:

    nvidia-patch.url = "github:icewind1991/nvidia-patch-nixos";
    nvidia-patch.inputs.nixpkgs.follows = "nixpkgs";
    
  • Apply the overlay:

    nixpkgs.overlays = [inputs.nvidia-patch.overlays.default];
    
  • Apply the patch to your nvidia package

    {
      pkgs,
      config,
      ...
    }: let
      # nvidia package to patch
      package = config.boot.kernelPackages.nvidiaPackages.stable;
    in {
      hardware.nvidia.package = pkgs.nvidia-patch.patch-nvenc (pkgs.nvidia-patch.patch-fbc package);
    }
    
    

Changelog

  • 2024-04-31:
    • The overlay has been moved from nvidia-patch.overlay to nvidia-patch.overlays.default
    • You no longer need to provide the upstream nvidia-patch revision and hash.
    • The patcher no longer relies on IFD which should speedup builds.