mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-08 19:46:10 +01:00
Merge pull request #1618 from kuwii/linglong-novastudio
linglong/nova-studio: init
This commit is contained in:
commit
c8b6a49ebf
4 changed files with 66 additions and 0 deletions
|
|
@ -364,6 +364,7 @@ See code for all available configurations.
|
||||||
| [Lenovo Yoga Slim 7i Pro X 14IAH7 (Hybrid)](lenovo/yoga/7/14IAH7/hybrid) | `<nixos-hardware/lenovo/yoga/7/14IAH7/hybrid>` | `lenovo-yoga-7-14IAH7-hybrid` |
|
| [Lenovo Yoga Slim 7i Pro X 14IAH7 (Hybrid)](lenovo/yoga/7/14IAH7/hybrid) | `<nixos-hardware/lenovo/yoga/7/14IAH7/hybrid>` | `lenovo-yoga-7-14IAH7-hybrid` |
|
||||||
| [Lenovo Yoga Slim 7 14ILL10](lenovo/yoga/7/14ILL10) | `<nixos-hardware/lenovo/yoga/7/14ILL10>` | `lenovo-yoga-7-14ILL10` |
|
| [Lenovo Yoga Slim 7 14ILL10](lenovo/yoga/7/14ILL10) | `<nixos-hardware/lenovo/yoga/7/14ILL10>` | `lenovo-yoga-7-14ILL10` |
|
||||||
| [LENOVO Yoga 7 Slim Gen8](lenovo/yoga/7/slim/gen8) | `<nixos-hardware/lenovo/yoga/7/slim/gen8>` | `lenovo-yoga-7-slim-gen8` |
|
| [LENOVO Yoga 7 Slim Gen8](lenovo/yoga/7/slim/gen8) | `<nixos-hardware/lenovo/yoga/7/slim/gen8>` | `lenovo-yoga-7-slim-gen8` |
|
||||||
|
| [Linglong Nova Studio](linglong/nova-studio) | `<nixos-hardware/linglong/nova-studio>` | `linglong-nova-studio` |
|
||||||
| [MSI B550-A PRO](msi/b550-a-pro) | `<nixos-hardware/msi/b550-a-pro>` | `msi-b550-a-pro` |
|
| [MSI B550-A PRO](msi/b550-a-pro) | `<nixos-hardware/msi/b550-a-pro>` | `msi-b550-a-pro` |
|
||||||
| [MSI B350 TOMAHAWK](msi/b350-tomahawk) | `<nixos-hardware/msi/b350-tomahawk>` | `msi-b350-tomahawk` |
|
| [MSI B350 TOMAHAWK](msi/b350-tomahawk) | `<nixos-hardware/msi/b350-tomahawk>` | `msi-b350-tomahawk` |
|
||||||
| [MSI GS60 2QE](msi/gs60) | `<nixos-hardware/msi/gs60>` | `msi-gs60` |
|
| [MSI GS60 2QE](msi/gs60) | `<nixos-hardware/msi/gs60>` | `msi-gs60` |
|
||||||
|
|
|
||||||
|
|
@ -304,6 +304,7 @@
|
||||||
lenovo-yoga-7-14ILL10 = import ./lenovo/yoga/7/14ILL10;
|
lenovo-yoga-7-14ILL10 = import ./lenovo/yoga/7/14ILL10;
|
||||||
lenovo-yoga-7-slim-gen8 = import ./lenovo/yoga/7/slim/gen8;
|
lenovo-yoga-7-slim-gen8 = import ./lenovo/yoga/7/slim/gen8;
|
||||||
letsnote-cf-lx4 = import ./panasonic/letsnote/cf-lx4;
|
letsnote-cf-lx4 = import ./panasonic/letsnote/cf-lx4;
|
||||||
|
linglong-nova-studio = import ./linglong/nova-studio;
|
||||||
malibal-aon-s1-intel = import ./malibal/aon/s1;
|
malibal-aon-s1-intel = import ./malibal/aon/s1;
|
||||||
mechrevo-gm5hg0a = import ./mechrevo/GM5HG0A;
|
mechrevo-gm5hg0a = import ./mechrevo/GM5HG0A;
|
||||||
microchip-icicle-kit = import ./microchip/icicle-kit;
|
microchip-icicle-kit = import ./microchip/icicle-kit;
|
||||||
|
|
|
||||||
39
linglong/nova-studio/README.md
Normal file
39
linglong/nova-studio/README.md
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
# Linglong Nova Studio
|
||||||
|
|
||||||
|
This is a configuration for [Linglong Nova Studio (玲珑星核)](https://www.firstarpc.com/).
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
import `<nixos-hardware/linglong/nova-studio>` (using configurations), or add `nixos-hardware.nixosModules.linglong-nova-studio` in modules (using Flakes).
|
||||||
|
|
||||||
|
This configuration will force to use Linux kernel that >= 6.14, otherwise it will be updated to the latest version. This part follows [Framework Desktop](../../framework/desktop/amd-ai-max-300-series), which is also a desktop computer using Ryzen AI Max 300 series processor.
|
||||||
|
|
||||||
|
## OpenCL and ROCm support
|
||||||
|
|
||||||
|
To setup OpenCL and ROCm environment, please add the following configuration:
|
||||||
|
|
||||||
|
```
|
||||||
|
# Tell packages that supports ROCm to enable the related supports.
|
||||||
|
nixpkgs.config.rocmSupport = true;
|
||||||
|
|
||||||
|
# Install ROCm and enable
|
||||||
|
hardware.amdgpu.opencl.enable = true;
|
||||||
|
|
||||||
|
# These tools can show the info related to ROCm and OpenCL.
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
rocmPackages.rocminfo
|
||||||
|
clinfo
|
||||||
|
];
|
||||||
|
```
|
||||||
|
|
||||||
|
After switching, to check whether the environment has been correctly setup, please run
|
||||||
|
|
||||||
|
```
|
||||||
|
clinfo
|
||||||
|
```
|
||||||
|
|
||||||
|
and
|
||||||
|
|
||||||
|
```
|
||||||
|
rocminfo
|
||||||
|
```
|
||||||
25
linglong/nova-studio/default.nix
Normal file
25
linglong/nova-studio/default.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
../../common/cpu/amd
|
||||||
|
../../common/cpu/amd/pstate.nix
|
||||||
|
../../common/cpu/amd/zenpower.nix
|
||||||
|
../../common/gpu/amd
|
||||||
|
../../common/pc/ssd
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "6.14") (
|
||||||
|
lib.mkDefault pkgs.linuxPackages_latest
|
||||||
|
);
|
||||||
|
boot.kernelModules = [ "amdgpu" ];
|
||||||
|
|
||||||
|
hardware.enableRedistributableFirmware = lib.mkDefault true;
|
||||||
|
hardware.graphics.enable = lib.mkDefault true;
|
||||||
|
hardware.graphics.enable32Bit = lib.mkDefault true;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue