Compare commits

..
Author SHA1 Message Date
Jörg Thalheim e60c66bd0b replace tlp with power-profiles-daemon
TLP is often no longer the best choice since firmware provides power
profiles instead. That's why we are removing TLP as the default option.
We may want to bring back TLP to some old hardware if it makes sense
i.e. certain thinkpad modules.
2025-11-06 12:07:59 +01:00
192 changed files with 801 additions and 3463 deletions

No files matched your search

+1 -2
View File
@@ -9,5 +9,4 @@
# reapplied by the auto-rebase script
# nixfmt-rfc-style formatting
51e51e601448705c0d2f92ef90ec7b680123077c #!autorebase cd tests && nix fmt ..
166dee4f88a7e3ba1b7a243edb1aca822f00680e
51e51e601448705c0d2f92ef90ec7b680123077c #!autorebase cd tests && nix fmt ..
-2
View File
@@ -1,5 +1,3 @@
<!-- Please read the CONTRIBUTING.md guidelines before submitting: https://github.com/NixOS/nixos-hardware/blob/master/CONTRIBUTING.md -->
###### Description of changes
-6
View File
@@ -4,9 +4,3 @@ updates:
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "nix"
directories:
- "/"
- "tests/"
schedule:
interval: "weekly"
+2 -2
View File
@@ -9,13 +9,13 @@ jobs:
nixfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@v5
- uses: cachix/install-nix-action@v31
- run: nix build .#checks.x86_64-linux.formatting
tests:
needs: nixfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@v5
- uses: cachix/install-nix-action@v31
- run: nix run .#run-tests
+1 -1
View File
@@ -9,6 +9,6 @@ pine64/rockpro64 @tomfitzhenry
pine64/star64 @fgaz
purism/librem/13v3 @yegortimoshenko
system76/darp6 @khumba
framework @emiller88 @johnazoidberg
framework @emiller88
tuxedo/pulse/15/gen2 @trueNAHO
tuxedo/pulse/14/gen3 @gabyx @britter
+9 -140
View File
@@ -1,11 +1,5 @@
# Contributing a Device Profile
Please submit your contributions from a feature branch, not from your master branch:
```bash
git checkout -b my-new-hardware-profile
```
## 1. Writing profiles
Create an appropriate directory and start writing your expression.
@@ -20,8 +14,9 @@ For example:
```nix
{ lib }: {
# Using mkDefault, because the user might want to disable tlp
services.tlp.enable = lib.mkDefault true;
# Using mkDefault, because the user might want to disable power-profiles-daemon
services.power-profiles-daemon.enable = lib.mkDefault true;
# No need to use mkDefault, because the setting will merge with the user's setting
boot.kernelModules = [ "tmp_smapi" ];
}
@@ -42,144 +37,18 @@ should either be conservative or be guarded behind additional NixOS module
options. If it makes sense to have a performance-focussed config, it can be
declared in a separate profile.
## 2. Optional: Add a README
## 2. Adding Entry
Profiles can include a `README.md` with device-specific documentation such as:
- Firmware update instructions
- BIOS settings
- Known issues and workarounds
- Links to external resources
Link the profile in the table in README.md and in flake.nix.
See [framework/13-inch/7040-amd/README.md](framework/13-inch/7040-amd/README.md)
for a good example.
## 3. Testing
## 3. Adding Entry
Add your profile to both `README.md` and `flake.nix`.
**README.md**: Add a row to the table in alphabetical order by manufacturer:
```markdown
| [Manufacturer Model](manufacturer/model) | `<nixos-hardware/manufacturer/model>` | `manufacturer-model` |
```
The columns are:
1. Model name linking to the profile directory
2. Channel path (for `imports = [ <nixos-hardware/...> ]`)
3. Flake module name (for `nixos-hardware.nixosModules.<name>`)
**flake.nix**: Add an entry to the `nixosModules` attribute set:
```nix
manufacturer-model = import ./manufacturer/model;
```
The flake module name should use hyphens (e.g., `dell-xps-15-9500`).
## 4. Multiple Variants
For devices with multiple configurations (e.g., different GPU options), create
subdirectories with a shared base module. For example:
```
dell/xps/15-9560/
├── default.nix # Base profile (or one default variant)
├── intel/default.nix # Intel-only variant
├── nvidia/default.nix # Nvidia variant
└── xps-common.nix # Shared configuration
```
Each variant needs its own entry in README.md and flake.nix:
```nix
dell-xps-15-9560 = import ./dell/xps/15-9560;
dell-xps-15-9560-intel = import ./dell/xps/15-9560/intel;
dell-xps-15-9560-nvidia = import ./dell/xps/15-9560/nvidia;
```
## 5. Testing
Before opening a pull request, test your profile by pointing to your fork.
**Using channels:**
```bash
sudo nix-channel --add https://github.com/<github-user>/nixos-hardware/archive/<branch>.tar.gz nixos-hardware
sudo nix-channel --update
sudo nixos-rebuild test
```
**Using flakes:**
Update your `flake.nix` input temporarily:
```nix
inputs.nixos-hardware.url = "github:<github-user>/nixos-hardware/<branch>";
```
Then run:
```bash
sudo nixos-rebuild test --flake .
```
You can also run `nix run .#run-tests` to evaluate all hardware profiles.
Run `nix run .#run-tests` to evaluate all hardware profiles.
Because profiles can only be tested with the appropriate hardware, quality
assurance is up to *you*.
## Compatibility
Profiles should work with both NixOS unstable and the current stable release.
## Deprecating Modules
When renaming or removing a module, add deprecation warnings for both flake and
channel users.
**For flake users**, use the `deprecated` helper in `flake.nix`:
```nix
old-module-name = deprecated "issue-number" "old-module-name" (import ./new/path);
```
**For channel users**, add an assertion in the old module's `default.nix`:
```nix
{ ... }:
{
assertions = [
{
assertion = false;
message = "Importing path/to/old/module (default.nix) directly is deprecated! See https://github.com/NixOS/nixos-hardware/blob/master/path/to/DEPRECATION.md for more details";
}
];
}
```
Include a markdown file explaining the migration path. See
[asus/zephyrus/ga402x/ATTR-SET-DEPRECATION.md](asus/zephyrus/ga402x/ATTR-SET-DEPRECATION.md)
for an example.
## Getting Help
For questions and discussions, join us in the
[#nixos-hardware:nixos.org](https://matrix.to/#/#nixos-hardware:nixos.org)
Matrix channel.
# For reviewers:
Any nixpkgs committer can review and approve pull requests in this repository.
This repository has [mergify](https://mergify.com/) enabled for easier merging after a successfull build:
This repository uses GitHub merge queues for merging pull requests.
## Review checklist
1. **README.md entry**: Verify the contribution adds the device to the table in README.md
2. **flake.nix entry**: Verify the profile is exposed in flake.nix
3. **Common profiles**: Since testing on real hardware isn't always possible,
check that the profile re-uses appropriate common profiles (e.g., cpu, gpu,
laptop/pc, ssd/hdd modules)
4. **Previous contributors**: For changes to existing profiles, consider
requesting feedback from previous contributors who may have access to the
hardware
* `@mergify queue` will add the current pull request to the merge queue and merge when all tests succeed
+4 -43
View File
@@ -32,14 +32,7 @@ the following:
```nix
{
description = "NixOS configuration with flakes";
inputs = {
nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz";
nixos-hardware = {
url = "github:NixOS/nixos-hardware";
inputs.nixpkgs.follows = "nixpkgs";
};
};
inputs.nixos-hardware.url = "github:NixOS/nixos-hardware/master";
outputs = { self, nixpkgs, nixos-hardware }: {
# replace <your-hostname> with your actual hostname
@@ -74,14 +67,14 @@ See [CONTRIBUTING.md](./CONTRIBUTING.md).
## Get in touch
For questions and discussions, come join us in the [nixos-hardware matrix](https://matrix.to/#/#nixos-hardware:nixos.org) room.
For questions and discussions, come join us in the [nixos-anywhere matrix](https://matrix.to/#/#nixos-hardware:nixos.org) room.
# Community Meetings
The [NixOS hardware](https://github.com/orgs/NixOS/teams/nixos-hardware) team meets regularly to discuss hardware profiles and maintenance:
- **When**: Every 3rd Friday of the month
- **Time**: 06:00 pm (UTC) / 18:00 (UTC)
- **Time**: 04:00 pm (UTC) / 16:00 (UTC)
- **Where**: https://jitsi.lassul.us/Hardware-team
- **Contact**: hardware@nixos.org
@@ -94,9 +87,7 @@ See code for all available configurations.
| Model | Path | Flake Module |
| --------------------------------------------------------------------------------- | ------------------------------------------------------- | -------------------------------------- |
| [Acer Aspire 4810T](acer/aspire/4810t) | `<nixos-hardware/acer/aspire/4810t>` | `acer-aspire-4810t` |
| [Acer Predator Helios 300 (PH315-51)](acer/predator/helios/300/ph315-51/) | `<nixos-hardware/acer/predator/helios/300/ph315-51/>` | `acer-predator-helios-300-ph315-51` |
| [Airis N990](airis/n990) | `<nixos-hardware/airis/n990>` | `airis-n990` |
| [Apple iMac 12,2](apple/imac/12-2) | `<nixos-hardware/apple/imac/12-2>` | `apple-imac-12-2` |
| [Apple iMac 14.2](apple/imac/14-2) | `<nixos-hardware/apple/imac/14-2>` | `apple-imac-14-2` |
| [Apple iMac 18.2](apple/imac/18-2) | `<nixos-hardware/apple/imac/18-2>` | `apple-imac-18-2` |
| [Apple MacBook Air 3,X](apple/macbook-air/3) | `<nixos-hardware/apple/macbook-air/3>` | `apple-macbook-air-3` |
@@ -118,7 +109,6 @@ See code for all available configurations.
| [Asus ROG Ally RC71L (2023)](asus/ally/rc71l) | `<nixos-hardware/asus/ally/rc71l>` | `asus-ally-rc71l` |
| [Asus ROG Flow X13 GV302X\* (2023)](asus/flow/gv302x/amdgpu) | `<nixos-hardware/asus/flow/gv302x/amdgpu>` | `asus-flow-gv302x-amdgpu` |
| [Asus ROG Flow X13 GV302X\* (2023)](asus/flow/gv302x/nvidia) | `<nixos-hardware/asus/flow/gv302x/nvidia>` | `asus-flow-gv302x-nvidia` |
| [Asus ROG Flow Z13 gz301vu\* (2023)](asus/flow/gz301vu) | `<nixos-hardware/asus/flow/gz301vu>` | `asus-flow-gz301vu` |
| [Asus ROG GL552VW](asus/rog-gl552vw) | `<nixos-hardware/asus/rog-gl552vw>` | `asus-rog-gl552vw` |
| [Asus ROG Strix G513IM](asus/rog-strix/g513im) | `<nixos-hardware/asus/rog-strix/g513im>` | `asus-rog-strix-g513im` |
| [Asus ROG Strix G533ZW](asus/rog-strix/g533zw) | `<nixos-hardware/asus/rog-strix/g533zw>` | `asus-rog-strix-g533zw` |
@@ -126,29 +116,24 @@ See code for all available configurations.
| [Asus ROG Strix G713IE](asus/rog-strix/g713ie) | `<nixos-hardware/asus/rog-strix/g713ie>` | `asus-rog-strix-g713ie` |
| [Asus ROG Strix G733QS](asus/rog-strix/g733qs) | `<nixos-hardware/asus/rog-strix/g733qs>` | `asus-rog-strix-g733qs` |
| [Asus ROG Strix X570-E GAMING](asus/rog-strix/x570e) | `<nixos-hardware/asus/rog-strix/x570e>` | `asus-rog-strix-x570e` |
| [Asus ROG Zephyrus G14 GA401IV (2020)](asus/zephyrus/ga401iv) | `<nixos-hardware/asus/zephyrus/ga401iv>` | `asus-zephyrus-ga401iv` |
| [Asus ROG Zephyrus G14 GA401 (2021)](asus/zephyrus/ga401) | `<nixos-hardware/asus/zephyrus/ga401>` | `asus-zephyrus-ga401` |
| [Asus ROG Zephyrus G14 GA401](asus/zephyrus/ga401) | `<nixos-hardware/asus/zephyrus/ga401>` | `asus-zephyrus-ga401` |
| [Asus ROG Zephyrus G14 GA402](asus/zephyrus/ga402) | `<nixos-hardware/asus/zephyrus/ga402>` | `asus-zephyrus-ga402` |
| [Asus ROG Zephyrus G14 GA402X\* (2023)](asus/zephyrus/ga402x/amdgpu) | `<nixos-hardware/asus/zephyrus/ga402x/amdgpu>` | `asus-zephyrus-ga402x-amdgpu` |
| [Asus ROG Zephyrus G14 GA402X\* (2023)](asus/zephyrus/ga402x/nvidia) | `<nixos-hardware/asus/zephyrus/ga402x/nvidia>` | `asus-zephyrus-ga402x-nvidia` |
| [Asus ROG Zephyrus G15 GA502](asus/zephyrus/ga502) | `<nixos-hardware/asus/zephyrus/ga502>` | `asus-zephyrus-ga502` |
| [Asus ROG Zephyrus G15 GA503](asus/zephyrus/ga503) | `<nixos-hardware/asus/zephyrus/ga503>` | `asus-zephyrus-ga503` |
| [Asus ROG Zephyrus G16 GU605CW](asus/zephyrus/gu605cw) | `<nixos-hardware/asus/zephyrus/gu605cw>` | `asus-zephyrus-gu605cw` |
| [Asus ROG Zephyrus G16 GU605MY](asus/zephyrus/gu605my) | `<nixos-hardware/asus/zephyrus/gu605my>` | `asus-zephyrus-gu605my` |
| [Asus ROG Zephyrus M16 GU603H](asus/zephyrus/gu603h) | `<nixos-hardware/asus/zephyrus/gu603h>` | `asus-zephyrus-gu603h` |
| [Asus TUF FX504GD](asus/fx504gd) | `<nixos-hardware/asus/fx504gd>` | `asus-fx504gd` |
| [Asus TUF FX506HM](asus/fx506hm) | `<nixos-hardware/asus/fx506hm>` | `asus-fx506hm` |
| [Asus TUF FA506IC](asus/fa506ic) | `<nixos-hardware/asus/fa506ic>` | `asus-fa506ic` |
| [Asus TUF FA506IC](asus/fa506nc) | `<nixos-hardware/asus/fa506nc>` | `asus-fa506nc` |
| [Asus TUF FA507RM](asus/fa507rm) | `<nixos-hardware/asus/fa507rm>` | `asus-fa507rm` |
| [Asus TUF FA507NV](asus/fa507nv) | `<nixos-hardware/asus/fa507nv>` | `asus-fa507nv` |
| [Asus TUF FA706IC](asus/fa706ic) | `<nixos-hardware/asus/fa706ic>` | `asus-fa706ic` |
| [Asus Zenbook Duo 14 UX481](asus/zenbook/ux481/intelgpu/) | `<nixos-hardware/asus/zenbook/ux481/intelgpu>` | `asus-zenbook-ux481-intelgpu` |
| [Asus Zenbook Duo 14 UX481](asus/zenbook/ux481/nvidia/) | `<nixos-hardware/asus/zenbook/ux481/nvidia>` | `asus-zenbook-ux481-nvidia` |
| [Asus Zenbook Flip S13 UX371](asus/zenbook/ux371/) | `<nixos-hardware/asus/zenbook/ux371>` | `asus-zenbook-ux371` |
| [Asus Zenbook Pro 15 UX535](asus/zenbook/ux535/) | `<nixos-hardware/asus/zenbook/ux535>` | `asus-zenbook-ux535` |
| [Asus Zenbook Pro 17 UM6702](asus/zenbook/um6702/) | `<nixos-hardware/asus/zenbook/um6702>` | `asus-zenbook-um6702` |
| [Asrock Rack ALTRAD8UD-1L2T](asrock-rack/altrad8ud-1l2t) | `<nixos-hardware/asrock-rack/altrad8ud-1l2t>` | `asrock-rack-altrad8ud-1l2t` |
| [BeagleBoard PocketBeagle](beagleboard/pocketbeagle) | `<nixos-hardware/beagleboard/pocketbeagle>` | `beagleboard-pocketbeagle` |
| [Chuwi MiniBook X](chuwi/minibook-x) | `<nixos-hardware/chuwi/minibook-x>` | `chuwi-minibook-x` |
| [Deciso DEC series](deciso/dec) | `<nixos-hardware/deciso/dec>` | `deciso-dec` |
@@ -172,7 +157,6 @@ See code for all available configurations.
| [Dell Latitude 7490](dell/latitude/7490) | `<nixos-hardware/dell/latitude/7490>` | `dell-latitude-7490` |
| [Dell Latitude 9430](dell/latitude/9430) | `<nixos-hardware/dell/latitude/9430>` | `dell-latitude-9430` |
| [Dell Latitude E7240](dell/latitude/e7240) | `<nixos-hardware/dell/latitude/e7240>` | `dell-latitude-e7240` |
| [Dell Latitude E7440](dell/latitude/e7440) | `<nixos-hardware/dell/latitude/e7440>` | `dell-latitude-e7440` |
| [Dell Optiplex 3050](dell/optiplex/3050) | `<nixos-hardware/dell/optiplex/3050>` | `dell-optiplex-3050` |
| [Dell Poweredge R7515](dell/poweredge/r7515) | `<nixos-hardware/dell/poweredge/r7515>` | `dell-poweredge-r7515` |
| [Dell Precision 3490, nvidia](dell/precision/3490/nvidia) | `<nixos-hardware/dell/precision/3490/nvidia>` | `dell-precision-3490-nvidia` |
@@ -218,7 +202,6 @@ See code for all available configurations.
| [Framework 12th Gen Intel Core](framework/13-inch/12th-gen-intel) | `<nixos-hardware/framework/13-inch/12th-gen-intel>` | `framework-12th-gen-intel` |
| [Framework 13th Gen Intel Core](framework/13-inch/13th-gen-intel) | `<nixos-hardware/framework/13-inch/13th-gen-intel>` | `framework-13th-gen-intel` |
| [Framework Intel Core Ultra Series 1](framework/13-inch/intel-core-ultra-series1) | `<nixos-hardware/framework/13-inch/intel-core-ultra-series1>` | `framework-intel-core-ultra-series1` |
| [Framework Intel Core Ultra Series 3](framework/13-inch/intel-core-ultra-series3) | `<nixos-hardware/framework/13-inch/intel-core-ultra-series3>` | `framework-intel-core-ultra-series3` |
| [Framework 13 AMD Ryzen 7040 Series](framework/13-inch/7040-amd) | `<nixos-hardware/framework/13-inch/7040-amd>` | `framework-13-7040-amd` |
| [Framework 13 AMD AI 300 Series](framework/13-inch/amd-ai-300-series) | `<nixos-hardware/framework/13-inch/amd-ai-300-series>` | `framework-amd-ai-300-series` |
| [Framework 12 13th Gen Intel Core](framework/12-inch/13th-gen-intel) | `<nixos-hardware/framework/12-inch/13th-gen-intel>` | `framework-12-13th-gen-intel` |
@@ -239,15 +222,12 @@ See code for all available configurations.
| [GPD WIN Max 2 2023](gpd/win-max-2/2023) | `<nixos-hardware/gpd/win-max-2/2023>` | `gpd-win-max-2-2023` |
| [GPD WIN Mini 2024](gpd/win-mini/2024) | `<nixos-hardware/gpd/win-mini/2024>` | `gpd-win-mini-2024` |
| [Google Pixelbook](google/pixelbook) | `<nixos-hardware/google/pixelbook>` | `google-pixelbook` |
| [Google Brya](google/brya) | `<nixos-hardware/google/brya>` | `google-brya` |
| [Google Rex](google/rex) | `<nixos-hardware/google/rex>` | `google-rex` |
| [HP Elitebook 2560p](hp/elitebook/2560p) | `<nixos-hardware/hp/elitebook/2560p>` | `hp-elitebook-2560p` |
| [HP Elitebook 830g6](hp/elitebook/830/g6) | `<nixos-hardware/hp/elitebook/830/g6>` | `hp-elitebook-830g6` |
| [HP Elitebook 845g7](hp/elitebook/845/g7) | `<nixos-hardware/hp/elitebook/845/g7>` | `hp-elitebook-845g7` |
| [HP Elitebook 845g8](hp/elitebook/845/g8) | `<nixos-hardware/hp/elitebook/845/g8>` | `hp-elitebook-845g8` |
| [HP Elitebook 845g9](hp/elitebook/845/g9) | `<nixos-hardware/hp/elitebook/845/g9>` | `hp-elitebook-845g9` |
| [HP Laptop 14s-dq2024nf](hp/laptop/14s-dq2024nf) | `<nixos-hardware/hp/laptop/14s-dq2024nf>` | `hp-laptop-14s-dq2024nf` |
| [HP Laptop 15s-fq1xxx](hp/laptop/15s-fq1xxx) | `<nixos-hardware/hp/laptop/15s-fq1xxx>` | `hp-laptop-15s-fq1xxx` |
| [HP Notebook 14-df0023](hp/notebook/14-df0023) | `<nixos-hardware/hp/notebook/14-df0023>` | `hp-notebook-14-df0023` |
| [HP Probook 440G5](hp/probook/440G5) | `<nixos-hardware/hp/probook/440G5>` | `hp-probook-440G5` |
| [HP Laptop 14s-dq2024nf](hp/laptop/14s-dq2024nf) | `<nixos-hardware/hp/laptop/14s-dq2024nf>` | `hp-laptop-14s-dq2024nf` |
@@ -255,9 +235,7 @@ See code for all available configurations.
| [Huawei Matebook X Pro (2020)](huawei/machc-wa) | `<nixos-hardware/huawei/machc-wa>` | `huawei-machc-wa` |
| [i.MX8QuadMax Multisensory Enablement Kit](nxp/imx8qm-mek/) | `<nixos-hardware/nxp/imx8qm-mek>` | `nxp-imx8qm-mek` |
| [Intel NUC 5i5RYB](intel/nuc/5i5ryb/) | `<nixos-hardware/intel/nuc/5i5ryb>` | `intel-nuc-5i5ryb` |
| [Intel NUC 7i3BNB](intel/nuc/7i3bnb/) | `<nixos-hardware/intel/nuc/7i3bnb>` | `intel-nuc-7i3bnb` |
| [Intel NUC 8i7BEH](intel/nuc/8i7beh/) | `<nixos-hardware/intel/nuc/8i7beh>` | `intel-nuc-8i7beh` |
| [Intel NUC 12WSHi7](intel/nuc/12wshi7/) | `<nixos-hardware/intel/nuc/12wshi7>` | `intel-nuc-12wshi7` |
| [Kobol Helios4](kobol/helios4) | `<nixos-hardware/kobol/helios4>` | `kobol-helios-4` |
| [Lenovo IdeaCentre K330](lenovo/ideacentre/k330) | `<nixos-hardware/lenovo/ideacentre/k330>` | `lenovo-ideacentre-k330` |
| [Lenovo IdeaPad 3 15alc6](lenovo/ideapad/15alc6) | `<nixos-hardware/lenovo/ideapad/15alc6>` | `lenovo-ideapad-15alc6` |
@@ -285,7 +263,6 @@ See code for all available configurations.
| [Lenovo Legion 7 16achg6 (Nvidia)](lenovo/legion/16achg6/nvidia) | `<nixos-hardware/lenovo/legion/16achg6/nvidia>` | `lenovo-legion-16achg6-nvidia` |
| [Lenovo Legion 7i Pro 16irx8h (Intel)](lenovo/legion/16irx8h) | `<nixos-hardware/lenovo/legion/16irx8h>` | `lenovo-legion-16irx8h` |
| [Lenovo Legion 7 Pro 16irx9h (Intel)](lenovo/legion/16irx9h) | `<nixos-hardware/lenovo/legion/16irx9h>` | `lenovo-legion-16irx9h` |
| [Lenovo Legion Pro 7 16iax10h (Intel)](lenovo/legion/16iax10h) | `<nixos-hardware/lenovo/legion/16iax10h>` | `lenovo-legion-16iax10h` |
| [Lenovo Legion Slim 5](lenovo/legion/16aph8/) | `<nixos-hardware/lenovo/legion/16aph8>` | `lenovo-legion-16aph8` |
| [Lenovo Legion Slim 7 Gen 7 (AMD)](lenovo/legion/16arha7/) | `<nixos-hardware/lenovo/legion/16arha7>` | `lenovo-legion-16arha7` |
| [Lenovo Legion T5 AMR5](lenovo/legion/t526amr5) | `<nixos-hardware/lenovo/legion/t526amr5>` | `lenovo-legion-t526amr5` |
@@ -294,7 +271,6 @@ See code for all available configurations.
| [Lenovo ThinkPad E14 (AMD)](lenovo/thinkpad/e14/amd) | `<nixos-hardware/lenovo/thinkpad/e14/amd>` | `lenovo-thinkpad-e14-amd` |
| [Lenovo ThinkPad E14 (Intel - Gen 1)](lenovo/thinkpad/e14/intel) | `<nixos-hardware/lenovo/thinkpad/e14/intel>` | `lenovo-thinkpad-e14-intel` |
| [Lenovo ThinkPad E14 (Intel - Gen 4)](lenovo/thinkpad/e14/intel/gen4) | `<nixos-hardware/lenovo/thinkpad/e14/intel/gen4>` | `lenovo-thinkpad-e14-intel-gen4` |
| [Lenovo ThinkPad E14 (Intel - Gen 2)](lenovo/thinkpad/e14/intel/gen2) | `<nixos-hardware/lenovo/thinkpad/e14/intel/gen2>` | `lenovo-thinkpad-e14-intel-gen2` |
| [Lenovo ThinkPad E14 (Intel - Gen 6)](lenovo/thinkpad/e14/intel/gen6) | `<nixos-hardware/lenovo/thinkpad/e14/intel/gen6>` | `lenovo-thinkpad-e14-intel-gen6` |
| [Lenovo ThinkPad E15 (Intel)](lenovo/thinkpad/e15/intel) | `<nixos-hardware/lenovo/thinkpad/e15/intel>` | `lenovo-thinkpad-e15-intel` |
| [Lenovo ThinkPad E470](lenovo/thinkpad/e470) | `<nixos-hardware/lenovo/thinkpad/e470>` | `lenovo-thinkpad-e470` |
@@ -310,16 +286,13 @@ See code for all available configurations.
| [Lenovo ThinkPad P14s AMD Gen 3](lenovo/thinkpad/p14s/amd/gen3) | `<nixos-hardware/lenovo/thinkpad/p14s/amd/gen3>` | `lenovo-thinkpad-p14s-amd-gen3` |
| [Lenovo ThinkPad P14s AMD Gen 4](lenovo/thinkpad/p14s/amd/gen4) | `<nixos-hardware/lenovo/thinkpad/p14s/amd/gen4>` | `lenovo-thinkpad-p14s-amd-gen4` |
| [Lenovo ThinkPad P14s AMD Gen 5](lenovo/thinkpad/p14s/amd/gen5) | `<nixos-hardware/lenovo/thinkpad/p14s/amd/gen5>` | `lenovo-thinkpad-p14s-amd-gen5` |
| [Lenovo ThinkPad P14s AMD Gen 6](lenovo/thinkpad/p14s/amd/gen6) | `<nixos-hardware/lenovo/thinkpad/p14s/amd/gen6>` | `lenovo-thinkpad-p14s-amd-gen6` |
| [Lenovo ThinkPad P14s Intel Gen 2](lenovo/thinkpad/p14s/intel/gen2) | `<nixos-hardware/lenovo/thinkpad/p14s/intel/gen2>` | `lenovo-thinkpad-p14s-intel-gen2` |
| [Lenovo ThinkPad P14s Intel Gen 3](lenovo/thinkpad/p14s/intel/gen3) | `<nixos-hardware/lenovo/thinkpad/p14s/intel/gen3>` | `lenovo-thinkpad-p14s-intel-gen3` |
| [Lenovo ThinkPad P14s Intel Gen 5](lenovo/thinkpad/p14s/intel/gen5) | `<nixos-hardware/lenovo/thinkpad/p14s/intel/gen5>` | `lenovo-thinkpad-p14s-intel-gen5` |
| [Lenovo ThinkPad P15v Intel Gen 3](lenovo/thinkpad/p15v/intel/gen3) | `<nixos-hardware/lenovo/thinkpad/p15v/intel/gen3>` | `lenovo-thinkpad-p15v-intel-gen3` |
| [Lenovo ThinkPad P16s AMD Gen 1](lenovo/thinkpad/p16s/amd/gen1) | `<nixos-hardware/lenovo/thinkpad/p16s/amd/gen1>` | `lenovo-thinkpad-p16s-amd-gen1` |
| [Lenovo ThinkPad P16s AMD Gen 2](lenovo/thinkpad/p16s/amd/gen2) | `<nixos-hardware/lenovo/thinkpad/p16s/amd/gen2>` | `lenovo-thinkpad-p16s-amd-gen2` |
| [Lenovo ThinkPad P16s AMD Gen 4](lenovo/thinkpad/p16s/amd/gen4) | `<nixos-hardware/lenovo/thinkpad/p16s/amd/gen4>` | `lenovo-thinkpad-p16s-amd-gen4` |
| [Lenovo ThinkPad P16s Intel Gen 2](lenovo/thinkpad/p16s/intel/gen2) | `<nixos-hardware/lenovo/thinkpad/p16s/intel/gen2>` | `lenovo-thinkpad-p16s-intel-gen2` |
| [Lenovo ThinkPad P16s Intel Gen 3](lenovo/thinkpad/p16s/intel/gen3) | `<nixos-hardware/lenovo/thinkpad/p16s/intel/gen3>` | `lenovo-thinkpad-p16s-intel-gen3` |
| [Lenovo ThinkPad P1](lenovo/thinkpad/p1) | `<nixos-hardware/lenovo/thinkpad/p1>` | `lenovo-thinkpad-p1` |
| [Lenovo ThinkPad P43s](lenovo/thinkpad/p43s) | `<nixos-hardware/lenovo/thinkpad/p43s>` | `lenovo-thinkpad-p43s` |
| [Lenovo ThinkPad P50](lenovo/thinkpad/p50) | `<nixos-hardware/lenovo/thinkpad/p50>` | `lenovo-thinkpad-p50` |
@@ -404,8 +377,6 @@ See code for all available configurations.
| [MSI GS60 2QE](msi/gs60) | `<nixos-hardware/msi/gs60>` | `msi-gs60` |
| [MSI GL62/CX62](msi/gl62) | `<nixos-hardware/msi/gl62>` | `msi-gl62` |
| [MSI GL65 10SDR-492](msi/gl65/10SDR-492) | `<nixos-hardware/msi/gl65/10SDR-492>` | `msi-gl65-10SDR-492` |
| [MSI Prestige 15 A10SC](msi/prestige/15-a10sc) | `<nixos-hardware/msi/prestige/15-a10sc>` | `msi-prestige-15-a10sc` |
| [MSI Z370 PC PRO](msi/z370-pc-pro) | `<nixos-hardware/msi/z370-pc-pro>` | `msi-z370-pc-pro` |
| [Malibal Aon S1](malibal/aon/s1) | | `<nixos-hardware/malibal/aon/s1>` | `malibal-aon-s1` |
| [Microchip Icicle Kit](microchip/icicle-kit) | `<nixos-hardware/microchip/icicle-kit>` | `microchip-icicle-kit` |
| [Microsoft Surface Go](microsoft/surface/surface-go) | `<nixos-hardware/microsoft/surface/surface-go>` | `microsoft-surface-go` |
@@ -416,9 +387,6 @@ See code for all available configurations.
| [Microsoft Surface Pro 9](microsoft/surface-pro/9) | `<nixos-hardware/microsoft/surface-pro/9>` | `microsoft-surface-pro-9` |
| [Milk-V Pioneer](milkv/pioneer) | `<nixos-hardware/milkv/pioneer>` | `milkv-pioneer` |
| [Morefine M600](morefine/m600) | `<nixos-hardware/morefine/m600>` | `morefine-m600` |
| [Minisforum UM690](minisforum/um690) | `<nixos-hardware/minisforum/um690>` | `minisforum-um690` |
| [Minisforum UM690S](minisforum/um690s) | `<nixos-hardware/minisforum/um690s>` | `minisforum-um690s` |
| [Minisforum UM790 Pro](minisforum/um790-pro) | `<nixos-hardware/minisforum/um790-pro>` | `minisforum-um790-pro` |
| [Minisforum V3](minisforum/v3) | `<nixos-hardware/minisforum/v3>` | `minisforum-v3` |
| [MNT Reform with RK3588 module](mnt/reform/rk3588) | `<nixos-hardware/mnt/reform/rk3588` | `mnt-reform-rk3588` |
| [MECHREVO Yilong15Pro](mechrevo/GM5HG0A) | `<nixos-hardware/mechrevo/GM5HG0A>` | `mechrevo-gm5hg0a` |
@@ -427,7 +395,6 @@ See code for all available configurations.
| [Hardkernel Odroid HC4](hardkernel/odroid-hc4/default.nix) | `<nixos-hardware/hardkernel/odroid-hc4>` | `hardkernel-odroid-hc4` |
| [Hardkernel Odroid H3](hardkernel/odroid-h3/default.nix) | `<nixos-hardware/hardkernel/odroid-h3>` | `hardkernel-odroid-h3` |
| [Hardkernel Odroid H4](hardkernel/odroid-h4/default.nix) | `<nixos-hardware/hardkernel/odroid-h4>` | `hardkernel-odroid-h4` |
| [Hardkernel Odroid M1](hardkernel/odroid-m1/default.nix) | `<nixos-hardware/hardkernel/odroid-m1>` | `hardkernel-odroid-m1` |
| [Olimex TERES-I](olimex/teres_i) | `<nixos-hardware/olimex/teres_i>` | `olimex-teres_i` |
| [Omen 14-fb0798ng](omen/14-fb0798ng) | `<nixos-hardware/omen/14-fb0798ng>` | `omen-14-fb0798ng` |
| [Omen 15-ce002ns](omen/15-ce002ns) | `<nixos-hardware/omen/15-ce002ns>` | `omen-15-ce002ns` |
@@ -447,12 +414,10 @@ See code for all available configurations.
| [Purism Librem 13v3](purism/librem/13v3) | `<nixos-hardware/purism/librem/13v3>` | `purism-librem-13v3` |
| [Purism Librem 15v3](purism/librem/15v3) | `<nixos-hardware/purism/librem/15v3>` | `purism-librem-15v3` |
| [Purism Librem 5r4](purism/librem/5r4) | `<nixos-hardware/purism/librem/5r4>` | `purism-librem-5r4` |
| [Radxa ROCK 3C](radxa/rock-3c) | `<nixos-hardware/radxa/rock-3c>` | `radxa-rock-3c` |
| [Radxa ROCK 4C+](radxa/rock-4c-plus) | `<nixos-hardware/radxa/rock-4c-plus>` | `rock-4c-plus` |
| [Radxa ROCK 5 Model B](radxa/rock-5b) | `<nixos-hardware/radxa/rock-5b>` | `rock-5b` |
| [Radxa ROCK Pi 4](radxa/rock-pi-4) | `<nixos-hardware/radxa/rock-pi-4>` | `rock-pi-4` |
| [Radxa ROCK Pi E](radxa/rock-pi-e) | `<nixos-hardware/radxa/rock-pi-e>` | `rock-pi-e` |
| [Razer Blade 14 (RZ09-0530)](razer/blade/14/RZ09-0530) | `<nixos-hardware/razer/blade/14/RZ09-0530>` | `razer-blade-14-RZ09-0530` |
| [Raspberry Pi 2](raspberry-pi/2) | `<nixos-hardware/raspberry-pi/2>` | `raspberry-pi-2` |
| [Raspberry Pi 3](raspberry-pi/3) | `<nixos-hardware/raspberry-pi/3>` | `raspberry-pi-3` |
| [Raspberry Pi 4](raspberry-pi/4) | `<nixos-hardware/raspberry-pi/4>` | `raspberry-pi-4` |
@@ -469,7 +434,6 @@ See code for all available configurations.
| [System76 (generic)](system76) | `<nixos-hardware/system76>` | `system76` |
| [System76 Darter Pro 6](system76/darp6) | `<nixos-hardware/system76/darp6>` | `system76-darp6` |
| [System76 Gazelle 18](system76/gaze18) | `<nixos-hardware/system76/gaze18>` | `system76-gaze18` |
| [System76 Galago Pro 3](system76/galp3) | `<nixos-hardware/system76/galp3>` | `system76-galp3` |
| [System76 Galago Pro 5](system76/galp5-1650) | `<nixos-hardware/system76/galp5-1650>` | `system76-galp5-1650` |
| [System76 Thelio Mega](system76/thelio-mega) | `<nixos-hardware/system76/thelio-mega>` | `system76-thelio-mega` |
| [Toshiba Chromebook 2 `swanky`](toshiba/swanky) | `<nixos-hardware/toshiba/swanky>` | `toshiba-swanky` |
@@ -478,9 +442,6 @@ See code for all available configurations.
| [TUXEDO InfinityBook Pro 14 - Gen7](tuxedo/infinitybook/pro14/gen7) | `<nixos-hardware/tuxedo/infinitybook/pro14/gen7>` | `tuxedo-infinitybook-pro14-gen7` |
| [TUXEDO InfinityBook Pro 14 - Gen9 - AMD](tuxedo/infinitybook/pro14/gen9/amd) | `<nixos-hardware/tuxedo/infinitybook/pro14/gen9/amd>` | `tuxedo-infinitybook-pro14-gen9-amd` |
| [TUXEDO InfinityBook Pro 14 - Gen9 - INTEL](tuxedo/infinitybook/pro14/gen9/intel) | `<nixos-hardware/tuxedo/infinitybook/pro14/gen9/intel>` | `tuxedo-infinitybook-pro14-gen9-intel` |
| [TUXEDO InfinityBook Pro 14 - Gen10 - AMD](tuxedo/infinitybook/pro14/gen10/amd) | `<nixos-hardware/tuxedo/infinitybook/pro14/gen10/amd>` | `tuxedo-infinitybook-pro14-gen10-amd` |
| [TUXEDO InfinityBook Pro 15 - Gen10 - AMD](tuxedo/infinitybook/pro15/gen10/amd) | `<nixos-hardware/tuxedo/infinitybook/pro15/gen10/amd>` | `tuxedo-infinitybook-pro15-gen10-amd` |
| [TUXEDO InfinityBook Pro 15 - Gen10 - INTEL](tuxedo/infinitybook/pro15/gen10/intel)| `<nixos-hardware/tuxedo/infinitybook/pro15/gen10/intel>`| `tuxedo-infinitybook-pro15-gen10-intel`|
| [TUXEDO Pulse 14 - Gen3](tuxedo/pulse/14/gen3) | `<nixos-hardware/tuxedo/pulse/14/gen3>` | `tuxedo-pulse-14-gen3` |
| [TUXEDO Pulse 15 - Gen2](tuxedo/pulse/15/gen2) | `<nixos-hardware/tuxedo/pulse/15/gen2>` | `tuxedo-pulse-15-gen2` |
| [Xiaomi Redmibook 15 Pro 2021](xiaomi/redmibook/15-pro-2021) | `<nixos-hardware/xiaomi/redmibook/15-pro-2021>` | `xiaomi-redmibook-15-pro-2021` |
@@ -1,7 +0,0 @@
# Acer Predator Helios 300 (PH315-51)
## Hardware Configuration:
- Intel Core i5 (8th Gen) 8300H / 2.3 GHz
- NVIDIA GeForce GTX 1050 Ti
- 128GB SSD + 1TB HDD
@@ -1,27 +0,0 @@
{
lib,
...
}:
let
inherit (lib) mkDefault;
in
{
imports = [
../../../../../common/pc/laptop
../../../../../common/cpu/intel/coffee-lake
../../../../../common/gpu/nvidia/pascal
];
hardware = {
nvidia = {
modesetting.enable = mkDefault true;
powerManagement.enable = mkDefault true;
prime = {
sync.enable = mkDefault true;
intelBusId = "PCI:0@0:2:0";
nvidiaBusId = "PCI:1@0:0:0";
};
};
};
}
-72
View File
@@ -1,72 +0,0 @@
# iMac 12,2, NixOS 25.11 (February 2025)
## Audio
- [x] ok
## Bluetooth
- [x] ok
## Camera
- [x] ok
Observed issues with the GNOME tooling. `vlc` and `guvcview` woth work fine.
## Thunderbolt
- [ ] Untested
## SATA
- [x] ok
## Suspend/Resume
- [ ] Untested
## WiFi
- [x] ok
## Graphics
- [x] ok
The Radeon HD 6000 series (Northern Islands) does not support `amdgpu`.
This profile uses the `radeon` driver with DPM (Dynamic Power Management)
disabled to prevent boot hangs.
## LSPCI
```
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
00:02.0 Display controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Universal Host Controller #5 (rev 05)
00:1a.7 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)
00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b5)
00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 (rev b5)
00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 (rev b5)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Universal Host Controller #1 (rev 05)
00:1d.7 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation Z68 Express Chipset LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port Desktop SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Whistler [Radeon HD 6730M/6770M/7690M XT]
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Turks HDMI Audio [Radeon HD 6500/6600 / 6700M Series]
02:00.0 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM57765 Gigabit Ethernet PCIe (rev 10)
03:00.0 Network controller: Qualcomm Atheros AR93xx Wireless Network Adapter (rev 01)
04:00.0 FireWire (IEEE 1394): LSI Corporation FW643 [TrueFire] PCIe 1394b Controller (rev 08)
05:00.0 PCI bridge: Intel Corporation CV82524 Thunderbolt Controller [Light Ridge 4C 2010]
06:00.0 PCI bridge: Intel Corporation CV82524 Thunderbolt Controller [Light Ridge 4C 2010]
06:03.0 PCI bridge: Intel Corporation CV82524 Thunderbolt Controller [Light Ridge 4C 2010]
06:04.0 PCI bridge: Intel Corporation CV82524 Thunderbolt Controller [Light Ridge 4C 2010]
06:05.0 PCI bridge: Intel Corporation CV82524 Thunderbolt Controller [Light Ridge 4C 2010]
06:06.0 PCI bridge: Intel Corporation CV82524 Thunderbolt Controller [Light Ridge 4C 2010]
07:00.0 System peripheral: Intel Corporation CV82524 Thunderbolt Controller [Light Ridge 4C 2010]
```
-14
View File
@@ -1,14 +0,0 @@
{
lib,
...
}:
{
imports = [
../.
];
# AMD Radeon HD 6770M/6970M (Whistler/Turks, Northern Islands generation)
# DPM (Dynamic Power Management) did cause boot hangs
boot.kernelParams = [ "radeon.dpm=0" ];
}
+1
View File
@@ -4,6 +4,7 @@
imports = [
../.
../../../common/pc/ssd
../../../common/gpu/24.05-compat.nix
../../../common/gpu/nvidia/kepler
];
+1
View File
@@ -8,6 +8,7 @@ in
{
imports = [
../.
../../../common/gpu/24.05-compat.nix
];
services.xserver.videoDrivers = mkDefault [ "nvidiaLegacy340" ];
+13 -5
View File
@@ -7,6 +7,7 @@
let
inherit (lib) types;
nixosVersion = lib.versions.majorMinor lib.version;
audioFiles = pkgs.fetchFromGitHub {
owner = "kekrby";
@@ -89,11 +90,11 @@ in
services.udev.packages = [ audioFilesUdevRules ];
# For audio and suspend
# For audio
boot.kernelParams = [
"pcie_ports=compat"
"intel_iommu=on"
"iommu=pt"
"pm_async=off"
];
services.pipewire.package = pipewirePackage;
@@ -105,9 +106,16 @@ in
powerManagement.enable = true;
}
{
services.pulseaudio.package = overrideAudioFiles pkgs.pulseaudio "src/modules/";
}
(
if lib.versionAtLeast nixosVersion "25.05" then
{
services.pulseaudio.package = overrideAudioFiles pkgs.pulseaudio "src/modules/";
}
else
{
hardware.pulseaudio.package = overrideAudioFiles pkgs.pulseaudio "src/modules/";
}
)
(lib.mkIf t2Cfg.enableIGPU {
# Enable the iGPU by default if present
@@ -1,5 +1,7 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
callPackage,
dmg2img,
}:
+2 -2
View File
@@ -1,6 +1,6 @@
{ callPackage, linux_6_18, ... }@args:
{ callPackage, linux_6_12, ... }@args:
callPackage ./generic.nix args {
kernel = linux_6_18;
kernel = linux_6_12;
patchesFile = ./stable.json;
}
+47 -15
View File
@@ -1,21 +1,49 @@
{
"base_url": "https://raw.githubusercontent.com/t2linux/linux-t2-patches/7ee7d19c38e5df31a386b2a0c35ca8f064003960/",
"base_url": "https://raw.githubusercontent.com/t2linux/linux-t2-patches/6b41c3fd65913e0fa3592ad16ff4a3a5b01efc7a/",
"patches": [
{
"name": "1001-Add-apple-bce-driver.patch",
"hash": "sha256-v/P3Ws3x+OPnmX3vSFLxARON0HNjjDRe7QJ+KP9tVsc="
"hash": "sha256-00K3LmId2Ag6s5K76p7mB2a0oEXp815yRd+U5wxWPMc="
},
{
"name": "1002-Put-apple-bce-in-drivers-staging.patch",
"hash": "sha256-rK1lQ3fjHJH//50n37xgWrUs4CZ8lmFw0iDpbq5zoaY="
"hash": "sha256-wkveNo1qwAwXWDGTFed4ZDbuBnJbwKgWLmTHK9qq0oM="
},
{
"name": "1003-Fix-sparse-errors.patch",
"hash": "sha256-nuCOPWa4Hp+HCCBe6Y++M4g1k4plOWzy2hqHXlJbp9g="
},
{
"name": "1004-Fix-freezing-on-turning-off-camera.patch",
"hash": "sha256-rFrSUhiNXgQbfgKjryJktYxYcchXE1PI49Q1gW001+0="
},
{
"name": "1007-HID-multitouch-Get-the-contact-ID-from-HID_DG_TRANSD.patch",
"hash": "sha256-JF5PjByo4S1Rd/B5luAzOXDv+iakCnJfmujIQuUiT1A="
},
{
"name": "1008-HID-multitouch-support-getting-the-tip-state-from-HI.patch",
"hash": "sha256-m/NAKoHRC/HwxG5fFZxFl6DtY4Xv8kPBWvdKdtadrrk="
},
{
"name": "1009-HID-multitouch-take-cls-maxcontacts-into-account-for.patch",
"hash": "sha256-h6jk9yw/4txd8PATpMxB9mIzik9+X1zP6p4K35AqdXw="
},
{
"name": "1010-HID-multitouch-specify-that-Apple-Touch-Bar-is-direc.patch",
"hash": "sha256-5PbLynVnQqlJKPTWhcmwXCkYDEopLBQWnxWvZUt0EN4="
},
{
"name": "1011-HID-multitouch-add-device-ID-for-Apple-Touch-Bar.patch",
"hash": "sha256-dIzEOj89D2rIEc2/mjq3TkIfI3ZHzu0VRDQQOzp+Snc="
},
{
"name": "2008-i915-4-lane-quirk-for-mbp15-1.patch",
"hash": "sha256-S2osR1aSjqJiO7rNZP1sKt2+Uxyitwse/6BXMJvE9as="
"hash": "sha256-PjMVt4u505PXnKFpojov0Uwhj0KxZas1E4NYJGI6lQ4="
},
{
"name": "2009-apple-gmux-allow-switching-to-igpu-at-probe.patch",
"hash": "sha256-6i+fh/Ifle0di5/tMOdMm0NMkEmeUb17hYM/g2j2dfI="
"hash": "sha256-aE+MEu/jRrZBa+3Q03quOHUsIseRED6A7N/K9kEVtbM="
},
{
"name": "3001-applesmc-convert-static-structures-to-drvdata.patch",
@@ -35,7 +63,7 @@
},
{
"name": "3005-applesmc-basic-mmio-interface-implementation.patch",
"hash": "sha256-tnpfmZQw9KQNylpLfGZ+X0IVP79AgeDoTVYF6yUhCRI="
"hash": "sha256-Hh9DymQ+Y74oSs1zv9F0lTU3jfAenKTM+cmFH9tmN9Q="
},
{
"name": "3006-applesmc-fan-support-on-T2-Macs.patch",
@@ -55,23 +83,27 @@
},
{
"name": "4001-asahi-trackpad.patch",
"hash": "sha256-ANHSNoy5nK2b+rSAG0bJ8j6ZBmNqgeCddHXVS31KyDw="
"hash": "sha256-nOpQ3t+QQXco6p7C03fM5EZ3ZfnzwC6UCFwHQd1EnGE="
},
{
"name": "4002-HID-quirks-remove-T2-devices-from-hid_mouse_ignore_l.patch",
"hash": "sha256-0PMCE3IWHekir5YV1BD6Jakc7dOV6Fj2HfIGWZnXZV0="
},
{
"name": "4003-HID-apple-ignore-the-trackpad-on-T2-Macs.patch",
"hash": "sha256-T2tYcFLeWUdx6QawANe3ZNVSRxmo1IdPiSpGLQk4IDY="
"hash": "sha256-JTeYtaBqMyTu5IdGb8x7wbP9ZE1rXT4lpEjudR1ySFI="
},
{
"name": "4004-HID-magicmouse-Add-support-for-trackpads-found-on-T2.patch",
"hash": "sha256-ubchCEv1BZ7t/zkI9DpHA4gUln9cdu4yHzVJI2TNlS0="
"hash": "sha256-dNrpDlIE9SaQUOntVQHMOyj7T/dsuRemN56yskKWue0="
},
{
"name": "4005-HID-magicmouse-fix-regression-breaking-support-for-M.patch",
"hash": "sha256-oT+3AeETnKfzblxtcTD18c61BKoD9yAsga0AL3R8u7k="
"name": "4005-HID-apple-Add-necessary-IDs-and-support-for-replacem.patch",
"hash": "sha256-SRKESCbpxSYm7U0VyCmvkmT/er6/GEHhwo8tgJDO6mQ="
},
{
"name": "5001-HID-appletb-kbd-add-option-to-switch-default-layer-o.patch",
"hash": "sha256-KV5DTjALzNugs92Jum6VUt0wgblK/6PG1KorovHcIX0="
"name": "4006-HID-magicmouse-Add-MacBookPro15-1-replacement-trackp.patch",
"hash": "sha256-mMqHhxig+Z9eVPaa1qfcNVCRX16B6/KuEd1KnSZMLLk="
},
{
"name": "7001-drm-i915-fbdev-Discard-BIOS-framebuffers-exceeding-h.patch",
@@ -79,11 +111,11 @@
},
{
"name": "8001-Add-APFS-driver.patch",
"hash": "sha256-EbIbfkncp5Jax2suny/jlFt+cD9MyYMV2rWFJIbgbg4="
"hash": "sha256-uR5hg75SFFWzfrKyU5UnzPL4U7LkjqGs44rkxM7ur8o="
},
{
"name": "8002-Necessary-modifications-to-build-APFS-with-the-kerne.patch",
"hash": "sha256-zCTetF2NPhMH2BknPumhPz2sf26X9Lcra7xCA3R2WMY="
"hash": "sha256-n1SH5vC//LRJdWOavH9/BHqBTjkUj5f+dFGitSeHksw="
}
]
}
+2 -2
View File
@@ -1,6 +1,6 @@
{ callPackage, linux_7_0, ... }@args:
{ callPackage, linux_6_16, ... }@args:
callPackage ./generic.nix args {
kernel = linux_7_0;
kernel = linux_6_16;
patchesFile = ./latest.json;
}
+64 -16
View File
@@ -1,21 +1,65 @@
{
"base_url": "https://raw.githubusercontent.com/t2linux/linux-t2-patches/facf1c778667c3ef62104949ef64c75ce7e43b0a/",
"base_url": "https://raw.githubusercontent.com/t2linux/linux-t2-patches/5eaf1261d069bbc67aba7fe2737a5fe981e05a9e/",
"patches": [
{
"name": "1001-Add-apple-bce-driver.patch",
"hash": "sha256-rrL3oVkYeq5ZslnjCQw4hcEK6knsm6U/wp1XnJmQTSA="
"hash": "sha256-e3RPvWPj2QASGOS4kieO8YFekrXsBCJtfF82OPlOn2E="
},
{
"name": "1002-Put-apple-bce-in-drivers-staging.patch",
"hash": "sha256-deWROYcncl51sOmtvUHM61e5FM1beHbOJVp4iI31LHM="
"hash": "sha256-DXj4CmE7TKMGrAhQDOR5RVw9YHmyQMiXZsmxYfkKAEA="
},
{
"name": "1003-Fix-sparse-errors.patch",
"hash": "sha256-nuCOPWa4Hp+HCCBe6Y++M4g1k4plOWzy2hqHXlJbp9g="
},
{
"name": "1004-Fix-freezing-on-turning-off-camera.patch",
"hash": "sha256-rFrSUhiNXgQbfgKjryJktYxYcchXE1PI49Q1gW001+0="
},
{
"name": "1005-HID-hid-appletb-bl-add-driver-for-the-backlight-of-A.patch",
"hash": "sha256-kEscS1FAyDxLZPOPInYTXFEf4fouBEa4zGctX14hSu8="
},
{
"name": "1006-HID-hid-appletb-kbd-add-driver-for-the-keyboard-mode.patch",
"hash": "sha256-eVEuvnoRItaDjwWu41nn9bTkgHgY+1SL/hFAvUR2IlY="
},
{
"name": "1007-HID-multitouch-Get-the-contact-ID-from-HID_DG_TRANSD.patch",
"hash": "sha256-JF5PjByo4S1Rd/B5luAzOXDv+iakCnJfmujIQuUiT1A="
},
{
"name": "1008-HID-multitouch-support-getting-the-tip-state-from-HI.patch",
"hash": "sha256-m/NAKoHRC/HwxG5fFZxFl6DtY4Xv8kPBWvdKdtadrrk="
},
{
"name": "1009-HID-multitouch-take-cls-maxcontacts-into-account-for.patch",
"hash": "sha256-h6jk9yw/4txd8PATpMxB9mIzik9+X1zP6p4K35AqdXw="
},
{
"name": "1010-HID-multitouch-specify-that-Apple-Touch-Bar-is-direc.patch",
"hash": "sha256-5PbLynVnQqlJKPTWhcmwXCkYDEopLBQWnxWvZUt0EN4="
},
{
"name": "1011-HID-multitouch-add-device-ID-for-Apple-Touch-Bar.patch",
"hash": "sha256-dIzEOj89D2rIEc2/mjq3TkIfI3ZHzu0VRDQQOzp+Snc="
},
{
"name": "1013-lib-vsprintf-Add-support-for-generic-FourCCs-by-exte.patch",
"hash": "sha256-h3gxaKtvdm/GSd+AP1sPC9avWHOsceUxTmoua/3rIf4="
},
{
"name": "1015-drm-tiny-add-driver-for-Apple-Touch-Bars-in-x86-Macs.patch",
"hash": "sha256-tDjK/VipVQbuNOURW38gssqeRLy3s8I+DVq0+4zGnHs="
},
{
"name": "2008-i915-4-lane-quirk-for-mbp15-1.patch",
"hash": "sha256-S2osR1aSjqJiO7rNZP1sKt2+Uxyitwse/6BXMJvE9as="
"hash": "sha256-lZ7MWXZubmAlJCqBmuzueg7agENJbikxP1SE46SmwNw="
},
{
"name": "2009-apple-gmux-allow-switching-to-igpu-at-probe.patch",
"hash": "sha256-6i+fh/Ifle0di5/tMOdMm0NMkEmeUb17hYM/g2j2dfI="
"hash": "sha256-XKwlyJZjJLQz39mc0/S7sPnRnwrqMsq9OKy+QCO+oho="
},
{
"name": "3001-applesmc-convert-static-structures-to-drvdata.patch",
@@ -35,7 +79,7 @@
},
{
"name": "3005-applesmc-basic-mmio-interface-implementation.patch",
"hash": "sha256-tnpfmZQw9KQNylpLfGZ+X0IVP79AgeDoTVYF6yUhCRI="
"hash": "sha256-Hh9DymQ+Y74oSs1zv9F0lTU3jfAenKTM+cmFH9tmN9Q="
},
{
"name": "3006-applesmc-fan-support-on-T2-Macs.patch",
@@ -55,35 +99,39 @@
},
{
"name": "4001-asahi-trackpad.patch",
"hash": "sha256-+YXyIjtlVrLo8allTO3M1A+xold5FUXaZ8dwD2j5HDc="
"hash": "sha256-kfAYVovukZLD5ocHQxhoHJSa9c5XAJ1GhH1RlzGkS+k="
},
{
"name": "4002-HID-quirks-remove-T2-devices-from-hid_mouse_ignore_l.patch",
"hash": "sha256-0PMCE3IWHekir5YV1BD6Jakc7dOV6Fj2HfIGWZnXZV0="
},
{
"name": "4003-HID-apple-ignore-the-trackpad-on-T2-Macs.patch",
"hash": "sha256-T2tYcFLeWUdx6QawANe3ZNVSRxmo1IdPiSpGLQk4IDY="
"hash": "sha256-JTeYtaBqMyTu5IdGb8x7wbP9ZE1rXT4lpEjudR1ySFI="
},
{
"name": "4004-HID-magicmouse-Add-support-for-trackpads-found-on-T2.patch",
"hash": "sha256-ubchCEv1BZ7t/zkI9DpHA4gUln9cdu4yHzVJI2TNlS0="
"hash": "sha256-HcPX7gY3hnlwM/tY06pbtXnch04AqwHgC596E8ZqGY8="
},
{
"name": "4005-HID-magicmouse-fix-regression-breaking-support-for-M.patch",
"hash": "sha256-oT+3AeETnKfzblxtcTD18c61BKoD9yAsga0AL3R8u7k="
"name": "4005-HID-apple-Add-necessary-IDs-and-support-for-replacem.patch",
"hash": "sha256-SRKESCbpxSYm7U0VyCmvkmT/er6/GEHhwo8tgJDO6mQ="
},
{
"name": "5001-HID-appletb-kbd-add-option-to-switch-default-layer-o.patch",
"hash": "sha256-KV5DTjALzNugs92Jum6VUt0wgblK/6PG1KorovHcIX0="
"name": "4006-HID-magicmouse-Add-MacBookPro15-1-replacement-trackp.patch",
"hash": "sha256-uAlT/4ADwYyKvbuPQaGwqCjZ2/myruC63etVV6cfFLk="
},
{
"name": "7001-drm-i915-fbdev-Discard-BIOS-framebuffers-exceeding-h.patch",
"hash": "sha256-/EKN7JsAxcpAgfJFtPp2NLYaGqQ0kl8wjJEXifSzJpY="
"hash": "sha256-O6RHFxmKZn7aCq1D+r5z2T3jLt0r5+01EABD9rs0E5M="
},
{
"name": "8001-Add-APFS-driver.patch",
"hash": "sha256-2By3Zlg/i5rUUJDlWc6JoiqapUnbVplk2lHzDhvAhzI="
"hash": "sha256-QpIPsMjWNPOkw6rSKn7rW0Fmx9HUwJaiGy3pZeT5Fd0="
},
{
"name": "8002-Necessary-modifications-to-build-APFS-with-the-kerne.patch",
"hash": "sha256-zCTetF2NPhMH2BknPumhPz2sf26X9Lcra7xCA3R2WMY="
"hash": "sha256-n1SH5vC//LRJdWOavH9/BHqBTjkUj5f+dFGitSeHksw="
}
]
}
-44
View File
@@ -1,44 +0,0 @@
# ASRock Rack ALTRAD8UD-1L2T
This is a popular motherboard for the [Ampere Altra](https://amperecomputing.com/briefs/ampere-altra-family-product-brief) family of CPUs.
It is used in for example the [System76 Thelio Astra](https://system76.com/desktops/thelio-astra-a1.1-n1/configure)
```shellsession
$ pciutils -nn
0000:00:00.0 Host bridge [0600]: Ampere Computing, LLC Altra PCI Express Root Complex A [1def:e100]
0000:00:01.0 PCI bridge [0604]: Ampere Computing, LLC Altra PCI Express Root Port a0 [1def:e101] (rev 04)
0001:00:00.0 Host bridge [0600]: Ampere Computing, LLC Altra PCI Express Root Complex A [1def:e100]
0001:00:01.0 PCI bridge [0604]: Ampere Computing, LLC Altra PCI Express Root Port a0 [1def:e101] (rev 04)
0002:00:00.0 Host bridge [0600]: Ampere Computing, LLC Altra PCI Express Root Complex A [1def:e100]
0002:00:01.0 PCI bridge [0604]: Ampere Computing, LLC Altra PCI Express Root Port a0 [1def:e101] (rev 04)
0002:00:02.0 PCI bridge [0604]: Ampere Computing, LLC Altra PCI Express Root Port a1 [1def:e102] (rev 04)
0002:00:03.0 PCI bridge [0604]: Ampere Computing, LLC Altra PCI Express Root Port a2 [1def:e103] (rev 04)
0002:00:04.0 PCI bridge [0604]: Ampere Computing, LLC Altra PCI Express Root Port a3 [1def:e104] (rev 04)
0002:01:00.0 Non-Volatile memory controller [0108]: Sandisk Corp WD Black SN850X NVMe SSD [15b7:5030] (rev 01)
0003:00:00.0 Host bridge [0600]: Ampere Computing, LLC Altra PCI Express Root Complex A [1def:e100]
0003:00:01.0 PCI bridge [0604]: Ampere Computing, LLC Altra PCI Express Root Port a0 [1def:e101] (rev 04)
0003:00:02.0 PCI bridge [0604]: Ampere Computing, LLC Altra PCI Express Root Port a1 [1def:e102] (rev 04)
0003:00:03.0 PCI bridge [0604]: Ampere Computing, LLC Altra PCI Express Root Port a2 [1def:e103] (rev 04)
0003:00:04.0 PCI bridge [0604]: Ampere Computing, LLC Altra PCI Express Root Port a3 [1def:e104] (rev 04)
0003:01:00.0 PCI bridge [0604]: ASRock Incorporation Device [1849:1150] (rev 04)
0003:02:00.0 VGA compatible controller [0300]: ASPEED Technology, Inc. ASPEED Graphics Family [1a03:2000] (rev 41)
0003:03:00.0 Ethernet controller [0200]: Intel Corporation Ethernet Controller X550 [8086:1563] (rev 01)
0003:03:00.1 Ethernet controller [0200]: Intel Corporation Ethernet Controller X550 [8086:1563] (rev 01)
0003:04:00.0 USB controller [0c03]: ASMedia Technology Inc. ASM3042 USB 3.2 Gen 1 xHCI Controller [1b21:3042]
0003:05:00.0 Ethernet controller [0200]: Intel Corporation I210 Gigabit Network Connection [8086:1533] (rev 03)
0004:00:00.0 Host bridge [0600]: Ampere Computing, LLC Altra PCI Express Root Complex A [1def:e100]
0004:00:01.0 PCI bridge [0604]: Ampere Computing, LLC Altra PCI Express Root Port a0 [1def:e101] (rev 04)
0005:00:00.0 Host bridge [0600]: Ampere Computing, LLC Altra PCI Express Root Complex A [1def:e100]
0005:00:01.0 PCI bridge [0604]: Ampere Computing, LLC Altra PCI Express Root Port a0 [1def:e101] (rev 04)
000c:00:00.0 Host bridge [0600]: Ampere Computing, LLC Altra PCI Express Root Complex A [1def:e100]
000c:00:01.0 PCI bridge [0604]: Ampere Computing, LLC Altra PCI Express Root Port a0 [1def:e101] (rev 04)
000c:00:02.0 PCI bridge [0604]: Ampere Computing, LLC Altra PCI Express Root Port a1 [1def:e102] (rev 04)
000c:00:03.0 PCI bridge [0604]: Ampere Computing, LLC Altra PCI Express Root Port a2 [1def:e103] (rev 04)
000c:00:04.0 PCI bridge [0604]: Ampere Computing, LLC Altra PCI Express Root Port a3 [1def:e104] (rev 04)
000d:00:00.0 Host bridge [0600]: Ampere Computing, LLC Altra PCI Express Root Complex A [1def:e100]
000d:00:01.0 PCI bridge [0604]: Ampere Computing, LLC Altra PCI Express Root Port a0 [1def:e101] (rev 04)
000d:00:02.0 PCI bridge [0604]: Ampere Computing, LLC Altra PCI Express Root Port a1 [1def:e102] (rev 04)
000d:00:03.0 PCI bridge [0604]: Ampere Computing, LLC Altra PCI Express Root Port a2 [1def:e103] (rev 04)
000d:00:04.0 PCI bridge [0604]: Ampere Computing, LLC Altra PCI Express Root Port a3 [1def:e104] (rev 04)
```
-10
View File
@@ -1,10 +0,0 @@
{
imports = [ ../../common/networking/intel/x550 ];
boot.initrd.availableKernelModules = [
"xhci_pci"
"usb_storage"
"nvme"
];
nixpkgs.hostPlatform = "aarch64-linux";
}
+1
View File
@@ -26,6 +26,7 @@
services = {
asusd = {
enable = lib.mkDefault true;
enableUserService = lib.mkDefault true;
};
supergfxd.enable = lib.mkDefault true;
};
-74
View File
@@ -1,74 +0,0 @@
# ASUS TUF A15 FA506NC
- GPU switching to the nvidia card works fine through supergfxd.
- Power profiles autoswitch through asusctl in tandem with power-profiles-daemon.
- The batter charge limit configuration through ../battery.nix did not work,
setting a limit through asusd works.
## Configuring AsusCTL
To declaratively configure asusd you can control the whole config file through
the asusd service (same for fan curves and keyboard leds):
```nix
services.asusd.asusdConfig.text = ''
(
charge_control_end_threshold: 80,
base_charge_control_end_threshold: 80,
disable_nvidia_powerd_on_battery: true,
ac_command: "",
bat_command: "",
platform_profile_linked_epp: true,
platform_profile_on_battery: Quiet,
change_platform_profile_on_battery: true,
platform_profile_on_ac: Performance,
change_platform_profile_on_ac: true,
profile_quiet_epp: Power,
profile_balanced_epp: BalancePower,
profile_custom_epp: Performance,
profile_performance_epp: Performance,
ac_profile_tunings: {
Performance: (
enabled: false,
group: {},
),
Quiet: (
enabled: false,
group: {},
),
Balanced: (
enabled: false,
group: {},
),
},
dc_profile_tunings: {
Quiet: (
enabled: false,
group: {},
),
Balanced: (
enabled: false,
group: {},
),
Performance: (
enabled: false,
group: {},
),
},
armoury_settings: {},
)
'';
```
Here you can set the battery charge limit and other settings like which profile to
use on batter and which on power.
## More optimizations
You may also want to enable thermald and powertop for the optimizations mentioned in
https://wiki.nixos.org/wiki/Laptop.
```nix
services.thermald.enable = true;
powerManagement.powertop.enable = true;
```
-32
View File
@@ -1,32 +0,0 @@
{ lib, ... }:
{
imports = [
../../common/cpu/amd
../../common/cpu/amd/pstate.nix
../../common/gpu/amd
../../common/gpu/nvidia/prime.nix
../../common/gpu/nvidia/ampere
../../common/pc/laptop
../../common/pc/ssd
];
hardware.nvidia = {
dynamicBoost.enable = lib.mkDefault true;
prime = {
amdgpuBusId = "PCI:5:0:0";
nvidiaBusId = "PCI:1:0:0";
};
};
# AMD has better battery life with PPD over TLP:
# https://community.frame.work/t/responded-amd-7040-sleep-states/38101/13
services.power-profiles-daemon.enable = lib.mkDefault true;
services = {
# https://asus-linux.org/manual/asusctl-manual/
asusd.enable = lib.mkDefault true;
supergfxd.enable = lib.mkDefault true;
};
}
+1 -4
View File
@@ -25,15 +25,12 @@
lib.optionals (lib.versionOlder config.boot.kernelPackages.kernel.version "6.8")
[ "rtc_cmos.use_acpi_alarm=1" ];
# AMD has better battery life with PPD over TLP:
# https://community.frame.work/t/responded-amd-7040-sleep-states/38101/13
services.power-profiles-daemon.enable = lib.mkDefault true;
# Adds the missing asus functionality to Linux.
# https://asus-linux.org/manual/asusctl-manual/
services = {
asusd = {
enable = lib.mkDefault true;
enableUserService = lib.mkDefault true;
};
};
-27
View File
@@ -1,27 +0,0 @@
{ lib, ... }:
{
imports = [
../../common/cpu/amd
../../common/cpu/amd/pstate.nix
../../common/gpu/amd
../../common/gpu/nvidia/prime.nix
../../common/gpu/nvidia/ampere
../../common/pc/laptop
../../common/pc/ssd
];
hardware.nvidia = {
dynamicBoost.enable = lib.mkDefault true;
prime = {
amdgpuBusId = "PCI:6:0:0";
nvidiaBusId = "PCI:1:0:0";
};
};
services = {
asusd.enable = lib.mkDefault true;
supergfxd.enable = lib.mkDefault true;
};
}
+2
View File
@@ -11,6 +11,7 @@ let
mkEnableOption
mkIf
mkMerge
version
versionAtLeast
;
@@ -60,6 +61,7 @@ in
services = {
asusd = {
enable = mkDefault true;
enableUserService = mkDefault true;
};
supergfxd.enable = mkDefault true;
-80
View File
@@ -1,80 +0,0 @@
{
config,
pkgs,
lib,
...
}:
let
inherit (lib)
mkDefault
mkMerge
;
in
{
imports = [
../../../common/cpu/intel/raptor-lake
../../../common/gpu/intel/raptor-lake
../../../common/gpu/nvidia/ada-lovelace
../../../common/gpu/nvidia/prime.nix
../../../common/pc/laptop
../../../common/pc/ssd
];
config = mkMerge [
{
# Configure basic system settings:
boot = {
blacklistedKernelModules = [ "nouveau" ];
kernelModules = [ "kvm-intel" ];
kernelParams = [
"mem_sleep_default=deep"
"pcie_aspm.policy=powersupersave"
"nvidia-drm.modeset=1"
"nvidia-drm.fbdev=1"
];
};
services = {
asusd = {
enable = mkDefault true;
};
supergfxd.enable = mkDefault true;
};
#flow devices are 2 in 1 laptops
hardware.sensor.iio.enable = mkDefault true;
hardware = {
nvidia = {
modesetting.enable = true;
nvidiaSettings = mkDefault true;
forceFullCompositionPipeline = mkDefault true;
prime = {
offload = {
enable = mkDefault true;
enableOffloadCmd = mkDefault true;
};
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
};
powerManagement = {
enable = mkDefault true;
finegrained = mkDefault false;
};
dynamicBoost.enable = mkDefault true;
};
};
}
];
}
+1 -1
View File
@@ -12,7 +12,7 @@ Configuration for the ScreenPad is unable to be provided here at this time, due
inputs = {
nixpkgs = {
url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz";
url = "github:NixOS/nixpkgs/nixos-unstable";
};
screenpad-driver={
-38
View File
@@ -1,38 +0,0 @@
{ lib, ... }:
{
imports = [
../../../common/cpu/amd
../../../common/cpu/amd/pstate.nix
../../../common/gpu/amd
../../../common/gpu/nvidia/prime.nix
../../../common/gpu/nvidia/turing
../../../common/pc/laptop
../../../common/pc/ssd
];
hardware.nvidia = {
# Enable DRM kernel mode setting
# This will also cause "PCI-Express Runtime D3 Power Management" to be enabled by default
modesetting.enable = lib.mkDefault true;
# Dynamic boost is available on ampere GPUs and newer, not this laptop
dynamicBoost.enable = lib.mkDefault false;
prime = {
amdgpuBusId = "PCI:4:0:0";
nvidiaBusId = "PCI:1:0:0";
};
};
services = {
asusd.enable = lib.mkDefault true;
udev.extraHwdb = ''
evdev:name:*:dmi:bvn*:bvr*:bd*:svnASUS*:pn*:*
KEYBOARD_KEY_ff31007c=f20 # fixes mic mute button
KEYBOARD_KEY_ff3100b2=home # Set fn+LeftArrow as Home
KEYBOARD_KEY_ff3100b3=end # Set fn+RightArrow as End
'';
};
}
+10
View File
@@ -1,5 +1,6 @@
{
config,
pkgs,
lib,
...
}:
@@ -10,7 +11,9 @@ let
mkEnableOption
mkIf
mkMerge
version
versionAtLeast
versionOlder
;
cfg = config.hardware.asus.zephyrus.ga402x;
@@ -59,6 +62,7 @@ in
services = {
asusd = {
enable = mkDefault true;
enableUserService = mkDefault true;
};
supergfxd.enable = mkDefault true;
@@ -90,6 +94,12 @@ in
'';
})
(mkIf (versionOlder version "23.11") {
# See https://asus-linux.org/wiki/nixos/ for info about some problems
# detecting the dGPU:
systemd.services.supergfxd.path = [ pkgs.pciutils ];
})
(mkIf (config.networking.wireless.iwd.enable && config.networking.wireless.scanOnLowSignal) {
# Meditek doesn't seem to be quite sensitive enough on the default roaming settings:
# https://wiki.archlinux.org/title/Wpa_supplicant#Roaming
-29
View File
@@ -1,29 +0,0 @@
{ lib, ... }:
{
imports = [
../../../common/cpu/intel
../../../common/gpu/nvidia/prime.nix
../../../common/gpu/nvidia/blackwell
../../../common/pc/laptop
../../../common/pc/ssd
../shared/backlight.nix
];
hardware.nvidia = {
prime = {
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
};
modesetting.enable = lib.mkDefault true;
dynamicBoost.enable = lib.mkDefault true;
};
services = {
asusd.enable = lib.mkDefault true;
};
services.tuned.enable = true;
services.tlp.enable = lib.mkOverride 500 false;
}
-5
View File
@@ -1,5 +0,0 @@
{
imports = [
../cpu-only.nix
];
}
-6
View File
@@ -1,6 +0,0 @@
{
imports = [
./cpu-only.nix
../../../gpu/intel/ice-lake
];
}
+24
View File
@@ -0,0 +1,24 @@
{
lib,
...
}:
{
# Backward-compat for 24.05, can be removed after we drop 24.05 support
imports = lib.optionals (lib.versionOlder lib.version "24.11pre") [
(lib.mkAliasOptionModule [ "hardware" "graphics" "enable" ] [ "hardware" "opengl" "enable" ])
(lib.mkAliasOptionModule
[ "hardware" "graphics" "extraPackages" ]
[ "hardware" "opengl" "extraPackages" ]
)
(lib.mkAliasOptionModule
[ "hardware" "graphics" "extraPackages32" ]
[ "hardware" "opengl" "extraPackages32" ]
)
(lib.mkAliasOptionModule
[ "hardware" "graphics" "enable32Bit" ]
[ "hardware" "opengl" "driSupport32Bit" ]
)
(lib.mkAliasOptionModule [ "hardware" "graphics" "package" ] [ "hardware" "opengl" "package" ])
(lib.mkAliasOptionModule [ "hardware" "graphics" "package32" ] [ "hardware" "opengl" "package32" ])
];
}
+1
View File
@@ -1,6 +1,7 @@
{ lib, ... }:
{
imports = [ ../24.05-compat.nix ];
config = {
services.xserver.videoDrivers = lib.mkDefault [ "modesetting" ];
+5 -16
View File
@@ -5,6 +5,8 @@
...
}:
{
imports = [ ../24.05-compat.nix ];
options.hardware.intelgpu = {
driver = lib.mkOption {
description = "Intel GPU driver to use";
@@ -22,7 +24,7 @@
};
computeRuntime = lib.mkOption {
description = "intel-compute-runtime variant to use (legacy for Gen8–11, default for Gen12+)";
description = "intel-compute-runtime variant to use";
type = lib.types.enum [
"default"
"legacy"
@@ -30,15 +32,6 @@
default = "default";
};
mediaRuntime = lib.mkOption {
description = "Intel media runtime to use (Media SDK for Gen8–11, OneVPL for Gen12+)";
type = lib.types.enum [
"vpl-gpu-rt"
"intel-media-sdk"
];
default = "vpl-gpu-rt";
};
vaapiDriver = lib.mkOption {
description = "Intel VAAPI driver to use (use null to use both)";
type = lib.types.nullOr (
@@ -80,11 +73,7 @@
pkgs.intel-compute-runtime-legacy1
else
pkgs.intel-compute-runtime;
intel-media-runtime =
if cfg.mediaRuntime == "vpl-gpu-rt" then
pkgs.vpl-gpu-rt or pkgs.onevpl-intel-gpu
else
pkgs.intel-media-sdk;
vpl-gpu-rt = pkgs.vpl-gpu-rt or pkgs.onevpl-intel-gpu;
in
{
boot.initrd.kernelModules = lib.optionals cfg.loadInInitrd [ cfg.driver ];
@@ -95,7 +84,7 @@
++ lib.optionals useIntelMediaDriver [
intel-media-driver
intel-compute-runtime
intel-media-runtime
vpl-gpu-rt
];
hardware.graphics.extraPackages32 =
-8
View File
@@ -1,8 +0,0 @@
{ config, lib, ... }:
{
imports = [ ../. ];
config = {
boot.kernelParams = lib.mkIf (config.hardware.intelgpu.driver == "i915") [ "i915.enable_guc=3" ];
hardware.intelgpu.vaapiDriver = "intel-media-driver";
};
}
-10
View File
@@ -1,10 +0,0 @@
{ lib, config, ... }:
let
nvidiaPackage = config.hardware.nvidia.package;
in
{
imports = [ ../. ];
# enable the open source drivers if the package supports it
hardware.nvidia.open = lib.mkOverride 990 (nvidiaPackage ? open && nvidiaPackage ? firmware);
}
+1
View File
@@ -1,5 +1,6 @@
{ lib, ... }:
{
imports = [ ../24.05-compat.nix ];
services.xserver.videoDrivers = lib.mkDefault [ "nvidia" ];
}
+1 -2
View File
@@ -1,8 +1,7 @@
{ config, lib, ... }:
{ lib, ... }:
{
imports = [ ../. ];
# The open source driver does not support Pascal GPUs.
hardware.nvidia.open = false;
hardware.nvidia.package = lib.mkDefault config.boot.kernelPackages.nvidiaPackages.legacy_580;
}
-36
View File
@@ -1,36 +0,0 @@
# The x550 supports 5G but the driver does not enable it by default
# https://forum.proxmox.com/threads/x550-x550-t2-duplex-auto-negotiation.116776/
{
systemd.network.links."80-x550" = {
matchConfig = {
Driver = "ixgbe";
Property = [
"ID_MODEL_ID=0x1563"
"ID_VENDOR_ID=0x8086"
];
};
linkConfig.Advertise = [
"100baset-full"
"1000baset-full"
"2500baset-full"
"5000baset-full"
"10000baset-full"
];
linkConfig.NamePolicy = [
"keep"
"kernel"
"database"
"onboard"
"slot"
"path"
];
linkConfig.AlternativeNamesPolicy = [
"database"
"onboard"
"slot"
"path"
"mac"
];
linkConfig.MACAddressPolicy = "persistent";
};
}
+2 -3
View File
@@ -1,7 +1,6 @@
{ config, lib, ... }:
{ lib, config, ... }:
{
imports = [ ../. ];
services.tlp.enable = lib.mkDefault (!config.services.power-profiles-daemon.enable);
config.services.power-profiles-daemon.enable = lib.mkDefault (!config.services.tlp.enable);
}
-80
View File
@@ -1,80 +0,0 @@
# MediaTek MT7925 WiFi 7 / Bluetooth support
#
# The MT7925 is a WiFi 7 (802.11be) + Bluetooth combo chip found in many
# 2024-2025 laptops. It requires specific workarounds for stable operation.
#
# Known issues:
# - Power management causes random disconnections
# - ASPM (Active State Power Management) causes hangs
# - CLC (Country Location Code) causes 6GHz band instability
# - WiFi often fails to reconnect after suspend/resume
# - wpa_supplicant has issues; iwd is recommended
#
# Devices using MT7925:
# - Razer Blade 14 (RZ09-0530) 2025
# - ThinkPad P16s Gen 4
# - Other 2024-2025 laptops with WiFi 7
#
# References:
# - https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2118755
# - https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2133863
{
lib,
pkgs,
...
}:
{
# ===========================================================================
# Kernel Recommendation
# ===========================================================================
# Kernel 6.18+ is recommended for stable MT7925 operation.
# Earlier kernels may have driver bugs causing disconnections or hangs.
# Set: boot.kernelPackages = pkgs.linuxPackages_latest;
# ===========================================================================
# Kernel Module Parameters
# ===========================================================================
# Disable power management at driver level during module load
boot.extraModprobeConfig = ''
# MT7925 WiFi - disable all power management for stability
options mt7925e disable_aspm=1
options mt7925e power_save=0
# Disable CLC (Country Location Code) - fixes 6GHz band stability
options mt7925-common disable_clc=1
'';
# ===========================================================================
# NetworkManager Configuration
# ===========================================================================
networking.networkmanager.wifi = {
# Disable WiFi power saving (causes disconnections)
powersave = lib.mkDefault false;
# Consistent MAC during scans (randomization causes issues)
scanRandMacAddress = lib.mkDefault false;
};
# ===========================================================================
# Suspend/Resume Fix
# ===========================================================================
# Restart NetworkManager after suspend to clear stale driver state
systemd.services.mediatek-wifi-resume = {
description = "Restart NetworkManager after suspend to fix MediaTek WiFi";
wantedBy = [
"suspend.target"
"hibernate.target"
"hybrid-sleep.target"
];
after = [
"suspend.target"
"hibernate.target"
"hybrid-sleep.target"
];
serviceConfig = {
Type = "oneshot";
ExecStart = "${pkgs.systemd}/bin/systemctl restart NetworkManager.service";
};
};
}
-34
View File
@@ -1,34 +0,0 @@
# MediaTek MT7925 - iwd backend configuration
#
# Use iwd instead of wpa_supplicant for MT7925. iwd provides better
# stability and faster roaming for WiFi 7 chips.
#
# Import this alongside default.nix:
# imports = [
# ../common/wifi/mediatek/mt7925
# ../common/wifi/mediatek/mt7925/iwd.nix
# ];
{ lib, ... }:
{
# Required for iwd to work with MT7925 - includes non-redistributable firmware
hardware.enableAllFirmware = lib.mkDefault true;
# Use iwd backend instead of wpa_supplicant
networking.networkmanager.wifi.backend = lib.mkDefault "iwd";
# iwd configuration for MT7925 stability
networking.wireless.iwd.settings = {
General = {
# Consistent MAC per network (fixes WPA3 handshake issues)
AddressRandomization = "network";
# Let NetworkManager handle IP configuration, not iwd
# (prevents conflicts between iwd and NetworkManager)
EnableNetworkConfiguration = false;
};
Settings = {
AutoConnect = true;
};
};
}
+32 -21
View File
@@ -1,17 +1,24 @@
{
pkgs,
callPackage,
fetchFromGitHub,
stdenv,
clang,
git,
dtc,
glibc,
zlib,
vim,
}:
let
bp = pkgs.buildPackages;
imx95-atf = pkgs.callPackage ./ucm-imx95-atf.nix { };
imx95-firmware = pkgs.callPackage ./ucm-imx95-firmware.nix { };
imx95-uboot = pkgs.callPackage ./ucm-imx95-uboot.nix { };
imx95-optee-os = pkgs.callPackage ./ucm-imx95-optee-os.nix { };
imx95-sm-fw = pkgs.callPackage ./ucm-imx95-sm-fw.nix { };
imx95-oei-ddr = pkgs.callPackage ./ucm-imx95-oei-ddr.nix { };
imx95-oei-tcm = pkgs.callPackage ./ucm-imx95-oei-tcm.nix { };
src = pkgs.fetchFromGitHub {
imx95-atf = callPackage ./ucm-imx95-atf.nix { };
imx95-firmware = callPackage ./ucm-imx95-firmware.nix { };
imx95-uboot = callPackage ./ucm-imx95-uboot.nix { };
imx95-optee-os = callPackage ./ucm-imx95-optee-os.nix { };
imx95-sm-fw = callPackage ./ucm-imx95-sm-fw.nix { };
imx95-oei-ddr = callPackage ./ucm-imx95-oei-ddr.nix { };
imx95-oei-tcm = callPackage ./ucm-imx95-oei-tcm.nix { };
src = fetchFromGitHub {
owner = "nxp-imx";
repo = "imx-mkimage";
#tag: lf-6.6.52-2.2.1
@@ -21,8 +28,7 @@ let
shortRev = builtins.substring 0 8 src.rev;
in
{
# mkimage runs on the build machine; use buildPackages when cross-compiling.
imx95-boot = bp.stdenv.mkDerivation {
imx95-boot = stdenv.mkDerivation rec {
inherit src;
name = "imx95-mkimage";
version = "lf-6.6.52-2.2.1";
@@ -30,22 +36,27 @@ in
postPatch = ''
substituteInPlace Makefile \
--replace-fail 'git rev-parse --short=8 HEAD' 'echo ${shortRev}'
substituteInPlace Makefile \
--replace-fail 'CC = gcc' 'CC = clang'
substituteInPlace iMX95/soc.mak \
--replace-fail 'xxd' "${bp.vim.xxd}/bin/xxd"
--replace-fail 'xxd' "${vim.xxd}/bin/xxd"
substituteInPlace scripts/fspi_fcb_gen.sh \
--replace-fail 'xxd' "${bp.vim.xxd}/bin/xxd"
--replace-fail 'xxd' "${vim.xxd}/bin/xxd"
substituteInPlace scripts/fspi_packer.sh \
--replace-fail 'xxd' "${bp.vim.xxd}/bin/xxd"
--replace-fail 'xxd' "${vim.xxd}/bin/xxd"
patchShebangs scripts
'';
nativeBuildInputs = [
bp.stdenv.cc
bp.git
bp.dtc
bp.glibc.static
bp.zlib
bp.zlib.static
clang
git
dtc
];
buildInputs = [
glibc.static
zlib
zlib.static
];
buildPhase = ''
+1 -1
View File
@@ -1,3 +1,3 @@
final: _prev: {
inherit (final.callPackage ./bsp/ucm-imx95-boot.nix { pkgs = final; }) imx95-boot;
inherit (final.callPackage ./bsp/ucm-imx95-boot.nix { }) imx95-boot;
}
-3
View File
@@ -8,6 +8,3 @@
`fwupd` is used to receive firmware updates from vendors. This device is in its [supported devices list](https://fwupd.org/lvfs/devices/)
`thermald` is used to achieve better thermal behaviour
##### TLP
TLP is a battery power optimizer for laptops. It is enabled by default, however, since it conflicts with power-profiles-daemon which is GNOME's power management system, TLP will not be installed with if power-profiles-daemon or a recent version of GNOME is present.
+1
View File
@@ -13,6 +13,7 @@
"i915.enable_guc=3"
"i915.fastboot=1"
# needed for keyboard
"i8042.dumbkbd=1"
"i8042.nopnp=1"
];
}
-9
View File
@@ -1,9 +0,0 @@
{ ... }:
{
imports = [
../../../common/cpu/intel/haswell
../../../common/pc/laptop
../../../common/pc/ssd
];
}
+1 -1
View File
@@ -30,7 +30,7 @@
# Override the Intel gpu driver setting imported above
environment.variables = {
VDPAU_DRIVER = lib.mkIf config.hardware.graphics.enable (lib.mkOverride 990 "nvidia");
VDPAU_DRIVER = lib.mkIf config.hardware.opengl.enable (lib.mkOverride 990 "nvidia");
};
services.thermald.enable = lib.mkDefault true;
+1 -1
View File
@@ -15,7 +15,7 @@
boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"usb-storage"
"usb_storage"
"sd_mod"
"rtsx_pci_sdmmc"
];
+1 -1
View File
@@ -1,4 +1,4 @@
= Dell XPS 15 9500 =
= Dell XPS 15 9550 =
== Tested Hardware ==
+1 -9
View File
@@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, ... }:
let
thermald-conf = ./thermald-conf.xml;
in
@@ -19,14 +19,6 @@ in
# was generated with dptfxtract-static (https://github.com/intel/dptfxtract)
services.thermald.configFile = lib.mkDefault thermald-conf;
# Enable fingerprint reader
services.fprintd = {
enable = lib.mkDefault true;
# Fingerprint sensor will not work without these settings
tod.enable = true;
tod.driver = pkgs.libfprint-2-tod1-goodix;
};
# WiFi speed is slow and crashes by default (https://bugzilla.kernel.org/show_bug.cgi?id=213381)
# disable_11ax - required until ax driver support is fixed
# power_save - works well on this card
Generated
+1 -18
View File
@@ -1,23 +1,6 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1767892417,
"narHash": "sha256-8bW3q88CEg2u4hSP66Vf4lpbLonHz7hqDNBMcCY7E9U=",
"rev": "3497aa5c9457a9d88d71fa93a4a8368816fbeeba",
"type": "tarball",
"url": "https://releases.nixos.org/nixos/unstable/nixos-26.05pre924538.3497aa5c9457/nixexprs.tar.xz"
},
"original": {
"type": "tarball",
"url": "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
"root": {}
},
"root": "root",
"version": 7
+20 -74
View File
@@ -1,17 +1,13 @@
{
description = "nixos-hardware";
inputs.nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz";
outputs =
{ self, nixpkgs, ... }:
{ self, ... }:
let
# Import private inputs (for development)
privateInputs =
(import ./tests/flake-compat.nix {
src = {
outPath = self.outPath + "/tests";
};
src = ./tests;
}).defaultNix;
systems = [
@@ -27,10 +23,17 @@
];
# Helper to iterate over systems
eachSystem = f: nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system} system);
eachSystem =
f:
privateInputs.nixos-unstable-small.lib.genAttrs systems (
system: f privateInputs.nixos-unstable-small.legacyPackages.${system} system
);
eachSystemFormat =
f: nixpkgs.lib.genAttrs formatSystems (system: f nixpkgs.legacyPackages.${system} system);
f:
privateInputs.nixos-unstable-small.lib.genAttrs formatSystems (
system: f privateInputs.nixos-unstable-small.legacyPackages.${system} system
);
in
{
@@ -43,10 +46,8 @@
in
{
acer-aspire-4810t = import ./acer/aspire/4810t;
acer-predator-helios-300-ph315-51 = import ./acer/predator/helios/300/ph315-51;
airis-n990 = import ./airis/n990;
aoostar-r1-n100 = import ./aoostar/r1/n100;
apple-imac-12-2 = import ./apple/imac/12-2;
apple-imac-14-2 = import ./apple/imac/14-2;
apple-imac-18-2 = import ./apple/imac/18-2;
apple-macbook-air-3 = import ./apple/macbook-air/3;
@@ -64,19 +65,15 @@
apple-macbook-pro-14-1 = import ./apple/macbook-pro/14-1;
apple-macmini-4-1 = import ./apple/macmini/4;
apple-t2 = import ./apple/t2;
asrock-rack-altrad8ud-1l2t = import ./asrock-rack/altrad8ud-1l2t;
asus-battery = import ./asus/battery.nix;
asus-ally-rc71l = import ./asus/ally/rc71l;
asus-fx504gd = import ./asus/fx504gd;
asus-fx506hm = import ./asus/fx506hm;
asus-fa506ic = import ./asus/fa506ic;
asus-fa506nc = import ./asus/fa506nc;
asus-fa507nv = import ./asus/fa507nv;
asus-fa507rm = import ./asus/fa507rm;
asus-fa706ic = import ./asus/fa706ic;
asus-flow-gv302x-amdgpu = import ./asus/flow/gv302x/amdgpu;
asus-flow-gv302x-nvidia = import ./asus/flow/gv302x/nvidia;
asus-flow-gz301vu = import ./asus/flow/gz301vu;
asus-pro-ws-x570-ace = import ./asus/pro-ws-x570-ace;
asus-rog-gl552vw = import ./asus/rog-gl552vw;
asus-rog-strix-g513im = import ./asus/rog-strix/g513im;
@@ -90,7 +87,6 @@
asus-zenbook-ux535 = import ./asus/zenbook/ux535;
asus-zenbook-ux481-intelgpu = import ./asus/zenbook/ux481/intelgpu;
asus-zenbook-ux481-nvidia = import ./asus/zenbook/ux481/nvidia;
asus-zephyrus-ga401iv = import ./asus/zephyrus/ga401iv;
asus-zephyrus-ga401 = import ./asus/zephyrus/ga401;
asus-zephyrus-ga402 = import ./asus/zephyrus/ga402;
asus-zephyrus-ga402x = import ./asus/zephyrus/ga402x;
@@ -99,7 +95,6 @@
asus-zephyrus-ga502 = import ./asus/zephyrus/ga502;
asus-zephyrus-ga503 = import ./asus/zephyrus/ga503;
asus-zephyrus-gu603h = import ./asus/zephyrus/gu603h;
asus-zephyrus-gu605cw = import ./asus/zephyrus/gu605cw;
asus-zephyrus-gu605my = import ./asus/zephyrus/gu605my;
beagleboard-pocketbeagle = import ./beagleboard/pocketbeagle;
chuwi-minibook-x = import ./chuwi/minibook-x;
@@ -125,7 +120,6 @@
dell-latitude-7490 = import ./dell/latitude/7490;
dell-latitude-9430 = import ./dell/latitude/9430;
dell-latitude-e7240 = import ./dell/latitude/e7240;
dell-latitude-e7440 = import ./dell/latitude/e7440;
dell-optiplex-3050 = import ./dell/optiplex/3050;
dell-poweredge-r7515 = import ./dell/poweredge/r7515;
dell-precision-3490 = deprecated "1491" "dell-precision-3490" (import ./dell/precision/3490);
@@ -174,12 +168,10 @@
framework-13th-gen-intel = import ./framework/13-inch/13th-gen-intel;
framework-12-13th-gen-intel = import ./framework/12-inch/13th-gen-intel;
framework-intel-core-ultra-series1 = import ./framework/13-inch/intel-core-ultra-series1;
framework-intel-core-ultra-series3 = import ./framework/13-inch/intel-core-ultra-series3;
framework-13-7040-amd = import ./framework/13-inch/7040-amd;
framework-amd-ai-300-series = import ./framework/13-inch/amd-ai-300-series;
framework-16-7040-amd = import ./framework/16-inch/7040-amd;
framework-16-amd-ai-300-series = import ./framework/16-inch/amd-ai-300-series;
framework-16-amd-ai-300-series-nvidia = import ./framework/16-inch/amd-ai-300-series/nvidia;
framework-desktop-amd-ai-max-300-series = import ./framework/desktop/amd-ai-max-300-series;
friendlyarm-nanopc-t4 = import ./friendlyarm/nanopc-t4;
friendlyarm-nanopi-r5s = import ./friendlyarm/nanopi-r5s;
@@ -189,8 +181,6 @@
gigabyte-b650 = import ./gigabyte/b650;
gmktec-nucbox-g3-plus = import ./gmktec/nucbox/g3-plus;
google-pixelbook = import ./google/pixelbook;
google-brya = import ./google/brya;
google-rex = import ./google/rex;
gpd-micropc = import ./gpd/micropc;
gpd-p2-max = import ./gpd/p2-max;
gpd-pocket-3 = import ./gpd/pocket-3;
@@ -206,13 +196,10 @@
hp-probook-440G5 = import ./hp/probook/440G5;
hp-probook-460G11 = import ./hp/probook/460G11;
hp-laptop-14s-dq2024nf = import ./hp/laptop/14s-dq2024nf;
hp-laptop-15s-fq1xxx = import ./hp/laptop/15s-fq1xxx;
huawei-machc-wa = import ./huawei/machc-wa;
hp-notebook-14-df0023 = import ./hp/notebook/14-df0023;
intel-nuc-5i5ryb = import ./intel/nuc/5i5ryb;
intel-nuc-7i3bnb = import ./intel/nuc/7i3bnb;
intel-nuc-8i7beh = import ./intel/nuc/8i7beh;
intel-nuc-12wshi7 = import ./intel/nuc/12wshi7;
lenovo-ideacentre-k330 = import ./lenovo/ideacentre/k330;
lenovo-ideapad-14imh9 = import ./lenovo/ideapad/14imh9;
lenovo-ideapad-15alc6 = import ./lenovo/ideapad/15alc6;
@@ -242,14 +229,12 @@
lenovo-legion-16ithg6 = import ./lenovo/legion/16ithg6;
lenovo-legion-16irx8h = import ./lenovo/legion/16irx8h;
lenovo-legion-16irx9h = import ./lenovo/legion/16irx9h;
lenovo-legion-16iax10h = import ./lenovo/legion/16iax10h;
lenovo-legion-t526amr5 = import ./lenovo/legion/t526amr5;
lenovo-legion-y530-15ich = import ./lenovo/legion/15ich;
lenovo-thinkpad = import ./lenovo/thinkpad;
lenovo-thinkpad-a475 = import ./lenovo/thinkpad/a475;
lenovo-thinkpad-e14-amd = import ./lenovo/thinkpad/e14/amd;
lenovo-thinkpad-e14-intel = import ./lenovo/thinkpad/e14/intel;
lenovo-thinkpad-e14-intel-gen2 = import ./lenovo/thinkpad/e14/intel/gen2;
lenovo-thinkpad-e14-intel-gen4 = import ./lenovo/thinkpad/e14/intel/gen4;
lenovo-thinkpad-e14-intel-gen6 = import ./lenovo/thinkpad/e14/intel/gen6;
lenovo-thinkpad-e15-intel = import ./lenovo/thinkpad/e15/intel;
@@ -267,16 +252,13 @@
lenovo-thinkpad-p14s-amd-gen3 = import ./lenovo/thinkpad/p14s/amd/gen3;
lenovo-thinkpad-p14s-amd-gen4 = import ./lenovo/thinkpad/p14s/amd/gen4;
lenovo-thinkpad-p14s-amd-gen5 = import ./lenovo/thinkpad/p14s/amd/gen5;
lenovo-thinkpad-p14s-amd-gen6 = import ./lenovo/thinkpad/p14s/amd/gen6;
lenovo-thinkpad-p14s-intel-gen2 = import ./lenovo/thinkpad/p14s/intel/gen2;
lenovo-thinkpad-p14s-intel-gen3 = import ./lenovo/thinkpad/p14s/intel/gen3;
lenovo-thinkpad-p14s-intel-gen5 = import ./lenovo/thinkpad/p14s/intel/gen5;
lenovo-thinkpad-p15v-intel-gen3 = import ./lenovo/thinkpad/p15v/intel/gen3;
lenovo-thinkpad-p16s-amd-gen1 = import ./lenovo/thinkpad/p16s/amd/gen1;
lenovo-thinkpad-p16s-amd-gen2 = import ./lenovo/thinkpad/p16s/amd/gen2;
lenovo-thinkpad-p16s-amd-gen4 = import ./lenovo/thinkpad/p16s/amd/gen4;
lenovo-thinkpad-p16s-intel-gen2 = import ./lenovo/thinkpad/p16s/intel/gen2;
lenovo-thinkpad-p16s-intel-gen3 = import ./lenovo/thinkpad/p16s/intel/gen3;
lenovo-thinkpad-p43s = import ./lenovo/thinkpad/p43s;
lenovo-thinkpad-p50 = import ./lenovo/thinkpad/p50;
lenovo-thinkpad-p51 = import ./lenovo/thinkpad/p51;
@@ -369,9 +351,6 @@
microsoft-surface-pro-3 = import ./microsoft/surface-pro/3;
microsoft-surface-pro-9 = import ./microsoft/surface-pro/9;
milkv-pioneer = import ./milkv/pioneer;
minisforum-um690 = import ./minisforum/um690;
minisforum-um690s = import ./minisforum/um690s;
minisforum-um790-pro = import ./minisforum/um790-pro;
minisforum-v3 = import ./minisforum/v3;
mnt-reform-rk3588 = import ./mnt/reform/rk3588;
morefine-m600 = import ./morefine/m600;
@@ -381,8 +360,6 @@
msi-gs60 = import ./msi/gs60;
msi-gl62 = import ./msi/gl62;
msi-gl65-10SDR-492 = import ./msi/gl65/10SDR-492;
msi-prestige-15-a10sc = import ./msi/prestige/15-a10sc;
msi-z370-pc-pro = import ./msi/z370-pc-pro;
nxp-imx8mp-evk = import ./nxp/imx8mp-evk;
nxp-imx8mq-evk = import ./nxp/imx8mq-evk;
nxp-imx8qm-mek = import ./nxp/imx8qm-mek;
@@ -391,7 +368,6 @@
hardkernel-odroid-hc4 = import ./hardkernel/odroid-hc4;
hardkernel-odroid-h3 = import ./hardkernel/odroid-h3;
hardkernel-odroid-h4 = import ./hardkernel/odroid-h4;
hardkernel-odroid-m1 = import ./hardkernel/odroid-m1;
omen-14-fb0798ng = import ./omen/14-fb0798ng;
omen-15-ce002ns = import ./omen/15-ce002ns;
omen-15-en0010ca = import ./omen/15-en0010ca;
@@ -409,12 +385,10 @@
purism-librem-13v3 = import ./purism/librem/13v3;
purism-librem-15v3 = import ./purism/librem/15v3;
purism-librem-5r4 = import ./purism/librem/5r4;
razer-blade-14-RZ09-0530 = import ./razer/blade/14/RZ09-0530;
raspberry-pi-2 = import ./raspberry-pi/2;
raspberry-pi-3 = import ./raspberry-pi/3;
raspberry-pi-4 = import ./raspberry-pi/4;
raspberry-pi-5 = import ./raspberry-pi/5;
radxa-rock-3c = import ./radxa/rock-3c;
rock-4c-plus = import ./radxa/rock-4c-plus;
rock-5b = import ./radxa/rock-5b;
rock-pi-4 = import ./radxa/rock-pi-4;
@@ -435,16 +409,12 @@
system76-galp5-1650 = import ./system76/galp5-1650;
system76-darp6 = import ./system76/darp6;
system76-thelio-mega = import ./system76/thelio-mega;
system76-galp3 = import ./system76/galp3;
toshiba-swanky = import ./toshiba/swanky;
tuxedo-aura-15-gen1 = import ./tuxedo/aura/15/gen1;
tuxedo-infinitybook-v4 = import ./tuxedo/infinitybook/v4;
tuxedo-infinitybook-pro14-gen7 = import ./tuxedo/infinitybook/pro14/gen7;
tuxedo-infinitybook-pro14-gen9-amd = import ./tuxedo/infinitybook/pro14/gen9/amd;
tuxedo-infinitybook-pro14-gen9-intel = import ./tuxedo/infinitybook/pro14/gen9/intel;
tuxedo-infinitybook-pro14-gen10-amd = import ./tuxedo/infinitybook/pro14/gen10/amd;
tuxedo-infinitybook-pro15-gen10-amd = import ./tuxedo/infinitybook/pro15/gen10/amd;
tuxedo-infinitybook-pro15-gen10-intel = import ./tuxedo/infinitybook/pro15/gen10/intel;
tuxedo-pulse-14-gen3 = import ./tuxedo/pulse/14/gen3;
tuxedo-pulse-15-gen2 = import ./tuxedo/pulse/15/gen2;
xiaomi-redmibook-15-pro-2021 = import ./xiaomi/redmibook/15-pro-2021;
@@ -455,16 +425,16 @@
common-cpu-amd-zenpower = import ./common/cpu/amd/zenpower.nix;
common-cpu-amd-raphael-igpu = import ./common/cpu/amd/raphael/igpu.nix;
common-cpu-intel = import ./common/cpu/intel;
common-gpu-intel-comet-lake = deprecated "992" "common-gpu-intel-comet-lake" (
import ./common/gpu/intel/comet-lake
);
common-gpu-intel-comet-lake =
deprecated "992" "common-gpu-intel-comet-lake"
(import ./common/gpu/intel/comet-lake);
common-cpu-intel-cpu-only = import ./common/cpu/intel/cpu-only.nix;
common-gpu-intel-kaby-lake = deprecated "992" "common-gpu-intel-kaby-lake" (
import ./common/gpu/intel/kaby-lake
);
common-gpu-intel-sandy-bridge = deprecated "992" "common-gpu-intel-sandy-bridge" (
import ./common/gpu/intel/sandy-bridge
);
common-gpu-intel-kaby-lake =
deprecated "992" "common-gpu-intel-kaby-lake"
(import ./common/gpu/intel/kaby-lake);
common-gpu-intel-sandy-bridge =
deprecated "992" "common-gpu-intel-sandy-bridge"
(import ./common/gpu/intel/sandy-bridge);
common-gpu-amd = import ./common/gpu/amd;
common-gpu-amd-sea-islands = import ./common/gpu/amd/sea-islands;
common-gpu-amd-southern-islands = import ./common/gpu/amd/southern-islands;
@@ -475,7 +445,6 @@
common-gpu-nvidia-nonprime = import ./common/gpu/nvidia;
common-gpu-nvidia-disable = import ./common/gpu/nvidia/disable.nix;
common-hidpi = import ./common/hidpi.nix;
common-networking-intel-x550 = import ./common/networking/intel/x550;
common-pc = import ./common/pc;
common-pc-hdd = import ./common/pc/hdd;
common-pc-laptop = import ./common/pc/laptop;
@@ -498,8 +467,6 @@
run-tests = pkgs.callPackage ./tests/run-tests.nix {
inherit self;
};
mnt-reform-kernel-patches = pkgs.callPackage ./mnt/reform/updateKernelPatches.nix { };
}
// pkgs.lib.optionalAttrs (system == "aarch64-linux") {
# Boot images for NXP i.MX boards (aarch64-linux only)
@@ -507,30 +474,9 @@
imx93-boot = (pkgs.callPackage ./nxp/imx93-evk/bsp/imx93-boot.nix { }).imx93-boot;
imx8mp-boot = (pkgs.callPackage ./nxp/imx8mp-evk/bsp/imx8mp-boot.nix { }).imx8m-boot;
imx8mq-boot = (pkgs.callPackage ./nxp/imx8mq-evk/bsp/imx8mq-boot.nix { }).imx8m-boot;
purism-librem-5r4-uboot = pkgs.callPackage ./purism/librem/5r4/u-boot { };
# Raspberry Pi kernels (aarch64-linux only)
rpi2-kernel = (pkgs.callPackage ./raspberry-pi/common/kernel.nix { rpiVersion = 2; });
rpi3-kernel = (pkgs.callPackage ./raspberry-pi/common/kernel.nix { rpiVersion = 3; });
rpi4-kernel = (pkgs.callPackage ./raspberry-pi/common/kernel.nix { rpiVersion = 4; });
rpi5-kernel = (pkgs.callPackage ./raspberry-pi/common/kernel.nix { rpiVersion = 5; });
}
);
# Hydra jobset for Raspberry Pi kernels
hydraJobs = {
raspberry-pi-kernels = eachSystem (
pkgs: system:
pkgs.lib.optionalAttrs (system == "aarch64-linux") {
inherit (self.packages.${system})
rpi2-kernel
rpi3-kernel
rpi4-kernel
rpi5-kernel
;
}
);
};
# Add checks for `nix run .#run-tests`
checks = eachSystem (
pkgs: system:
+1 -1
View File
@@ -13,7 +13,7 @@
"xhci_pci"
"ahci"
"nvme"
"usb-storage"
"usb_storage"
"sd_mod"
"rtsx_pci_sdmmc"
];
@@ -12,22 +12,3 @@ $ fwupdmgr update
```
- [Latest Update](https://fwupd.org/lvfs/devices/work.frame.Laptop12.RPL.BIOS.firmware)
## Touchscreen support in initrd (for unl0kr)
To unlock your LUKS disk encryption with an onscreen touch keyboard, you can use unl0kr.
This module will automatically included the necessary kernel modules in initrd to make touchpad and touchscreen work when `boot.initrd.unl0kr.enable = true`.
Example configuration:
```nix
{
boot.initrd.systemd.enable = true;
boot.initrd.unl0kr.enable = true;
boot.initrd.luks.devices."cryptroot" = {
device = "/dev/disk/by-uuid/YOUR-UUID-HERE";
};
}
```
+1 -11
View File
@@ -9,15 +9,5 @@
# before soc_button_array. Otherwise the tablet mode gpio doesn't work.
# If correctly loaded, dmesg should show
# input: gpio-keys as /devices/platform/INT33D3:00
boot.initrd.kernelModules = [
"pinctrl_tigerlake"
]
# Additional modules for touchscreen/touchpad in initrd (for unl0kr on-screen keyboard)
++ lib.optionals config.boot.initrd.unl0kr.enable [
"intel_lpss_pci"
"i2c_hid_acpi"
"i2c_hid"
"hid_multitouch"
"hid_generic"
];
boot.initrd.kernelModules = [ "pinctrl_tigerlake" ];
}
+1
View File
@@ -3,6 +3,7 @@
imports = [
../../../common/pc/laptop
../../../common/pc/ssd
../../bluetooth.nix
../../kmod.nix
../../framework-tool.nix
];
+4 -4
View File
@@ -25,10 +25,10 @@
# This enables the brightness and airplane mode keys to work
# https://community.frame.work/t/12th-gen-not-sending-xf86monbrightnessup-down/20605/11
"hid-sensor-hub"
]
# This fixes controller crashes during sleep
# https://community.frame.work/t/tracking-fn-key-stops-working-on-popos-after-a-while/21208/32
++ lib.optional (config.hardware.framework.enableKmod == false) "cros_ec_lpcs";
# This fixes controller crashes during sleep
# https://community.frame.work/t/tracking-fn-key-stops-working-on-popos-after-a-while/21208/32
(lib.mkIf (config.hardware.framework.enableKmod == false) "cros_ec_lpcs")
];
boot.kernelParams = [
# For Power consumption
@@ -16,21 +16,11 @@
services.fwupd.enable = true;
hardware.framework.laptop13.audioEnhancement.rawDeviceName =
lib.mkDefault "alsa_output.pci-0000_c1_00.6.HiFi__Speaker__sink";
lib.mkDefault "alsa_output.pci-0000_c1_00.6.analog-stereo";
# suspend works with 6.15
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "6.15") (
lib.mkDefault pkgs.linuxPackages_latest
);
# The framework bios wrongly reports the ACP device as wired, causing
# issues with alsa ucm, but also generally adding a phantom interface
# to the system.
#
# See discussion in https://github.com/NixOS/nixos-hardware/issues/1603
boot.blacklistedKernelModules = [
"snd_acp70"
"snd_acp_pci"
];
};
}
-4
View File
@@ -18,8 +18,4 @@
++ lib.optionals (lib.versionOlder config.boot.kernelPackages.kernel.version "6.8") [
"rtc_cmos.use_acpi_alarm=1"
];
# AMD has better battery life with PPD over TLP:
# https://community.frame.work/t/responded-amd-7040-sleep-states/38101/13
services.power-profiles-daemon.enable = lib.mkDefault true;
}
@@ -24,8 +24,7 @@ in
- Equalizer
- Slight compression
This option has been optimised for the classic Framework Laptop 13 chassis/speakers.
Framework Laptop 13 Pro needs different tuning.
This option has been optimised for the Framework Laptop 13 AMD 7040 series, but should work on all models.
Before applying, ensure the speakers are set to 100%,
because the volumes compound and the raw speaker device will be hidden by default.
+2 -1
View File
@@ -3,9 +3,10 @@
imports = [
../../../common/pc/laptop
../../../common/pc/ssd
../../bluetooth.nix
../../kmod.nix
../../framework-tool.nix
./classic-audio.nix
./audio.nix
];
# Fix TRRS headphones missing a mic
@@ -1,14 +0,0 @@
# [Framework Laptop 13](https://frame.work/laptop13pro)
## Updating Firmware
Everything is updateable through fwupd, so it's enabled by default.
To get the latest firmware, run:
```sh
$ fwupdmgr refresh
$ fwupdmgr update
```
- [Latest Update](https://fwupd.org/lvfs/devices/work.frame.Laptop.PTL.BIOS.firmware)
@@ -1,30 +0,0 @@
{
config,
lib,
pkgs,
...
}:
{
imports = [
../common
../common/intel.nix
];
# Everything is updateable through fwupd
services.fwupd.enable = true;
# Absolute minimum
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "6.17") (
lib.mkDefault pkgs.linuxPackages_latest
);
# Additional modules for touchscreen/touchpad in initrd (for unl0kr on-screen keyboard)
boot.initrd.kernelModules = lib.optionals config.boot.initrd.unl0kr.enable [
"intel_lpss_pci"
"i2c_hid_acpi"
"i2c_hid"
"hid_multitouch"
"hid_generic"
];
}
+11 -94
View File
@@ -1,108 +1,25 @@
# [Framework Laptop 16 — AMD Ryzen AI 300 Series](https://frame.work/)
# [Framework Laptop 16 AMD AI 300 Series](https://frame.work/)
## Recommended modules
## nvidia
### Base (no NVIDIA dGPU module)
If you have an nvidia dGPU module, you can enable it via the nvidia open drivers:
Use the base module:
```nix
{
imports = [
nixos-hardware.nixosModules.framework-16-amd-ai-300-series
];
}
```
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia.open = true; # see the note above
```
### NVIDIA dGPU module (RTX 5070 etc.)
See also [NVIDIA](https://wiki.nixos.org/wiki/NVIDIA) on the NixOS Wiki.
If you have the Framework 16 NVIDIA dGPU module (GeForce RTX 5070 or similar), use the NVIDIA submodule:
## Updating Firmware
```nix
{
imports = [
nixos-hardware.nixosModules.framework-16-amd-ai-300-series-nvidia
];
}
```
Everything is updateable through fwupd, so it's enabled by default.
This enables hybrid graphics with PRIME offload: the AMD iGPU runs by default for better battery life, and the NVIDIA dGPU can be used on demand with `nvidia-offload <command>`.
#### IMPORTANT: You MUST override the PCI bus IDs for your specific system!
The default values are examples only and will likely not match your hardware. Due to Framework 16's modular design, bus IDs vary depending on installed expansion cards and NVMe drives:
```nix
{
hardware.nvidia.prime = {
amdgpuBusId = "PCI:195:0:0"; # Adjust to your system
nvidiaBusId = "PCI:194:0:0"; # Adjust to your system
};
}
```
Find your bus IDs with:
```sh
$ nix-shell -p pciutils --run 'lspci | grep -E "VGA|3D|Display"'
c2:00.0 VGA compatible controller: NVIDIA Corporation ...
c3:00.0 Display controller: Advanced Micro Devices ...
```
Convert the hex bus ID to decimal (e.g., `c2:00.0` → `PCI:194:0:0`, `c3:00.0` → `PCI:195:0:0`).
Helper:
```sh
# Replace BDF with the lspci value like c2:00.0
BDF="c2:00.0"
BUS="${BDF%%:*}"; REST="${BDF#*:}"
DEV="${REST%%.*}"; FUN="${REST#*.}"
printf 'PCI:%d:%d:%d\n' "$((16#$BUS))" "$((16#$DEV))" "$FUN"
```
#### Validate hybrid / offload behavior
```sh
# Default should use AMD
nix-shell -p mesa-demos --run 'glxinfo -B | grep -E "OpenGL vendor|OpenGL renderer"'
# Offload should use NVIDIA
nix-shell -p mesa-demos --run 'nvidia-offload glxinfo -B | grep -E "OpenGL vendor|OpenGL renderer"'
```
To check whether the NVIDIA GPU is runtime-suspending at idle:
```sh
# Reuse $BDF from above
cat /sys/bus/pci/devices/0000:$BDF/power/runtime_status
```
Note: running `nvidia-smi` can wake the GPU, so it is not a reliable “is it sleeping?” probe.
#### Optional: Battery-saver boot entry
If you want an easy “iGPU-only” boot entry (to maximize battery life and avoid loading NVIDIA at all), you can enable the PRIME battery saver specialisation:
```nix
{
hardware.nvidia.primeBatterySaverSpecialisation = true;
}
```
This creates an additional boot entry tagged `battery-saver`.
#### Troubleshooting notes
* If suspend/resume fails after heavy GPU/VRAM usage, see the NixOS NVIDIA wiki for power management / VRAM save notes: https://wiki.nixos.org/wiki/NVIDIA
## Firmware updates (fwupd)
Firmware is updatable via `fwupd` (enabled by default). To get the latest firmware:
To get the latest firmware, run:
```sh
$ fwupdmgr refresh
$ fwupdmgr update
```
- [Latest BIOS update on LVFS](https://fwupd.org/lvfs/devices/work.frame.Laptop16.RyzenAI300.BIOS.firmware)
- [Latest Update](https://fwupd.org/lvfs/devices/work.frame.Laptop16.RyzenAI300.BIOS.firmware)
@@ -18,12 +18,4 @@
# Everything is updateable through fwupd
services.fwupd.enable = true;
# The following mitigations fix various graphics issues
# See https://gist.github.com/lbrame/f9034b1a9fe4fc2d2835c5542acb170a#user-content-quick-version-apply-the-mitigations-i-am-personally-using
boot.kernelParams = [
"amdgpu.dcdebugmask=0x410"
"amdgpu.sg_display=0"
"amdgpu.abmlevel=0"
];
}
@@ -1,28 +0,0 @@
{ lib, ... }:
{
imports = [
../.
../../../../common/gpu/nvidia/blackwell
../../../../common/gpu/nvidia/prime.nix
];
# Explicitly set nvidia as video driver to override modesetting from AMD module
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia = {
# Hybrid graphics with PRIME offload for better battery life
# AMD iGPU by default, NVIDIA dGPU on demand via nvidia-offload command
prime = {
# WARNING: These defaults may not match your system!
# Bus IDs vary depending on installed expansion cards and NVMe drives.
# You MUST override these values - see README.md for instructions.
# Bus IDs can be found with `lspci | grep -E "VGA|3D|Display"`
amdgpuBusId = lib.mkDefault "PCI:195:0:0";
nvidiaBusId = lib.mkDefault "PCI:194:0:0";
};
# Power management for hybrid graphics
powerManagement.enable = lib.mkDefault true;
};
}
-4
View File
@@ -18,8 +18,4 @@
++ lib.optionals (lib.versionOlder config.boot.kernelPackages.kernel.version "6.8") [
"rtc_cmos.use_acpi_alarm=1"
];
# AMD has better battery life with PPD over TLP:
# https://community.frame.work/t/responded-amd-7040-sleep-states/38101/13
services.power-profiles-daemon.enable = lib.mkDefault true;
}
+1
View File
@@ -3,6 +3,7 @@
imports = [
../../../common/pc/laptop
../../../common/pc/ssd
../../bluetooth.nix
../../kmod.nix
../../framework-tool.nix
];
+55
View File
@@ -0,0 +1,55 @@
# There is apparently a bug that affects Framework computers that causes black
# screen on resume from sleep or hibernate with kernel version 6.11. Framework
# have published a workaround; this applies that workaround.
#
# https://fosstodon.org/@frameworkcomputer/113406887743149089
# https://github.com/FrameworkComputer/linux-docs/blob/main/hibernation/kernel-6-11-workarounds/suspend-hibernate-bluetooth-workaround.md#workaround-for-suspendhibernate-black-screen-on-resume-kernel-611
{
config,
lib,
pkgs,
...
# TODO: drop this if linux 6.11 goes EOL
}:
lib.mkIf
(
(config.boot.kernelPackages.kernelAtLeast "6.11") && (config.boot.kernelPackages.kernelOlder "6.12")
)
{
systemd.services = {
bluetooth-rfkill-suspend = {
description = "Soft block Bluetooth on suspend/hibernate";
before = [ "sleep.target" ];
unitConfig.StopWhenUnneeded = true;
serviceConfig = {
Type = "oneshot";
ExecStart = "${pkgs.util-linux}/bin/rfkill block bluetooth";
ExecStartPost = "${pkgs.coreutils}/bin/sleep 3";
RemainAfterExit = true;
};
wantedBy = [
"suspend.target"
"hibernate.target"
"suspend-then-hibernate.target"
];
};
bluetooth-rfkill-resume = {
description = "Unblock Bluetooth on resume";
after = [
"suspend.target"
"hibernate.target"
"suspend-then-hibernate.target"
];
serviceConfig = {
Type = "oneshot";
ExecStart = "${pkgs.util-linux}/bin/rfkill unblock bluetooth";
};
wantedBy = [
"suspend.target"
"hibernate.target"
"suspend-then-hibernate.target"
];
};
};
}
-9
View File
@@ -1,9 +0,0 @@
{ ... }:
{
imports = [
../../common/pc/laptop
../../common/pc/ssd
../../common/cpu/intel/alder-lake
];
}
-9
View File
@@ -1,9 +0,0 @@
{ ... }:
{
imports = [
../../common/pc/laptop
../../common/pc/ssd
../../common/cpu/intel/meteor-lake
];
}
+9 -5
View File
@@ -1,12 +1,13 @@
{ lib, pkgs, ... }:
let
inherit (lib) mkDefault;
inherit (lib) mkDefault mkIf;
in
{
imports = [
../../common/pc/laptop
../../common/pc/ssd
../../common/hidpi.nix
../../common/gpu/24.05-compat.nix
];
# Necessary kernel modules
@@ -21,7 +22,12 @@ in
boot.initrd.kernelModules = [ "i915" ]; # Early loading so the passphrase prompt appears on external displays
hardware.graphics.extraPackages = with pkgs; [
intel-media-driver
intel-vaapi-driver
(
if (lib.versionOlder (lib.versions.majorMinor lib.version) "23.11") then
vaapiIntel
else
intel-vaapi-driver
)
];
boot.kernelParams = [
@@ -30,9 +36,6 @@ in
"video=DSI-1:panel_orientation=right_side_up"
];
# Turn on IIO for accelerometer screen rotation.
hardware.sensor.iio.enable = lib.mkDefault true;
fonts.fontconfig = {
subpixel.rgba = "vbgr"; # Pixel order for rotated screen
@@ -40,6 +43,7 @@ in
# Per the documentation, antialiasing, hinting, etc. have no visible effect at such high pixel densities anyhow.
# Set manually, as the hiDPI module had incorrect settings prior to NixOS 22.11; see nixpkgs#194594.
hinting.enable = mkDefault false;
antialias = mkIf (lib.versionOlder (lib.versions.majorMinor lib.version) "22.11") false;
};
# More HiDPI settings
-3
View File
@@ -23,9 +23,6 @@ in
];
};
# Turn on IIO for accelerometer screen rotation.
hardware.sensor.iio.enable = lib.mkDefault true;
fonts.fontconfig = {
subpixel.rgba = "vbgr"; # Pixel order for rotated screen
-2
View File
@@ -10,8 +10,6 @@
"video=eDP-1:panel_orientation=right_side_up"
];
services.tlp.enable = lib.mkDefault (!config.services.power-profiles-daemon.enable);
# Required for grub to properly display the boot menu.
boot.loader.grub.gfxmodeEfi = lib.mkDefault "720x1280x32";
+1 -1
View File
@@ -32,7 +32,7 @@
};
# Linux 5.15 sometimes crash under heavy network usage
systemd.settings.Manager.RuntimeWatchdogSec = lib.mkDefault "1min";
systemd.watchdog.runtimeTime = lib.mkDefault "1min";
hardware.deviceTree.filter = "meson-sm1-odroid-hc4.dtb";
}
-106
View File
@@ -1,106 +0,0 @@
# ODroid M1
Hardware support for the Hardkernel ODroid M1: https://www.hardkernel.com/shop/odroid-m1-with-8gbyte-ram/
## Building an SD Card Image
To create an initial SD card image for installation:
```nix
# flake.nix
{
inputs = {
nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz";
nixos-hardware = {
url = "github:NixOS/nixos-hardware";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, nixos-hardware }: rec {
nixosConfigurations.m1 = nixpkgs.lib.nixosSystem {
modules = [
"${nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix"
nixos-hardware.nixosModules.hardkernel-odroid-m1
./sdimage.nix
{
nixpkgs.hostPlatform.system = "aarch64-linux";
# Uncomment if cross-compiling from x86_64:
# nixpkgs.buildPlatform.system = "x86_64-linux";
}
];
};
images.m1 = nixosConfigurations.m1.config.system.build.sdImage;
};
}
```
```nix
# sdimage.nix
{ config, ... }:
{
imports = [ ./common.nix ];
sdImage = {
compressImage = false;
# Required for the system to boot
populateRootCommands = ''
${config.boot.loader.petitboot.populateCmd} -c ${config.system.build.toplevel} -d ./files/kboot.conf
'';
};
}
```
```nix
# common.nix
{ pkgs, ... }:
{
services.openssh.enable = true;
environment.systemPackages = [ pkgs.git ];
users.users.odroid = {
isNormalUser = true;
extraGroups = [ "wheel" ];
initialPassword = "odroid";
# openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAA..." ];
};
}
```
Build with:
```sh
nix build .#images.m1
```
## Ongoing Configuration
After booting the SD card image, run `nixos-generate-config` to generate
`hardware-configuration.nix` for your system. Then set up your configuration
flake:
```nix
# flake.nix
{
inputs = {
nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz";
nixos-hardware = {
url = "github:NixOS/nixos-hardware";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, nixos-hardware, ... }: {
nixosConfigurations.m1 = nixpkgs.lib.nixosSystem {
modules = [
nixos-hardware.nixosModules.hardkernel-odroid-m1
./common.nix
./configuration.nix
./hardware-configuration.nix
];
};
};
}
```
The module configures petitboot as the boot loader, so `nixos-rebuild switch`
works as usual.
-31
View File
@@ -1,31 +0,0 @@
{
config,
pkgs,
lib,
...
}:
{
imports = [
./petitboot
];
# Enable petitboot support.
boot.loader.petitboot.enable = lib.mkForce true;
# `nixos-rebuild` fails unless grub is explicitly disabled.
boot.loader.grub.enable = lib.mkForce false;
boot.initrd.availableKernelModules = [
"nvme"
];
# Petitboot uses this port and baud rate on the board's serial port. It's
# probably good to keep the options same for the running kernel for serial
# console access to work well.
boot.kernelParams = [ "console=ttyS2,1500000" ];
hardware.deviceTree.name = "rockchip/rk3568-odroid-m1.dtb";
# FIXME: The serial terminal does seem to throw random errors still, but that
# doesn't appear to crash anything. May need adjusted if you're
# actually using the GPIO.
}
@@ -1,77 +0,0 @@
{
config,
lib,
pkgs,
...
}:
let
cfg = config.boot.loader.petitboot;
args = "-g ${toString cfg.configurationLimit} -n ${config.hardware.deviceTree.name}";
# The installer used when running nixos-rebuild switch or similar
installer = pkgs.replaceVarsWith {
src = ./install-petitboot.sh;
replacements = {
bash = pkgs.bash;
path = lib.makeBinPath [
pkgs.coreutils
pkgs.gnused
pkgs.gnugrep
];
};
name = "install-petitboot";
isExecutable = true;
};
# The installer used to write to SD card images
sdImageInstaller = pkgs.buildPackages.replaceVarsWith {
src = ./install-petitboot.sh;
replacements = {
bash = pkgs.buildPackages.bash;
path = lib.makeBinPath [
pkgs.buildPackages.coreutils
pkgs.buildPackages.gnused
pkgs.buildPackages.gnugrep
];
};
name = "install-petitboot-sd-image";
isExecutable = true;
};
in
{
options = {
boot.loader.petitboot = {
enable = lib.mkOption {
default = false;
type = lib.types.bool;
description = ''
Whether to enable the Petitboot bootloader.
'';
};
configurationLimit = lib.mkOption {
default = 10;
example = 5;
type = lib.types.int;
description = ''
Maximum number of configurations to display when booting.
'';
};
populateCmd = lib.mkOption {
type = lib.types.str;
readOnly = true;
description = ''
Contains the script used to populate petitboot when building an image.
Primarily used for sdImage.populateRootCommands.
'';
};
};
};
config = lib.mkIf cfg.enable {
system.build.installBootLoader = lib.mkForce "${installer} ${args} -c";
system.boot.loader.id = "petitboot";
boot.loader.petitboot.populateCmd = "${sdImageInstaller} ${args}";
};
}
@@ -1,76 +0,0 @@
#! @bash@/bin/bash -e
shopt -s nullglob
export PATH="/empty:@path@"
usage() {
echo "usage: $0 -c <path-to-default-configuration> -n <dtbName> [-g <num-generations>] [-d <target>]" >&2
exit 1
}
target=/kboot.conf
default= # Default configuration
numGenerations=0 # Number of other generations to include in the menu
while getopts "t:c:d:g:n:" opt; do
case "$opt" in
c) default="$OPTARG" ;;
g) numGenerations="$OPTARG" ;;
d) target="$OPTARG" ;;
n) dtbName="$OPTARG" ;;
\?) usage ;;
esac
done
[ "$default" = "" -o "$dtbName" = "" ] && usage
tmp=$target.tmp
# Echo out an kboot.conf menu entry
addEntry() {
local path=$(readlink -f "$1")
local tag="$2" # Generation number or 'default'
if ! test -e $path/kernel -a -e $path/initrd; then
return
fi
timestampEpoch=$(stat -L -c '%Z' $path)
timestamp=$(date "+%Y-%m-%d %H:%M" -d @$timestampEpoch)
nixosLabel="$(cat $path/nixos-version)"
extraParams="$(cat $path/kernel-params)"
local kernel=$(readlink -f "$path/kernel")
local initrd=$(readlink -f "$path/initrd")
local dtbs=$(readlink -f "$path/dtbs")
local id="nixos-$tag--$nixosLabel"
if [ "$tag" = "default" ]; then
echo "default=$id"
fi
echo -n "$id='"
echo -n "$kernel initrd=$initrd dtb=$dtbs/$dtbName "
echo -n "systemConfig=$path init=$path/init $extraParams"
echo "'"
}
echo "# Auto-generated by install-petitboot.sh, do not edit or remove" > $tmp
addEntry $default default >> $tmp
if [ "$numGenerations" -gt 0 ]; then
# Add up to $numGenerations generations of the system profile to the menu,
# in reverse (most recent to least recent) order.
for generation in $(
(cd /nix/var/nix/profiles && ls -d system-*-link) \
| sed 's/system-\([0-9]\+\)-link/\1/' \
| sort -n -r \
| head -n $numGenerations); do
link=/nix/var/nix/profiles/system-$generation-link
addEntry $link $generation
done >> $tmp
fi
mv -f $tmp $target
-34
View File
@@ -1,34 +0,0 @@
# HP Laptop 15s-fq1xxxx
## Warning
This option set may not be optimized to it's fullest. It's a carbon copy of the 14s-dq2024nf options, with Tiger Lake switched out for Ice Lake.
However, I still wanted to profit from the many optimizations provided by the library, so I'm leaving this as a starting point.
Here's the place I got the information from, they seem to be close enough to one another that not many changes are needed:
- https://browser.geekbench.com/v6/compute/4861426
- https://browser.geekbench.com/v6/cpu/15840711
- https://wiki.gentoo.org/wiki/Intel#Feature_support (for the gpu driver info. note that both Tiger and Ice Lake use the same driver)
## Device Information
Details from `tlp-stat`:
```
System = HP HP Laptop 15s-fq1xxx
BIOS = F.30
EC Firmware = 56.33
OS Release = NixOS 25.11 (Xanthusia)
Kernel = 6.18.5 #1-NixOS SMP PREEMPT_DYNAMIC Sun Jan 11 14:26:20 UTC 2026 x86_64
Init system = systemd
Boot mode = UEFI
Suspend mode = s2idle [deep]
```
`lspci` output:
```
00:02.0 VGA compatible controller: Intel Corporation Iris Plus Graphics G1 (Ice Lake) (rev 07)
```
-14
View File
@@ -1,14 +0,0 @@
{ config, lib, ... }:
{
imports = [
../../../common/cpu/intel/ice-lake
../../../common/pc
../../../common/pc/laptop
../../../common/pc/ssd
];
config = {
services.thermald.enable = lib.mkDefault true;
};
}
+1 -1
View File
@@ -2,7 +2,7 @@
{
# https://www.intel.com/content/www/us/en/products/sku/124967/intel-core-i58250u-processor-6m-cache-up-to-3-40-ghz/specifications.html
# this one works: https://wiki.nixos.org/wiki/Accelerated_Video_Playback
# this one works: https://nixos.wiki/wiki/Accelerated_Video_Playback
imports = [
../../../common/cpu/intel/kaby-lake
../../../common/pc
+1 -3
View File
@@ -1,5 +1,3 @@
# Huawei Matebook X Pro (2020)
This is a very standard device that needs little configuration. The module mainly imports the common modules for its CPU, GPU, SSD etc. and enables ppd for power management. Nvidia prime offload is also enabled. This configuration should work with all Matebook X Pro models from 2020 (MACHC-WA*) other than MACHC-WAH9L as it does not contain the Nvidia GPU.
Please also take a look at the `hardware.nvidia.primeBatterySaverSpecialisation ` to disable the dGPU to save battery.
This is a very standard device that needs little configuration. The module mainly imports the common modules for its CPU, GPU, SSD etc. and enables ppd for power management. Nvidia prime offload is also enabled. This configuration should work with all Matebook X Pro models from 2020 (MACHC-WA*) other than MACHC-WAH9L as it does not contain the Nvidia GPU.
+5 -2
View File
@@ -7,19 +7,22 @@
{
imports = [
../../common/cpu/intel/comet-lake
../../common/gpu/intel/comet-lake
../../common/gpu/nvidia/pascal
../../common/gpu/nvidia
../../common/gpu/nvidia/prime.nix
../../common/hidpi.nix
../../common/pc/laptop
../../common/pc/ssd
];
hardware.nvidia = {
modesetting.enable = lib.mkDefault true;
open = lib.mkDefault false;
nvidiaSettings = lib.mkDefault true;
prime = {
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
};
};
services.power-profiles-daemon.enable = lib.mkDefault true;
}
-43
View File
@@ -1,43 +0,0 @@
# NUC
## Tested Hardware
``` shellsession
$ lspci -nnn
00:00.0 Host bridge [0600]: Intel Corporation Device [8086:4621] (rev 02)
00:02.0 VGA compatible controller [0300]: Intel Corporation Alder Lake-P GT2 [Iris Xe Graphics] [8086:46a6] (rev 0c)
00:06.0 PCI bridge [0604]: Intel Corporation 12th Gen Core Processor PCI Express x4 Controller #0 [8086:464d] (rev 02)
00:07.0 PCI bridge [0604]: Intel Corporation Alder Lake-P Thunderbolt 4 PCI Express Root Port #0 [8086:466e] (rev 02)
00:07.2 PCI bridge [0604]: Intel Corporation Alder Lake-P Thunderbolt 4 PCI Express Root Port #2 [8086:462f] (rev 02)
00:08.0 System peripheral [0880]: Intel Corporation 12th Gen Core Processor Gaussian & Neural Accelerator [8086:464f] (rev 02)
00:0a.0 Signal processing controller [1180]: Intel Corporation Platform Monitoring Technology [8086:467d] (rev 01)
00:0d.0 USB controller [0c03]: Intel Corporation Alder Lake-P Thunderbolt 4 USB Controller [8086:461e] (rev 02)
00:0d.2 USB controller [0c03]: Intel Corporation Alder Lake-P Thunderbolt 4 NHI #0 [8086:463e] (rev 02)
00:0d.3 USB controller [0c03]: Intel Corporation Alder Lake-P Thunderbolt 4 NHI #1 [8086:466d] (rev 02)
00:14.0 USB controller [0c03]: Intel Corporation Alder Lake PCH USB 3.2 xHCI Host Controller [8086:51ed] (rev 01)
00:14.2 RAM memory [0500]: Intel Corporation Alder Lake PCH Shared SRAM [8086:51ef] (rev 01)
00:14.3 Network controller [0280]: Intel Corporation Alder Lake-P PCH CNVi WiFi [8086:51f0] (rev 01)
00:15.0 Serial bus controller [0c80]: Intel Corporation Alder Lake PCH Serial IO I2C Controller #0 [8086:51e8] (rev 01)
00:15.1 Serial bus controller [0c80]: Intel Corporation Alder Lake PCH Serial IO I2C Controller #1 [8086:51e9] (rev 01)
00:16.0 Communication controller [0780]: Intel Corporation Alder Lake PCH HECI Controller [8086:51e0] (rev 01)
00:17.0 SATA controller [0106]: Intel Corporation Alder Lake-P SATA AHCI Controller [8086:51d3] (rev 01)
00:1d.0 PCI bridge [0604]: Intel Corporation Alder Lake PCI Express Root Port #9 [8086:51b0] (rev 01)
00:1f.0 ISA bridge [0601]: Intel Corporation Alder Lake PCH eSPI Controller [8086:5182] (rev 01)
00:1f.3 Multimedia audio controller [0401]: Intel Corporation Alder Lake PCH-P High Definition Audio Controller [8086:51c8] (rev 01)
00:1f.4 SMBus [0c05]: Intel Corporation Alder Lake PCH-P SMBus Host Controller [8086:51a3] (rev 01)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Alder Lake-P PCH SPI Controller [8086:51a4] (rev 01)
01:00.0 Non-Volatile memory controller [0108]: Micron Technology Inc 2550 NVMe SSD (DRAM-less) [1344:5416] (rev 01)
72:00.0 Ethernet controller [0200]: Intel Corporation Ethernet Controller I225-V [8086:15f3] (rev 03)
```
## Before Installation
These settings are needed both for booting the final install, and
installer itself. Therefore, they must be done first.
- Disable Secure Boot (but keep UEFI Boot).
# References
- [ASUS Product page](https://www.asus.com/supportonly/nuc12wshi7/helpdesk_qvl/) (formerly on Intel's site)
- [Arch Wiki on Intel NUC](https://wiki.archlinux.org/title/Intel_NUC)
-11
View File
@@ -1,11 +0,0 @@
{ lib, ... }:
{
imports = [
../../../common/cpu/intel/alder-lake
../../../common/pc
../../../common/pc/ssd
];
services.thermald.enable = lib.mkDefault true;
}
-11
View File
@@ -1,11 +0,0 @@
{ lib, ... }:
{
imports = [
../../../common/cpu/intel/kaby-lake
../../../common/pc
../../../common/pc/ssd
];
services.thermald.enable = lib.mkDefault true;
}
-3
View File
@@ -5,7 +5,6 @@ let
# A patch to get both PWM fans working
# the patch has been successfully applied to 5.15 and 5.19
{
name = "mvebu-gpio-remove-hardcoded-timer-assignment";
patch = pkgs.fetchpatch {
url = "https://raw.githubusercontent.com/armbian/build/bd3466eef2106ea13e85e821f5d852ff97465e6c/patch/kernel/archive/mvebu-5.15/92-mvebu-gpio-remove-hardcoded-timer-assignment.patch";
sha256 = "sha256-eQqMp0+MZd30zkl8DE89oB7czvyqCkfwF2k0EZ69jr0=";
@@ -13,14 +12,12 @@ let
}
# support for Wake-On-Lan
{
name = "mvebu-gpio-add-wake-on-gpio-support";
patch = pkgs.fetchpatch {
url = "https://raw.githubusercontent.com/armbian/build/bd3466eef2106ea13e85e821f5d852ff97465e6c/patch/kernel/archive/mvebu-5.15/92-mvebu-gpio-add_wake_on_gpio_support.patch";
sha256 = "sha256-OrvnVCU55P0U78jdoxGRJvl29i+Rvq8AdEGSCCpxa2I=";
};
}
{
name = "helios4-dts-add-wake-on-lan-support";
patch = pkgs.fetchpatch {
url = "https://raw.githubusercontent.com/armbian/build/bd3466eef2106ea13e85e821f5d852ff97465e6c/patch/kernel/archive/mvebu-5.15/94-helios4-dts-add-wake-on-lan-support.patch";
sha256 = "sha256-ai4161bTC22023eaVVWsvbk6fQKjkv0P4DQ4DA1Zgow=";
+3 -1
View File
@@ -70,7 +70,9 @@
# Workaround: Lenovo seems write bad acpi power management firmware. Without this config,
# suspend (to ram / disk) will simply reboot instead of power off. :(
sleep.settings.Sleep.HibernateMode = "shutdown";
sleep.extraConfig = ''
HibernateMode=shutdown
'';
};
# TPM2 module
-5
View File
@@ -17,9 +17,4 @@
# Cooling management
services.thermald.enable = lib.mkDefault true;
# tlp defaults to "powersave", which doesn't exist on this laptop
services.tlp.settings = {
CPU_SCALING_GOVERNOR_ON_BAT = "schedutil";
};
}
-4
View File
@@ -32,8 +32,4 @@
# Avoid issues with modesetting causing blank screen
services.xserver.videoDrivers = [ "nvidia" ];
# AMD has better battery life with PPD over TLP:
# https://community.frame.work/t/responded-amd-7040-sleep-states/38101/13
services.power-profiles-daemon.enable = lib.mkDefault true;
}
-41
View File
@@ -1,41 +0,0 @@
{
lib,
config,
...
}:
{
imports = [
../../../common/cpu/intel
../../../common/gpu/nvidia/prime.nix
../../../common/gpu/nvidia/blackwell
../../../common/pc/laptop
../../../common/pc/ssd
../../../common/hidpi.nix
];
boot.extraModulePackages = [ config.boot.kernelPackages.lenovo-legion-module ];
hardware = {
nvidia = {
powerManagement.enable = lib.mkDefault true;
#
prime = {
intelBusId = "PCI:00:02:0";
nvidiaBusId = "PCI:02:00:0";
};
};
};
# Sound speaker fix, see #1039
boot.extraModprobeConfig = ''
options snd-hda-intel model=auto
'';
boot.blacklistedKernelModules = [ "snd_soc_avs" ];
# Cooling management
services.thermald.enable = lib.mkDefault true;
# √(2560² + 1600²) px / 16 in ≃ 189 dpi
services.xserver.dpi = 189;
}
@@ -1,11 +0,0 @@
{ lib, ... }:
{
imports = [
../../.
../../../../../common/cpu/intel/tiger-lake
];
services.throttled.enable = lib.mkDefault false;
hardware.intelgpu.driver = "xe";
}
+3
View File
@@ -1,5 +1,8 @@
{ lib, ... }:
{
imports = [
../../../../common/gpu/24.05-compat.nix
];
hardware = {
graphics = {
enable = lib.mkDefault true;
-12
View File
@@ -1,12 +0,0 @@
{ ... }:
{
imports = [
../.
../../../../../common/cpu/amd/pstate.nix
];
# Embedded controller wake-ups drain battery in s2idle on this device
# See https://lore.kernel.org/all/ZnFYpWHJ5Ml724Nv@ohnotp/
boot.kernelParams = [ "acpi.ec_no_wakeup=1" ];
}
-10
View File
@@ -1,10 +0,0 @@
{ lib, ... }:
{
imports = [
../.
../../../common/pc/ssd
];
hardware.enableRedistributableFirmware = lib.mkDefault true;
hardware.trackpoint.device = lib.mkDefault "TPPS/2 Elan TrackPoint";
}
Loaded 100 of 192 files, more files were not shown because too many files have changed in this diff. Show more