Added nvidia-patch for unlimited nvenc sessions and NvFBC

This commit is contained in:
Nicole 2026-02-05 20:12:12 +01:00
parent 50cdb28974
commit 974fdcfa65
4 changed files with 75 additions and 40 deletions

View file

@ -66,11 +66,11 @@
"scenefx": "scenefx"
},
"locked": {
"lastModified": 1770213044,
"narHash": "sha256-NBKogN62YygzLfGuUAWobUafXBj9P241k1nSwJWGBUQ=",
"lastModified": 1770260812,
"narHash": "sha256-qK9Jjux6ZT6SQHpmm8rGeAVnsnuXvYK5XFU7Rlkit/I=",
"owner": "DreamMaoMao",
"repo": "mango",
"rev": "65fcd58949ce55eca3195bdbc6f935058fc3b33c",
"rev": "8e898417a75bc48cdc79409dba2b415f692d7ea6",
"type": "github"
},
"original": {
@ -109,11 +109,11 @@
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
},
"locked": {
"lastModified": 1770169657,
"narHash": "sha256-wiWbmO2xUoqh5DuSBYVLGOICo9AOcYq9mNPsvCtL7SM=",
"lastModified": 1770271466,
"narHash": "sha256-Pyc3p/V7ruQplnU31r+umLSNlSGwOOoHzhWfzfLmiiw=",
"owner": "sodiboo",
"repo": "niri-flake",
"rev": "4c962a3fd37ef268337ed113cbffabfd1fe3ca5c",
"rev": "76e1d271485b00a5d98aeb1dd76408594741c039",
"type": "github"
},
"original": {
@ -299,11 +299,11 @@
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1770115704,
"narHash": "sha256-KHFT9UWOF2yRPlAnSXQJh6uVcgNcWlFqqiAZ7OVlHNc=",
"lastModified": 1770197578,
"narHash": "sha256-AYqlWrX09+HvGs8zM6ebZ1pwUqjkfpnv8mewYwAo+iM=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "e6eae2ee2110f3d31110d5c222cd395303343b08",
"rev": "00c21e4c93d963c50d4c0c89bfa84ed6e0694df2",
"type": "github"
},
"original": {
@ -361,37 +361,24 @@
"type": "github"
}
},
"nixpkgs_5": {
"locked": {
"lastModified": 1768393167,
"narHash": "sha256-n2063BRjHde6DqAz2zavhOOiLUwA3qXt7jQYHyETjX8=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "2f594d5af95d4fdac67fba60376ec11e482041cb",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"opencode": {
"nvidia-patch": {
"inputs": {
"nixpkgs": "nixpkgs_5"
"nixpkgs": [
"nixpkgs"
],
"utils": "utils"
},
"locked": {
"lastModified": 1770222504,
"narHash": "sha256-ucKeBCEhKqfCE7fFYTnNrVZMYTmghrgnb8uFCrTilf4=",
"owner": "sst",
"repo": "opencode",
"rev": "c875a1fc900f044874b2072468719e117e948840",
"lastModified": 1769415282,
"narHash": "sha256-Z24dmKqI5jxTzsgqxAqtSF2KZ9UcUo/tACc9n8ufnZU=",
"owner": "icewind1991",
"repo": "nvidia-patch-nixos",
"rev": "0fe336d3ee63b0055af5ecead3610272ae90fd9c",
"type": "github"
},
"original": {
"owner": "sst",
"repo": "opencode",
"owner": "icewind1991",
"repo": "nvidia-patch-nixos",
"type": "github"
}
},
@ -405,7 +392,7 @@
"nix-gaming": "nix-gaming",
"nixpkgs": "nixpkgs_4",
"nixpkgs-unstable": "nixpkgs-unstable",
"opencode": "opencode"
"nvidia-patch": "nvidia-patch"
}
},
"scenefx": {
@ -444,6 +431,21 @@
"type": "github"
}
},
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"treefmt-nix": {
"inputs": {
"nixpkgs": [
@ -465,6 +467,24 @@
"type": "github"
}
},
"utils": {
"inputs": {
"systems": "systems_2"
},
"locked": {
"lastModified": 1710146030,
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"xwayland-satellite-stable": {
"flake": false,
"locked": {

View file

@ -2,7 +2,8 @@
description = "My Flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-25.11";
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
#nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-25.11";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
nix-flatpak.url = "github:gmodena/nix-flatpak";
niri = {
@ -12,15 +13,19 @@
nix-citizen.url = "github:LovingMelody/nix-citizen";
nix-gaming.url = "github:fufexan/nix-gaming";
nix-citizen.inputs.nix-gaming.follows = "nix-gaming";
opencode.url = "github:sst/opencode";
#opencode.url = "github:sst/opencode";
mango = {
url = "github:DreamMaoMao/mango";
inputs.nixpkgs.follows = "nixpkgs";
};
musnix.url = "github:musnix/musnix";
nvidia-patch = {
url = "github:icewind1991/nvidia-patch-nixos";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, nixpkgs-unstable, nix-flatpak, niri, opencode, mango, musnix, ... } @inputs:
outputs = { self, nixpkgs, nixpkgs-unstable, nix-flatpak, niri, mango, musnix, nvidia-patch, ... } @inputs:
let
system = "x86_64-linux";
@ -49,8 +54,10 @@
nix-flatpak.nixosModules.nix-flatpak
mango.nixosModules.mango
musnix.nixosModules.musnix
{nixpkgs.overlays = [inputs.nvidia-patch.overlays.default];}
./configuration.nix
];
};
};
}

View file

@ -1,5 +1,10 @@
{ config, pkgs, lib, ... }:
let
package = config.boot.kernelPackages.nvidiaPackages.latest;
in
{
boot = {
kernelParams = [
@ -21,8 +26,10 @@
powerManagement.enable = false;
powerManagement.finegrained = false;
nvidiaSettings = false;
package = pkgs.nvidia-patch.patch-nvenc (pkgs.nvidia-patch.patch-fbc package);
package = config.boot.kernelPackages.nvidiaPackages.latest;
#package = config.boot.kernelPackages.nvidiaPackages.mkDriver {
# version = "580.95.05";

View file

@ -148,7 +148,8 @@
#pkgs-unstable.jan
#claude-code
pkgs-unstable.lmstudio
(inputs.opencode.packages.${system}.default)
#(inputs.opencode.packages.${system}.default)
pkgs-unstable.opencode
#pkgs-unstable.codex
#pkgs-unstable.gemini-cli