Skip to content

Commit cc896f1

Browse files
authored
Merge branch 'NixOS:master' into master
2 parents c46bd95 + 3dac8a8 commit cc896f1

File tree

7 files changed

+61
-4
lines changed

7 files changed

+61
-4
lines changed

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@
133133
framework-13-7040-amd = import ./framework/13-inch/7040-amd;
134134
framework-amd-ai-300-series = import ./framework/13-inch/amd-ai-300-series;
135135
framework-16-7040-amd = import ./framework/16-inch/7040-amd;
136+
framework-desktop-amd-ai-max-300-series = import ./framework/desktop/amd-ai-max-300-series;
136137
friendlyarm-nanopc-t4 = import ./friendlyarm/nanopc-t4;
137138
friendlyarm-nanopi-r5s = import ./friendlyarm/nanopi-r5s;
138139
focus-m2-gen1 = import ./focus/m2/gen1;

framework/12-inch/13th-gen-intel/default.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,10 @@
44
../common
55
../../../common/cpu/intel
66
];
7+
8+
# If this module isn't built into the kernel, we need to make sure it loads
9+
# before soc_button_array. Otherwise the tablet mode gpio doesn't work.
10+
# If correctly loaded, dmesg should show
11+
# input: gpio-keys as /devices/platform/INT33D3:00
12+
boot.initrd.kernelModules = [ "pinctrl_tigerlake" ];
713
}

framework/13-inch/amd-ai-300-series/default.nix

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@
1010
../common
1111
../common/amd.nix
1212
];
13-
config.hardware.framework.laptop13.audioEnhancement.rawDeviceName =
14-
lib.mkDefault "alsa_output.pci-0000_c1_00.6.analog-stereo";
13+
config = {
14+
hardware.framework.laptop13.audioEnhancement.rawDeviceName =
15+
lib.mkDefault "alsa_output.pci-0000_c1_00.6.analog-stereo";
16+
17+
# suspend works with 6.15
18+
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "6.15") (
19+
lib.mkDefault pkgs.linuxPackages_latest
20+
);
21+
};
1522
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# [Framework Desktop](https://frame.work/desktop)
2+
3+
## Kernel version
4+
5+
The recommended version is 6.15 or newer, it has good GPU and also EC firmware support (for sensors and ARGB).
6+
The lowest recommended version is 6.14. It has good GPU support already.
7+
The absolute lowest that runs okay on headless systems is 6.11, but the GPU is not fully supported yet.
8+
9+
## Updating Firmware
10+
11+
First put enable `fwupd`
12+
13+
```nix
14+
services.fwupd.enable = true;
15+
```
16+
17+
Then run
18+
19+
```sh
20+
$ fwupdmgr update
21+
```
22+
23+
- [Latest Update](https://fwupd.org/lvfs/devices/work.frame.Desktop.RyzenAIMax300.BIOS.firmware)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
config,
3+
lib,
4+
pkgs,
5+
...
6+
}:
7+
{
8+
imports = [
9+
../../../common/cpu/amd
10+
../../../common/cpu/amd/pstate.nix
11+
../../../common/gpu/amd
12+
../../../common/pc/ssd
13+
../../framework-tool.nix
14+
];
15+
16+
# 6.14 and above have good GPU support
17+
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "6.14") (
18+
lib.mkDefault pkgs.linuxPackages_latest
19+
);
20+
}

microsoft/surface/common/kernel/6.12/patches.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{
1010
name = "microsoft-surface-patches-linux-${version}";
1111
patch = null;
12-
extraStructuredConfig = with kernel; {
12+
structuredExtraConfig = with kernel; {
1313
STAGING_MEDIA = yes;
1414

1515
##

microsoft/surface/common/kernel/6.15/patches.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{
1010
name = "microsoft-surface-patches-linux-${version}";
1111
patch = null;
12-
extraStructuredConfig = with kernel; {
12+
structuredExtraConfig = with kernel; {
1313
STAGING_MEDIA = yes;
1414
##
1515
## Surface Aggregator Module

0 commit comments

Comments
 (0)