Skip to content

Commit c8b6a49

Browse files
authored
Merge pull request #1618 from kuwii/linglong-novastudio
linglong/nova-studio: init
2 parents 895e314 + 0e9dc7c commit c8b6a49

File tree

4 files changed

+66
-0
lines changed

4 files changed

+66
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ See code for all available configurations.
364364
| [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` |
365365
| [Lenovo Yoga Slim 7 14ILL10](lenovo/yoga/7/14ILL10) | `<nixos-hardware/lenovo/yoga/7/14ILL10>` | `lenovo-yoga-7-14ILL10` |
366366
| [LENOVO Yoga 7 Slim Gen8](lenovo/yoga/7/slim/gen8) | `<nixos-hardware/lenovo/yoga/7/slim/gen8>` | `lenovo-yoga-7-slim-gen8` |
367+
| [Linglong Nova Studio](linglong/nova-studio) | `<nixos-hardware/linglong/nova-studio>` | `linglong-nova-studio` |
367368
| [MSI B550-A PRO](msi/b550-a-pro) | `<nixos-hardware/msi/b550-a-pro>` | `msi-b550-a-pro` |
368369
| [MSI B350 TOMAHAWK](msi/b350-tomahawk) | `<nixos-hardware/msi/b350-tomahawk>` | `msi-b350-tomahawk` |
369370
| [MSI GS60 2QE](msi/gs60) | `<nixos-hardware/msi/gs60>` | `msi-gs60` |

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@
304304
lenovo-yoga-7-14ILL10 = import ./lenovo/yoga/7/14ILL10;
305305
lenovo-yoga-7-slim-gen8 = import ./lenovo/yoga/7/slim/gen8;
306306
letsnote-cf-lx4 = import ./panasonic/letsnote/cf-lx4;
307+
linglong-nova-studio = import ./linglong/nova-studio;
307308
malibal-aon-s1-intel = import ./malibal/aon/s1;
308309
mechrevo-gm5hg0a = import ./mechrevo/GM5HG0A;
309310
microchip-icicle-kit = import ./microchip/icicle-kit;

linglong/nova-studio/README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Linglong Nova Studio
2+
3+
This is a configuration for [Linglong Nova Studio (玲珑星核)](https://www.firstarpc.com/).
4+
5+
## Configuration
6+
7+
import `<nixos-hardware/linglong/nova-studio>` (using configurations), or add `nixos-hardware.nixosModules.linglong-nova-studio` in modules (using Flakes).
8+
9+
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.
10+
11+
## OpenCL and ROCm support
12+
13+
To setup OpenCL and ROCm environment, please add the following configuration:
14+
15+
```
16+
# Tell packages that supports ROCm to enable the related supports.
17+
nixpkgs.config.rocmSupport = true;
18+
19+
# Install ROCm and enable
20+
hardware.amdgpu.opencl.enable = true;
21+
22+
# These tools can show the info related to ROCm and OpenCL.
23+
environment.systemPackages = with pkgs; [
24+
rocmPackages.rocminfo
25+
clinfo
26+
];
27+
```
28+
29+
After switching, to check whether the environment has been correctly setup, please run
30+
31+
```
32+
clinfo
33+
```
34+
35+
and
36+
37+
```
38+
rocminfo
39+
```

linglong/nova-studio/default.nix

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
config,
3+
lib,
4+
pkgs,
5+
...
6+
}:
7+
8+
{
9+
imports = [
10+
../../common/cpu/amd
11+
../../common/cpu/amd/pstate.nix
12+
../../common/cpu/amd/zenpower.nix
13+
../../common/gpu/amd
14+
../../common/pc/ssd
15+
];
16+
17+
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "6.14") (
18+
lib.mkDefault pkgs.linuxPackages_latest
19+
);
20+
boot.kernelModules = [ "amdgpu" ];
21+
22+
hardware.enableRedistributableFirmware = lib.mkDefault true;
23+
hardware.graphics.enable = lib.mkDefault true;
24+
hardware.graphics.enable32Bit = lib.mkDefault true;
25+
}

0 commit comments

Comments
 (0)