refactor!: rewrite following dendritic patterns

This commit is contained in:
2026-06-29 15:28:56 +02:00
parent 76fa31e3d2
commit a206132d94
15 changed files with 359 additions and 4 deletions
+3
View File
@@ -0,0 +1,3 @@
{
flake.modules.nixos.amdgpu = ./nixos.nix;
}
+30
View File
@@ -0,0 +1,30 @@
{pkgs, ...}: {
hardware = {
graphics = {
enable = true;
enable32Bit = true;
extraPackages = with pkgs; [
mesa rocmPackages.clr rocmPackages.clr.icd rocmPackages.rocblas
rocmPackages.hipblas rocmPackages.rpp nvtopPackages.amd
];
};
amdgpu = { initrd.enable = true; opencl.enable = true; };
};
environment.systemPackages = with pkgs; [ clinfo amdgpu_top nvtopPackages.amd ];
systemd = {
packages = with pkgs; [ lact ];
services.lactd.wantedBy = [ "multi-user.target" ];
tmpfiles.rules = let
rocmEnv = pkgs.symlinkJoin {
name = "rocm-combined";
paths = with pkgs.rocmPackages; [ clr clr.icd rocblas hipblas rpp ];
};
in [ "L+ /opt/rocm - - - - ${rocmEnv}" ];
};
environment.variables = {
ROCM_PATH = "/opt/rocm";
HIP_VISIBLE_DEVICES = "1";
ROCM_VISIBLE_DEVICES = "1";
HSA_OVERRIDE_GFX_VERSION = "10.3.0";
};
}
+27
View File
@@ -0,0 +1,27 @@
{inputs, ...}:
{
flake-file.inputs = {
rockchip = {
url = "github:raboof/nixos-rockchip/pinetab-linux-7.0";
inputs.utils.follows = "flake-utils";
inputs.nixpkgsStable.follows = "nixpkgsStable";
inputs.nixpkgsUnstable.follows = "nixpkgs";
};
flake-utils.url = "github:numtide/flake-utils";
};
config.flake.factory.pinetab2 = buildPlatform: variantModules: {
nixos.pinetab2 = {
imports = [
inputs.rockchip.nixosModules.sdImageRockchip
inputs.rockchip.nixosModules.dtOverlayPCIeFix
inputs.rockchip.nixosModules.noZFS
inputs.self.modules.nixos.pinetab2-base
] ++ variantModules;
rockchip.uBoot = inputs.rockchip.packages.${buildPlatform}.uBootPineTab2;
boot.kernelPackages =
inputs.rockchip.legacyPackages.${buildPlatform}.kernel_linux_7_0_pinetab_unstable;
hardware.firmware = [ inputs.rockchip.packages.aarch64-linux.bes2600 ];
};
};
}