Merge branch 'davinci-stuff'
This commit is contained in:
@@ -23,9 +23,11 @@
|
|||||||
config = {
|
config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
packageOverrides = pkgs: {
|
packageOverrides = pkgs: {
|
||||||
unstable =
|
unstable = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz") {
|
||||||
import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz")
|
config = {
|
||||||
{ };
|
allowUnfree = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -28,15 +28,12 @@
|
|||||||
hardware.graphics = {
|
hardware.graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enable32Bit = true;
|
enable32Bit = true;
|
||||||
extraPackages = with pkgs; [
|
|
||||||
# This is the most critical package for AMD OpenCL
|
|
||||||
rocmPackages.clr.icd
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hardware.amdgpu.opencl.enable = true;
|
||||||
|
|
||||||
boot.kernelParams = [
|
boot.kernelParams = [
|
||||||
"amdgpu.noretry=0"
|
"amdgpu.ppfeaturemask=0xffffffff"
|
||||||
"amdgpu.gpu_recovery=1"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Wake on Lan
|
# Wake on Lan
|
||||||
|
|||||||
17
flake.lock
generated
17
flake.lock
generated
@@ -131,6 +131,22 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"mesa-davinci": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1754501210,
|
||||||
|
"narHash": "sha256-ahTHrGs72TLVcNUR2VHckEx+t6frke0e/Ptk6AaEINk=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "599ddd2b79331c1e6153e1659bdaab65d62c4c82",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "599ddd2b79331c1e6153e1659bdaab65d62c4c82",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770197578,
|
"lastModified": 1770197578,
|
||||||
@@ -250,6 +266,7 @@
|
|||||||
"doot": "doot",
|
"doot": "doot",
|
||||||
"elephant": "elephant",
|
"elephant": "elephant",
|
||||||
"hyprfloat": "hyprfloat",
|
"hyprfloat": "hyprfloat",
|
||||||
|
"mesa-davinci": "mesa-davinci",
|
||||||
"nixpkgs": "nixpkgs_4",
|
"nixpkgs": "nixpkgs_4",
|
||||||
"walker": "walker",
|
"walker": "walker",
|
||||||
"way-edges": "way-edges"
|
"way-edges": "way-edges"
|
||||||
|
|||||||
@@ -16,6 +16,8 @@
|
|||||||
url = "github:abenz1267/walker";
|
url = "github:abenz1267/walker";
|
||||||
inputs.elephant.follows = "elephant";
|
inputs.elephant.follows = "elephant";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mesa-davinci.url = "github:nixos/nixpkgs?ref=599ddd2b79331c1e6153e1659bdaab65d62c4c82";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
|
|||||||
@@ -2,12 +2,22 @@
|
|||||||
# Even if following this guide https://www.reddit.com/r/LinuxCrackSupport/comments/1nfqhld/davinci_resolve_studio_202_fix_linux_crack_guide/
|
# Even if following this guide https://www.reddit.com/r/LinuxCrackSupport/comments/1nfqhld/davinci_resolve_studio_202_fix_linux_crack_guide/
|
||||||
# nixpkgs rev used for this tests: 4652ba995a945108fb891191c1e910b9a6ed9064
|
# nixpkgs rev used for this tests: 4652ba995a945108fb891191c1e910b9a6ed9064
|
||||||
|
|
||||||
{ lib, pkgs, ... }:
|
{ lib, inputs, ... }:
|
||||||
let
|
let
|
||||||
|
mesa-good-pkg = inputs.mesa-davinci.legacyPackages.x86_64-linux.mesa;
|
||||||
pkgs = import (builtins.fetchTarball {
|
pkgs = import (builtins.fetchTarball {
|
||||||
url = "https://github.com/NixOS/nixpkgs/archive/4652ba995a945108fb891191c1e910b9a6ed9064.tar.gz";
|
url = "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz";
|
||||||
sha256 = "sha256:1pmmbasd84z3yi06919jnl9gvpm37cfr30rba3mc8mgig8ansfhf"; # You can find this using nix-prefetch-url
|
|
||||||
}) { config.allowUnfree = true; };
|
}) { config.allowUnfree = true; };
|
||||||
|
pkgs-pinned =
|
||||||
|
import
|
||||||
|
(builtins.fetchTarball {
|
||||||
|
url = "https://github.com/NixOS/nixpkgs/archive/497ee3c70707fd71b45c37d48ae1d45e79751047.tar.gz";
|
||||||
|
})
|
||||||
|
{
|
||||||
|
config = {
|
||||||
|
allowUnfree = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
ffmpeg-encoder-plugin = pkgs.stdenv.mkDerivation (finalAttrs: {
|
ffmpeg-encoder-plugin = pkgs.stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "ffmpeg-encoder-plugin";
|
pname = "ffmpeg-encoder-plugin";
|
||||||
version = "1.2.1";
|
version = "1.2.1";
|
||||||
@@ -38,7 +48,7 @@ let
|
|||||||
|
|
||||||
davinci-resolve-studio-cracked =
|
davinci-resolve-studio-cracked =
|
||||||
let
|
let
|
||||||
davinci-patched = pkgs.davinci-resolve-studio.davinci.overrideAttrs (old: {
|
davinci-patched = pkgs-pinned.davinci-resolve-studio.davinci.overrideAttrs (old: {
|
||||||
# script based on https://www.reddit.com/r/LinuxCrackSupport/comments/1nfqhld/davinci_resolve_studio_202_fix_linux_crack_guide/
|
# script based on https://www.reddit.com/r/LinuxCrackSupport/comments/1nfqhld/davinci_resolve_studio_202_fix_linux_crack_guide/
|
||||||
#
|
#
|
||||||
# Additionally, it will install ffmpeg_encoder_plugin to enable H264/5 & AV1 exports:
|
# Additionally, it will install ffmpeg_encoder_plugin to enable H264/5 & AV1 exports:
|
||||||
@@ -122,7 +132,10 @@ let
|
|||||||
libGL
|
libGL
|
||||||
libGLU
|
libGLU
|
||||||
]
|
]
|
||||||
++ [ davinci-patched ];
|
++ [
|
||||||
|
mesa-good-pkg
|
||||||
|
davinci-patched
|
||||||
|
];
|
||||||
|
|
||||||
extraPreBwrapCmds = ''
|
extraPreBwrapCmds = ''
|
||||||
mkdir -p ~/.local/share/DaVinciResolve/Extras || exit 1
|
mkdir -p ~/.local/share/DaVinciResolve/Extras || exit 1
|
||||||
@@ -183,9 +196,4 @@ let
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
environment.systemPackages = [ davinci-resolve-studio-cracked ];
|
environment.systemPackages = [ davinci-resolve-studio-cracked ];
|
||||||
|
|
||||||
# following configuration was taken from
|
|
||||||
# https://wiki.nixos.org/wiki/DaVinci_Resolve
|
|
||||||
|
|
||||||
# Zynix
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user