mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-11-30 13:03:30 +01:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0aa778c6a4 | ||
|
|
8229a43214 |
No files matched your search
@@ -1,48 +0,0 @@
|
||||
# EditorConfig configuration for nixpkgs
|
||||
# https://EditorConfig.org
|
||||
|
||||
# Top-most EditorConfig file
|
||||
root = true
|
||||
|
||||
# Unix-style newlines with a newline ending every file, utf-8 charset
|
||||
[*]
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
charset = utf-8
|
||||
|
||||
# Ignore diffs/patches
|
||||
[*.{diff,patch}]
|
||||
end_of_line = unset
|
||||
insert_final_newline = unset
|
||||
trim_trailing_whitespace = unset
|
||||
|
||||
# see https://nixos.org/nixpkgs/manual/#chap-conventions
|
||||
|
||||
# Match json/lockfiles/markdown/nix/perl/python/ruby/shell/docbook files, set indent to spaces
|
||||
[*.{json,lock,md,nix,pl,pm,py,rb,sh,xml}]
|
||||
indent_style = space
|
||||
|
||||
# Match docbook files, set indent width of one
|
||||
[*.xml]
|
||||
indent_size = 1
|
||||
|
||||
# Match json/lockfiles/markdown/nix/ruby files, set indent width of two
|
||||
[*.{json,lock,md,nix,rb}]
|
||||
indent_size = 2
|
||||
|
||||
# Match perl/python/shell scripts, set indent width of four
|
||||
[*.{pl,pm,py,sh}]
|
||||
indent_size = 4
|
||||
|
||||
# Match gemfiles, set indent to spaces with width of two
|
||||
[Gemfile]
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
|
||||
# Disable file types or individual files
|
||||
# some of these files may be auto-generated and/or require significant changes
|
||||
|
||||
[*.{c,h}]
|
||||
insert_final_newline = unset
|
||||
trim_trailing_whitespace = unset
|
||||
@@ -1,13 +0,0 @@
|
||||
# This file contains commits that should be ignored by git blame
|
||||
# See https://git-scm.com/docs/git-blame#Documentation/git-blame.txt---ignore-revs-file
|
||||
# and https://github.com/NixOS/nixpkgs/blob/master/.git-blame-ignore-revs for more info
|
||||
|
||||
# To enable this in your local repository, run:
|
||||
# git config blame.ignoreRevsFile .git-blame-ignore-revs
|
||||
|
||||
# For rebasing PRs, commits marked with !autorebase will be automatically
|
||||
# reapplied by the auto-rebase script
|
||||
|
||||
# nixfmt-rfc-style formatting
|
||||
51e51e601448705c0d2f92ef90ec7b680123077c #!autorebase cd tests && nix fmt ..
|
||||
166dee4f88a7e3ba1b7a243edb1aca822f00680e
|
||||
@@ -1,13 +0,0 @@
|
||||
<!-- Please read the CONTRIBUTING.md guidelines before submitting: https://github.com/NixOS/nixos-hardware/blob/master/CONTRIBUTING.md -->
|
||||
|
||||
###### Description of changes
|
||||
|
||||
|
||||
###### Things done
|
||||
|
||||
<!-- Please check what applies. Note that these are not hard requirements but merely serve as information for reviewers. -->
|
||||
|
||||
- [ ] Tested the changes in your own NixOS Configuration
|
||||
- [ ] Tested the changes end-to-end by using your fork of `nixos-hardware` and
|
||||
importing it via `<nixos-hardware>` or Flake input
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
- package-ecosystem: "nix"
|
||||
directories:
|
||||
- "/"
|
||||
- "tests/"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
@@ -1,21 +0,0 @@
|
||||
name: "Test"
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
merge_group:
|
||||
jobs:
|
||||
nixfmt:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- 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@v6
|
||||
- uses: cachix/install-nix-action@v31
|
||||
- run: nix run .#run-tests
|
||||
@@ -1,13 +0,0 @@
|
||||
queue_rules:
|
||||
- name: default
|
||||
merge_conditions:
|
||||
- check-success=tests
|
||||
batch_size: 5
|
||||
merge_method: rebase
|
||||
pull_request_rules:
|
||||
- name: merge using the merge queue
|
||||
conditions:
|
||||
- base=master
|
||||
- label~=merge-queue|dependencies
|
||||
actions:
|
||||
queue: {}
|
||||
@@ -0,0 +1,3 @@
|
||||
language: nix
|
||||
sudo: true # needed by the nix install
|
||||
script: ./tests/eval-test.sh
|
||||
-14
@@ -1,15 +1 @@
|
||||
beagleboard/pocketbeagle @yegortimoshenko
|
||||
dell/xps/13-9370 @moredread
|
||||
dell/xps/13-9380 @kalbasit
|
||||
dell/xps/15-9560 @Lyndeno
|
||||
lenovo/thinkpad/x230 @makefu @yegortimoshenko
|
||||
lenovo/thinkpad/x250 @Mic92
|
||||
pcengines/apu @yegortimoshenko
|
||||
pine64/rockpro64 @tomfitzhenry
|
||||
pine64/star64 @fgaz
|
||||
purism/librem/13v3 @yegortimoshenko
|
||||
raspberry-pi @doronbehar
|
||||
system76/darp6 @khumba
|
||||
framework @emiller88 @johnazoidberg
|
||||
tuxedo/pulse/15/gen2 @trueNAHO
|
||||
tuxedo/pulse/14/gen3 @gabyx @britter
|
||||
-185
@@ -1,185 +0,0 @@
|
||||
# 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.
|
||||
|
||||
When setting an option, use `lib.mkDefault` unless:
|
||||
- The option *must* be set and the user should get an error if they try to
|
||||
override it.
|
||||
- The setting should merge with the user's settings (typical for list or set
|
||||
options).
|
||||
|
||||
For example:
|
||||
|
||||
```nix
|
||||
{ lib }: {
|
||||
# Using mkDefault, because the user might want to disable tlp
|
||||
services.tlp.enable = lib.mkDefault true;
|
||||
# No need to use mkDefault, because the setting will merge with the user's setting
|
||||
boot.kernelModules = [ "tmp_smapi" ];
|
||||
}
|
||||
```
|
||||
|
||||
Where possible, use module imports to share code between similar hardware
|
||||
variants. In most cases, import:
|
||||
- a cpu module;
|
||||
- a gpu module;
|
||||
- either the pc or the laptop module;
|
||||
- either the HDD or the SSD module.
|
||||
|
||||
Try to avoid "opinionated" settings relating to optional features like sound,
|
||||
bluetooth, choice of bootloader etc. You can mention these in the readme.
|
||||
|
||||
Profiles should favor usability and stability, so performance improvements
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
See [framework/13-inch/7040-amd/README.md](framework/13-inch/7040-amd/README.md)
|
||||
for a good example.
|
||||
|
||||
## 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.
|
||||
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 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
|
||||
@@ -0,0 +1,6 @@
|
||||
Profiles should favor usability and stability, so performance hacks should be
|
||||
activated by an additional NixOS option or conservative and performance configs
|
||||
can be declared in separate profiles.
|
||||
|
||||
Because profiles can only be tested with the appropriate hardware, quality
|
||||
assurance is up to *you*.
|
||||
@@ -1,111 +0,0 @@
|
||||
Statement of Purpose
|
||||
|
||||
The laws of most jurisdictions throughout the world automatically confer
|
||||
exclusive Copyright and Related Rights (defined below) upon the creator and
|
||||
subsequent owner(s) (each and all, an "owner") of an original work of
|
||||
authorship and/or a database (each, a "Work").
|
||||
|
||||
Certain owners wish to permanently relinquish those rights to a Work for the
|
||||
purpose of contributing to a commons of creative, cultural and scientific
|
||||
works ("Commons") that the public can reliably and without fear of later
|
||||
claims of infringement build upon, modify, incorporate in other works, reuse
|
||||
and redistribute as freely as possible in any form whatsoever and for any
|
||||
purposes, including without limitation commercial purposes. These owners may
|
||||
contribute to the Commons to promote the ideal of a free culture and the
|
||||
further production of creative, cultural and scientific works, or to gain
|
||||
reputation or greater distribution for their Work in part through the use and
|
||||
efforts of others.
|
||||
|
||||
For these and/or other purposes and motivations, and without any expectation
|
||||
of additional consideration or compensation, the person associating CC0 with a
|
||||
Work (the "Affirmer"), to the extent that he or she is an owner of Copyright
|
||||
and Related Rights in the Work, voluntarily elects to apply CC0 to the Work
|
||||
and publicly distribute the Work under its terms, with knowledge of his or her
|
||||
Copyright and Related Rights in the Work and the meaning and intended legal
|
||||
effect of CC0 on those rights.
|
||||
|
||||
1. Copyright and Related Rights. A Work made available under CC0 may be
|
||||
protected by copyright and related or neighboring rights ("Copyright and
|
||||
Related Rights"). Copyright and Related Rights include, but are not limited
|
||||
to, the following:
|
||||
|
||||
i. the right to reproduce, adapt, distribute, perform, display, communicate,
|
||||
and translate a Work;
|
||||
|
||||
ii. moral rights retained by the original author(s) and/or performer(s);
|
||||
|
||||
iii. publicity and privacy rights pertaining to a person's image or likeness
|
||||
depicted in a Work;
|
||||
|
||||
iv. rights protecting against unfair competition in regards to a Work,
|
||||
subject to the limitations in paragraph 4(a), below;
|
||||
|
||||
v. rights protecting the extraction, dissemination, use and reuse of data in
|
||||
a Work;
|
||||
|
||||
vi. database rights (such as those arising under Directive 96/9/EC of the
|
||||
European Parliament and of the Council of 11 March 1996 on the legal
|
||||
protection of databases, and under any national implementation thereof,
|
||||
including any amended or successor version of such directive); and
|
||||
|
||||
vii. other similar, equivalent or corresponding rights throughout the world
|
||||
based on applicable law or treaty, and any national implementations thereof.
|
||||
|
||||
2. Waiver. To the greatest extent permitted by, but not in contravention of,
|
||||
applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and
|
||||
unconditionally waives, abandons, and surrenders all of Affirmer's Copyright
|
||||
and Related Rights and associated claims and causes of action, whether now
|
||||
known or unknown (including existing as well as future claims and causes of
|
||||
action), in the Work (i) in all territories worldwide, (ii) for the maximum
|
||||
duration provided by applicable law or treaty (including future time
|
||||
extensions), (iii) in any current or future medium and for any number of
|
||||
copies, and (iv) for any purpose whatsoever, including without limitation
|
||||
commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes
|
||||
the Waiver for the benefit of each member of the public at large and to the
|
||||
detriment of Affirmer's heirs and successors, fully intending that such Waiver
|
||||
shall not be subject to revocation, rescission, cancellation, termination, or
|
||||
any other legal or equitable action to disrupt the quiet enjoyment of the Work
|
||||
by the public as contemplated by Affirmer's express Statement of Purpose.
|
||||
|
||||
3. Public License Fallback. Should any part of the Waiver for any reason be
|
||||
judged legally invalid or ineffective under applicable law, then the Waiver
|
||||
shall be preserved to the maximum extent permitted taking into account
|
||||
Affirmer's express Statement of Purpose. In addition, to the extent the Waiver
|
||||
is so judged Affirmer hereby grants to each affected person a royalty-free,
|
||||
non transferable, non sublicensable, non exclusive, irrevocable and
|
||||
unconditional license to exercise Affirmer's Copyright and Related Rights in
|
||||
the Work (i) in all territories worldwide, (ii) for the maximum duration
|
||||
provided by applicable law or treaty (including future time extensions), (iii)
|
||||
in any current or future medium and for any number of copies, and (iv) for any
|
||||
purpose whatsoever, including without limitation commercial, advertising or
|
||||
promotional purposes (the "License"). The License shall be deemed effective as
|
||||
of the date CC0 was applied by Affirmer to the Work. Should any part of the
|
||||
License for any reason be judged legally invalid or ineffective under
|
||||
applicable law, such partial invalidity or ineffectiveness shall not
|
||||
invalidate the remainder of the License, and in such case Affirmer hereby
|
||||
affirms that he or she will not (i) exercise any of his or her remaining
|
||||
Copyright and Related Rights in the Work or (ii) assert any associated claims
|
||||
and causes of action with respect to the Work, in either case contrary to
|
||||
Affirmer's express Statement of Purpose.
|
||||
|
||||
4. Limitations and Disclaimers.
|
||||
|
||||
a. No trademark or patent rights held by Affirmer are waived, abandoned,
|
||||
surrendered, licensed or otherwise affected by this document.
|
||||
|
||||
b. Affirmer offers the Work as-is and makes no representations or warranties
|
||||
of any kind concerning the Work, express, implied, statutory or otherwise,
|
||||
including without limitation warranties of title, merchantability, fitness
|
||||
for a particular purpose, non infringement, or the absence of latent or
|
||||
other defects, accuracy, or the present or absence of errors, whether or not
|
||||
discoverable, all to the greatest extent permissible under applicable law.
|
||||
|
||||
c. Affirmer disclaims responsibility for clearing rights of other persons
|
||||
that may apply to the Work or any use thereof, including without limitation
|
||||
any person's Copyright and Related Rights in the Work. Further, Affirmer
|
||||
disclaims responsibility for obtaining any necessary consents, permissions
|
||||
or other rights required for any use of the Work.
|
||||
|
||||
d. Affirmer understands and acknowledges that Creative Commons is not a
|
||||
party to this document and has no duty or obligation with respect to this
|
||||
CC0 or use of the Work.
|
||||
@@ -1,496 +0,0 @@
|
||||
NixOS profiles to optimize settings for different hardware.
|
||||
|
||||
## Setup
|
||||
|
||||
### Using channels
|
||||
|
||||
Add and update `nixos-hardware` channel:
|
||||
|
||||
```
|
||||
$ sudo nix-channel --add https://github.com/NixOS/nixos-hardware/archive/master.tar.gz nixos-hardware
|
||||
$ sudo nix-channel --update
|
||||
```
|
||||
|
||||
Then import an appropriate profile path from the table below. For example, to
|
||||
enable ThinkPad X220 profile, your `imports` in `/etc/nixos/configuration.nix`
|
||||
should look like:
|
||||
|
||||
```
|
||||
imports = [
|
||||
<nixos-hardware/lenovo/thinkpad/x220>
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
```
|
||||
|
||||
New updates to the expressions here will be fetched when you update the channel.
|
||||
|
||||
### Using nix flakes support
|
||||
|
||||
There is also experimental flake support. In your `/etc/nixos/flake.nix` add
|
||||
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";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, nixos-hardware }: {
|
||||
# replace <your-hostname> with your actual hostname
|
||||
nixosConfigurations.<your-hostname> = nixpkgs.lib.nixosSystem {
|
||||
# ...
|
||||
modules = [
|
||||
# ...
|
||||
# add your model from this list: https://github.com/NixOS/nixos-hardware/blob/master/flake.nix
|
||||
nixos-hardware.nixosModules.dell-xps-13-9380
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
### Using fetchGit
|
||||
|
||||
You can fetch the git repository directly:
|
||||
|
||||
```nix
|
||||
imports = [
|
||||
"${builtins.fetchGit { url = "https://github.com/NixOS/nixos-hardware.git"; }}/lenovo/thinkpad/x220"
|
||||
];
|
||||
```
|
||||
|
||||
Unlike the channel, this will update the git repository on a rebuild. However,
|
||||
you can easily pin to a particular revision if you desire more stability.
|
||||
|
||||
## How to contribute a new device profile
|
||||
|
||||
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.
|
||||
|
||||
# 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)
|
||||
- **Where**: https://jitsi.lassul.us/Hardware-team
|
||||
- **Contact**: hardware@nixos.org
|
||||
|
||||
All contributors and users are welcome to join!
|
||||
|
||||
## List of Profiles
|
||||
|
||||
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 Nitro 5 (AN515-55)](acer/nitro/5/an515-55) | `<nixos-hardware/acer/nitro/5/an515-55>` | `acer-nitro-5-an515-55` |
|
||||
| [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` |
|
||||
| [Apple MacBook Air 4,X](apple/macbook-air/4) | `<nixos-hardware/apple/macbook-air/4>` | `apple-macbook-air-4` |
|
||||
| [Apple MacBook Air 5,X](apple/macbook-air/5) | `<nixos-hardware/apple/macbook-air/5>` | `apple-macbook-air-5` |
|
||||
| [Apple MacBook Air 6,X](apple/macbook-air/6) | `<nixos-hardware/apple/macbook-air/6>` | `apple-macbook-air-6` |
|
||||
| [Apple MacBook Air 7,X](apple/macbook-air/7) | `<nixos-hardware/apple/macbook-air/7>` | `apple-macbook-air-7` |
|
||||
| [Apple MacBook Pro 8,1](apple/macbook-pro/8-1) | `<nixos-hardware/apple/macbook-pro/8-1>` | `apple-macbook-pro-8-1` |
|
||||
| [Apple MacBook Pro 10,1](apple/macbook-pro/10-1) | `<nixos-hardware/apple/macbook-pro/10-1>` | `apple-macbook-pro-10-1` |
|
||||
| [Apple MacBook Pro 11,1](apple/macbook-pro/11-1) | `<nixos-hardware/apple/macbook-pro/11-1>` | `apple-macbook-pro-11-1` |
|
||||
| [Apple MacBook Pro 11,4](apple/macbook-pro/11-4) | `<nixos-hardware/apple/macbook-pro/11-4>` | `apple-macbook-pro-11-4` |
|
||||
| [Apple MacBook Pro 11,5](apple/macbook-pro/11-5) | `<nixos-hardware/apple/macbook-pro/11-5>` | `apple-macbook-pro-11-5` |
|
||||
| [Apple MacBook Pro 12,1](apple/macbook-pro/12-1) | `<nixos-hardware/apple/macbook-pro/12-1>` | `apple-macbook-pro-12-1` |
|
||||
| [Apple MacBook Pro 14,1](apple/macbook-pro/14-1) | `<nixos-hardware/apple/macbook-pro/14-1>` | `apple-macbook-pro-14-1` |
|
||||
| [Apple MacMini (2010, Intel, Nvidia)](apple/macmini/4) | `<nixos-hardware/apple/macmini/4>` | `apple-macmini-4-1` |
|
||||
| [Apple Macs with a T2 Chip](apple/t2) | `<nixos-hardware/apple/t2>` | `apple-t2` |
|
||||
| [Aoostar R1 N100](aoostar/r1/n100) | `<nixos-hardware/aoostar/r1/n100>` | `aoostar-r1-n100` |
|
||||
| [Asus Pro WS X570-ACE](asus/pro-ws-x570-ace) | `<nixos-hardware/asus/pro-ws-x570-ace>` | `asus-pro-ws-x570-ace` |
|
||||
| [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` |
|
||||
| [Asus ROG Strix G533Q](asus/rog-strix/g533q) | `<nixos-hardware/asus/rog-strix/g533q>` | `asus-rog-strix-g533zw` |
|
||||
| [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 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` |
|
||||
| [Dell G3 3779](dell/g3/3779) | `<nixos-hardware/dell/g3/3779>` | `dell-g3-3779` |
|
||||
| [Dell G3 3579](dell/g3/3579) | `<nixos-hardware/dell/g3/3579>` | `dell-g3-3579` |
|
||||
| [Dell Inspiron 3442](dell/inspiron/3442) | `<nixos-hardware/dell/inspiron/3442>` | `dell-inspiron-3442` |
|
||||
| [Dell Inspiron 14 5420](dell/inspiron/14-5420) | `<nixos-hardware/dell/inspiron/14-5420>` | `dell-inspiron-14-5420` |
|
||||
| [Dell Inspiron 5509](dell/inspiron/5509) | `<nixos-hardware/dell/inspiron/5509>` | `dell-inspiron-5509` |
|
||||
| [Dell Inspiron 5515](dell/inspiron/5515) | `<nixos-hardware/dell/inspiron/5515>` | `dell-inspiron-5515` |
|
||||
| [Dell Inspiron 7405](dell/inspiron/7405) | `<nixos-hardware/dell/inspiron/7405>` | `dell-inspiron-7405` |
|
||||
| [Dell Inspiron 7460](dell/inspiron/7460) | `<nixos-hardware/dell/inspiron/7460>` | `dell-inspiron-7460` |
|
||||
| [Dell Inspiron 7559](dell/inspiron/7559) | `<nixos-hardware/dell/inspiron/7559>` | `dell-inspiron-7559` |
|
||||
| [Dell Latitude 3340](dell/latitude/3340) | `<nixos-hardware/dell/latitude/3340>` | `dell-latitude-3340` |
|
||||
| [Dell Latitude 3480](dell/latitude/3480) | `<nixos-hardware/dell/latitude/3480>` | `dell-latitude-3480` |
|
||||
| [Dell Latitude 3530](dell/latitude/3530) | `<nixos-hardware/dell/latitude/3530>` | `dell-latitude-3530` |
|
||||
| [Dell Latitude 5490](dell/latitude/5490) | `<nixos-hardware/dell/latitude/5490>` | `dell-latitude-5490` |
|
||||
| [Dell Latitude 5520](dell/latitude/5520) | `<nixos-hardware/dell/latitude/5520>` | `dell-latitude-5520` |
|
||||
| [Dell Latitude 7280](dell/latitude/7280) | `<nixos-hardware/dell/latitude/7280>` | `dell-latitude-7280` |
|
||||
| [Dell Latitude 7390](dell/latitude/7390) | `<nixos-hardware/dell/latitude/7390>` | `dell-latitude-7390` |
|
||||
| [Dell Latitude 7420](dell/latitude/7420) | `<nixos-hardware/dell/latitude/7420>` | `dell-latitude-7420` |
|
||||
| [Dell Latitude 7430](dell/latitude/7430) | `<nixos-hardware/dell/latitude/7430>` | `dell-latitude-7430` |
|
||||
| [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` |
|
||||
| [Dell Precision 3490, intel](dell/precision/3490/intel) | `<nixos-hardware/dell/precision/3490/intel>` | `dell-precision-3490-intel` |
|
||||
| [Dell Precision 3541](dell/precision/3541) | `<nixos-hardware/dell/precision/3541>` | `dell-precision-3541` |
|
||||
| [Dell Precision 5490](dell/precision/5490) | `<nixos-hardware/dell/precision/5490>` | `dell-precision-5490` |
|
||||
| [Dell Precision 5530](dell/precision/5530) | `<nixos-hardware/dell/precision/5530>` | `dell-precision-5530` |
|
||||
| [Dell Precision 5560](dell/precision/5560) | `<nixos-hardware/dell/precision/5560>` | `dell-precision-5560` |
|
||||
| [Dell Precision 5570](dell/precision/5570) | `<nixos-hardware/dell/precision/5570>` | `dell-precision-5570` |
|
||||
| [Dell Precision 5820](dell/precision/5820) | `<nixos-hardware/dell/precision/5820>` | `dell-precision-5820` |
|
||||
| [Dell Precision 7520](dell/precision/7520) | `<nixos-hardware/dell/precision/7520>` | `dell-precision-7520` |
|
||||
| [Dell XPS 13 7390](dell/xps/13-7390) | `<nixos-hardware/dell/xps/13-7390>` | `dell-xps-13-7390` |
|
||||
| [Dell XPS 13 9300](dell/xps/13-9300) | `<nixos-hardware/dell/xps/13-9300>` | `dell-xps-13-9300` |
|
||||
| [Dell XPS 13 9310](dell/xps/13-9310) | `<nixos-hardware/dell/xps/13-9310>` | `dell-xps-13-9310` |
|
||||
| [Dell XPS 13 9315](dell/xps/13-9315) | `<nixos-hardware/dell/xps/13-9315>` | `dell-xps-13-9315` |
|
||||
| [Dell XPS 13 9333](dell/xps/13-9333) | `<nixos-hardware/dell/xps/13-9333>` | `dell-xps-13-9333` |
|
||||
| [Dell XPS 13 9343](dell/xps/13-9343) | `<nixos-hardware/dell/xps/13-9343>` | `dell-xps-13-9343` |
|
||||
| [Dell XPS 13 9350](dell/xps/13-9350) | `<nixos-hardware/dell/xps/13-9350>` | `dell-xps-13-9350` |
|
||||
| [Dell XPS 13 9360](dell/xps/13-9360) | `<nixos-hardware/dell/xps/13-9360>` | `dell-xps-13-9360` |
|
||||
| [Dell XPS 13 9370](dell/xps/13-9370) | `<nixos-hardware/dell/xps/13-9370>` | `dell-xps-13-9370` |
|
||||
| [Dell XPS 13 9380](dell/xps/13-9380) | `<nixos-hardware/dell/xps/13-9380>` | `dell-xps-13-9380` |
|
||||
| [Dell XPS 15 7590, nvidia](dell/xps/15-7590/nvidia) | `<nixos-hardware/dell/xps/15-7590/nvidia>` | `dell-xps-15-7590-nvidia` |
|
||||
| [Dell XPS 15 7590](dell/xps/15-7590) | `<nixos-hardware/dell/xps/15-7590>` | `dell-xps-15-7590` |
|
||||
| [Dell XPS 15 9500, nvidia](dell/xps/15-9500/nvidia) | `<nixos-hardware/dell/xps/15-9500/nvidia>` | `dell-xps-15-9500-nvidia` |
|
||||
| [Dell XPS 15 9500](dell/xps/15-9500) | `<nixos-hardware/dell/xps/15-9500>` | `dell-xps-15-9500` |
|
||||
| [Dell XPS 15 9510, nvidia](dell/xps/15-9510/nvidia) | `<nixos-hardware/dell/xps/15-9510/nvidia>` | `dell-xps-15-9510-nvidia` |
|
||||
| [Dell XPS 15 9510](dell/xps/15-9510) | `<nixos-hardware/dell/xps/15-9510>` | `dell-xps-15-9510` |
|
||||
| [Dell XPS 15 9520, nvidia](dell/xps/15-9520/nvidia) | `<nixos-hardware/dell/xps/15-9520/nvidia>` | `dell-xps-15-9520-nvidia` |
|
||||
| [Dell XPS 15 9520](dell/xps/15-9520) | `<nixos-hardware/dell/xps/15-9520>` | `dell-xps-15-9520` |
|
||||
| [Dell XPS 15 9530, nvidia](dell/xps/15-9530/nvidia) | `<nixos-hardware/dell/xps/15-9530/nvidia>` | `dell-xps-15-9530-nvidia` |
|
||||
| [Dell XPS 15 9530](dell/xps/15-9530) | `<nixos-hardware/dell/xps/15-9530>` | `dell-xps-15-9530` |
|
||||
| [Dell XPS 15 9550, nvidia](dell/xps/15-9550/nvidia) | `<nixos-hardware/dell/xps/15-9550/nvidia>` | `dell-xps-15-9550-nvidia` |
|
||||
| [Dell XPS 15 9550](dell/xps/15-9550) | `<nixos-hardware/dell/xps/15-9550>` | `dell-xps-15-9550` |
|
||||
| [Dell XPS 15 9560, intel only](dell/xps/15-9560/intel) | `<nixos-hardware/dell/xps/15-9560/intel>` | `dell-xps-15-9560-intel` |
|
||||
| [Dell XPS 15 9560, nvidia only](dell/xps/15-9560/nvidia) | `<nixos-hardware/dell/xps/15-9560/nvidia>` | `dell-xps-15-9560-nvidia` |
|
||||
| [Dell XPS 15 9560](dell/xps/15-9560) | `<nixos-hardware/dell/xps/15-9560>` | `dell-xps-15-9560` |
|
||||
| [Dell XPS 15 9570, intel only](dell/xps/15-9570/intel) | `<nixos-hardware/dell/xps/15-9570/intel>` | `dell-xps-15-9570-intel` |
|
||||
| [Dell XPS 15 9570, nvidia](dell/xps/15-9570/nvidia) | `<nixos-hardware/dell/xps/15-9570/nvidia>` | `dell-xps-15-9570-nvidia` |
|
||||
| [Dell XPS 15 9570](dell/xps/15-9570) | `<nixos-hardware/dell/xps/15-9570>` | `dell-xps-15-9570` |
|
||||
| [Dell XPS 17 9700, intel](dell/xps/17-9700/intel) | `<nixos-hardware/dell/xps/17-9700/intel` | `dell-xps-17-9700-intel` |
|
||||
| [Dell XPS 17 9700, nvidia](dell/xps/17-9700/nvidia) | `<nixos-hardware/dell/xps/17-9700/nvidia>` | `dell-xps-17-9700-nvidia` |
|
||||
| [Dell XPS 17 9710, intel only](dell/xps/17-9710/intel) | `<nixos-hardware/dell/xps/17-9710/intel>` | `dell-xps-17-9710-intel` |
|
||||
| [Framework 11th Gen Intel Core](framework/13-inch/11th-gen-intel) | `<nixos-hardware/framework/13-inch/11th-gen-intel>` | `framework-11th-gen-intel` |
|
||||
| [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` |
|
||||
| [Framework 16 AMD Ryzen 7040 Series](framework/16-inch/7040-amd) | `<nixos-hardware/framework/16-inch/7040-amd>` | `framework-16-7040-amd` |
|
||||
| [Framework 16 AMD Ryzen AI 300 Series](framework/16-inch/amd-ai-300-series) | `<nixos-hardware/framework/16-inch/amd-ai-300-series>` | `framework-16-amd-ai-300-series` |
|
||||
| [FriendlyARM NanoPC-T4](friendlyarm/nanopc-t4) | `<nixos-hardware/friendlyarm/nanopc-t4>` | `friendlyarm-nanopc-t4` |
|
||||
| [FriendlyARM NanoPi R5s](friendlyarm/nanopi-r5s) | `<nixos-hardware/friendlyarm/nanopi-r5s>` | `friendlyarm-nanopi-r5s` |
|
||||
| [Focus M2 Gen 1](focus/m2/gen1) | `<nixos-hardware/focus/m2/gen1>` | `focus-m2-gen1` |
|
||||
| [Fydetab Duo](fydetab/duo) | `<nixos-hardware/fydetab/duo>` | `fydetab-duo` |
|
||||
| [Gigabyte B550](gigabyte/b550) | `<nixos-hardware/gigabyte/b550>` | `gigabyte-b550` |
|
||||
| [Gigabyte B650](gigabyte/b650) | `<nixos-hardware/gigabyte/b650>` | `gigabyte-b650` |
|
||||
| [GMKtec NucBox G3 Plus](gmktec/nucbox/g3-plus) | `<nixos-hardware/gmktec/nucbox/g3-plus>` | `gmktec-nucbox-g3-plus` |
|
||||
| [GPD Duo](gpd/duo) | `<nixos-hardware/gpd/duo>` | `gpd-duo` |
|
||||
| [GPD MicroPC](gpd/micropc) | `<nixos-hardware/gpd/micropc>` | `gpd-micropc` |
|
||||
| [GPD P2 Max](gpd/p2-max) | `<nixos-hardware/gpd/p2-max>` | `gpd-p2-max` |
|
||||
| [GPD Pocket 3](gpd/pocket-3) | `<nixos-hardware/gpd/pocket-3>` | `gpd-pocket-3` |
|
||||
| [GPD Pocket 4](gpd/pocket-4) | `<nixos-hardware/gpd/pocket-4>` | `gpd-pocket-4` |
|
||||
| [GPD WIN 2](gpd/win-2) | `<nixos-hardware/gpd/win-2>` | `gpd-win-2` |
|
||||
| [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` |
|
||||
| [HP Probook 460G11](hp/probook/460g11) | `<nixos-hardware/hp/probook/460g11>` | `hp-probook-46011` |
|
||||
| [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` |
|
||||
| [Lenovo IdeaPad Gaming 3 15arh05](lenovo/ideapad/15arh05) | `<nixos-hardware/lenovo/ideapad/15arh05>` | `lenovo-ideapad-15arh05` |
|
||||
| [Lenovo IdeaPad Gaming 3 15ach6](lenovo/ideapad/15ach6) | `<nixos-hardware/lenovo/ideapad/15ach6>` | `lenovo-ideapad-15ach6` |
|
||||
| [Lenovo IdeaPad 5 Pro 14imh9](lenovo/ideapad/14imh9) | `<nixos-hardware/lenovo/ideapad/14imh9>` | `lenovo-ideapad-14imh9` |
|
||||
| [Lenovo IdeaPad 5 Pro 16ach6](lenovo/ideapad/16ach6) | `<nixos-hardware/lenovo/ideapad/16ach6>` | `lenovo-ideapad-16ach6` |
|
||||
| [Lenovo IdeaPad Z510](lenovo/ideapad/z510) | `<nixos-hardware/lenovo/ideapad/z510>` | `lenovo-ideapad-z510` |
|
||||
| [Lenovo IdeaPad Slim 5](lenovo/ideapad/slim-5) | `<nixos-hardware/lenovo/ideapad/slim-5>` | `lenovo-ideapad-slim-5` |
|
||||
| [Lenovo IdeaPad Slim 5 16iah8](lenovo/ideapad/16iah8) | `<nixos-hardware/lenovo/ideapad/16iah8` | `lenovo-ideapad-s5-16iah8` |
|
||||
| [Lenovo IdeaPad 2-in-1 16ahp9](lenovo/ideapad/16ahp9) | `<nixos-hardware/lenovo/ideapad/16ahp9>` | `lenovo-ideapad-16ahp9` |
|
||||
| [Lenovo IdeaPad S145 15api](lenovo/ideapad/s145-15api) | `<nixos-hardware/lenovo/ideapad/s145-15api>` | `lenovo-ideapad-s145-15api` |
|
||||
| [Lenovo Legion 5 15ach6h](lenovo/legion/15ach6h) | `<nixos-hardware/lenovo/legion/15ach6h>` | `lenovo-legion-15ach6h` |
|
||||
| [Lenovo Legion 5 15ach6h (Hybrid)](lenovo/legion/15ach6h/hybrid) | `<nixos-hardware/lenovo/legion/15ach6h/hybrid>` | `lenovo-legion-15ach6h-hybrid` |
|
||||
| [Lenovo Legion 5 15ach6h (Nvidia)](lenovo/legion/15ach6h/hybrid) | `<nixos-hardware/lenovo/legion/15ach6h/nvidia>` | `lenovo-legion-15ach6h-nvidia` |
|
||||
| [Lenovo Legion 5 15arh05h](lenovo/legion/15arh05h) | `<nixos-hardware/lenovo/legion/15arh05h>` | `lenovo-legion-15arh05h` |
|
||||
| [Lenovo Legion 7 Slim 15ach6](lenovo/legion/15ach6) | `<nixos-hardware/lenovo/legion/15ach6>` | `lenovo-legion-15ach6` |
|
||||
| [Lenovo Legion 5 Pro 16ach6h](lenovo/legion/16ach6h) | `<nixos-hardware/lenovo/legion/16ach6h>` | `lenovo-legion-16ach6h` |
|
||||
| [Lenovo Legion 5 Pro 16ach6h (Hybrid)](lenovo/legion/16ach6h/hybrid) | `<nixos-hardware/lenovo/legion/16ach6h/hybrid>` | `lenovo-legion-16ach6h-hybrid` |
|
||||
| [Lenovo Legion 5 Pro 16ach6h (Nvidia)](lenovo/legion/16ach6h/nvidia) | `<nixos-hardware/lenovo/legion/16ach6h/nvidia>` | `lenovo-legion-16ach6h-nvidia` |
|
||||
| [Lenovo Legion 5 Pro 16arh7h (IGPU Only)](lenovo/legion/16arh7h/igpu-only) | `<nixos-hardware/lenovo/legion/16arh7h/igpu-only>` | `lenovo-legion-16arh7h-igpu-only` |
|
||||
| [Lenovo Legion 5 Pro 16arh7h (Hybrid)](lenovo/legion/16arh7h/hybrid) | `<nixos-hardware/lenovo/legion/16arh7h/hybrid>` | `lenovo-legion-16arh7h-hybrid` |
|
||||
| [Lenovo Legion 5 Pro 16IAH7H (Intel)](lenovo/legion/16iah7h/) | `<nixos-hardware/lenovo/legion/16iah7h>` | `lenovo-legion-16iah7h` |
|
||||
| [Lenovo Legion 7 16achg6 (Hybrid)](lenovo/legion/16achg6/hybrid) | `<nixos-hardware/lenovo/legion/16achg6/hybrid>` | `lenovo-legion-16achg6-hybrid` |
|
||||
| [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` |
|
||||
| [Lenovo Legion Y530 15ICH](lenovo/legion/15ich) | `<nixos-hardware/lenovo/legion/15ich>` | `lenovo-legion-y530-15ich` |
|
||||
| [Lenovo ThinkPad A475](lenovo/thinkpad/a475) | `<nixos-hardware/lenovo/thinkpad/a475>` | `lenovo-thinkpad-a475` |
|
||||
| [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` |
|
||||
| [Lenovo ThinkPad E495](lenovo/thinkpad/e495) | `<nixos-hardware/lenovo/thinkpad/e495>` | `lenovo-thinkpad-e495` |
|
||||
| [Lenovo ThinkPad L13 Yoga](lenovo/thinkpad/l13/yoga) | `<nixos-hardware/lenovo/thinkpad/l13/yoga>` | `lenovo-thinkpad-l13-yoga` |
|
||||
| [Lenovo ThinkPad L13](lenovo/thinkpad/l13) | `<nixos-hardware/lenovo/thinkpad/l13>` | `lenovo-thinkpad-l13` |
|
||||
| [Lenovo ThinkPad L14 (AMD)](lenovo/thinkpad/l14/amd) | `<nixos-hardware/lenovo/thinkpad/l14/amd>` | `lenovo-thinkpad-l14-amd` |
|
||||
| [Lenovo ThinkPad L14 (Intel)](lenovo/thinkpad/l14/intel) | `<nixos-hardware/lenovo/thinkpad/l14/intel>` | `lenovo-thinkpad-l14-intel` |
|
||||
| [Lenovo ThinkPad L480](lenovo/thinkpad/l480) | `<nixos-hardware/lenovo/thinkpad/l480>` | `lenovo-thinkpad-l480` |
|
||||
| [Lenovo ThinkPad P1 Gen 3](lenovo/thinkpad/p1/3th-gen) | `<nixos-hardware/lenovo/thinkpad/p1/3th-gen>` | `lenovo-thinkpad-p1-gen3` |
|
||||
| [Lenovo ThinkPad P1 Gen 5](lenovo/thinkpad/p1/gen5) | `<nixos-hardware/lenovo/thinkpad/p1/gen5>` | `lenovo-thinkpad-p1-gen5` |
|
||||
| [Lenovo ThinkPad P1 Gen 5 (Nvidia)](lenovo/thinkpad/p1/gen5/nvidia) | `<nixos-hardware/lenovo/thinkpad/p1/gen5/nvidia>` | `lenovo-thinkpad-p1-gen5-nvidia` |
|
||||
| [Lenovo ThinkPad P14s AMD Gen 1](lenovo/thinkpad/p14s/amd/gen1) | `<nixos-hardware/lenovo/thinkpad/p14s/amd/gen1>` | `lenovo-thinkpad-p14s-amd-gen1` |
|
||||
| [Lenovo ThinkPad P14s AMD Gen 2](lenovo/thinkpad/p14s/amd/gen2) | `<nixos-hardware/lenovo/thinkpad/p14s/amd/gen2>` | `lenovo-thinkpad-p14s-amd-gen2` |
|
||||
| [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` |
|
||||
| [Lenovo ThinkPad P51](lenovo/thinkpad/p51) | `<nixos-hardware/lenovo/thinkpad/p51>` | `lenovo-thinkpad-p51` |
|
||||
| [Lenovo ThinkPad P52](lenovo/thinkpad/p52) | `<nixos-hardware/lenovo/thinkpad/p52>` | `lenovo-thinkpad-p52` |
|
||||
| [Lenovo ThinkPad P53](lenovo/thinkpad/p53) | `<nixos-hardware/lenovo/thinkpad/p53>` | `lenovo-thinkpad-p53` |
|
||||
| [Lenovo ThinkPad T14 AMD Gen 1](lenovo/thinkpad/t14/amd/gen1) | `<nixos-hardware/lenovo/thinkpad/t14/amd/gen1>` | `lenovo-thinkpad-t14-amd-gen1` |
|
||||
| [Lenovo ThinkPad T14 AMD Gen 2](lenovo/thinkpad/t14/amd/gen2) | `<nixos-hardware/lenovo/thinkpad/t14/amd/gen2>` | `lenovo-thinkpad-t14-amd-gen2` |
|
||||
| [Lenovo ThinkPad T14 AMD Gen 3](lenovo/thinkpad/t14/amd/gen3) | `<nixos-hardware/lenovo/thinkpad/t14/amd/gen3>` | `lenovo-thinkpad-t14-amd-gen3` |
|
||||
| [Lenovo ThinkPad T14 AMD Gen 4](lenovo/thinkpad/t14/amd/gen4) | `<nixos-hardware/lenovo/thinkpad/t14/amd/gen4>` | `lenovo-thinkpad-t14-amd-gen4` |
|
||||
| [Lenovo ThinkPad T14 AMD Gen 5](lenovo/thinkpad/t14/amd/gen5) | `<nixos-hardware/lenovo/thinkpad/t14/amd/gen5>` | `lenovo-thinkpad-t14-amd-gen5` |
|
||||
| [Lenovo ThinkPad T14](lenovo/thinkpad/t14) | `<nixos-hardware/lenovo/thinkpad/t14>` | `lenovo-thinkpad-t14` |
|
||||
| [Lenovo ThinkPad T14 Intel Gen 1](lenovo/thinkpad/t14/intel/gen1) | `<nixos-hardware/lenovo/thinkpad/t14/intel/gen1>` | `lenovo-thinkpad-t14-intel-gen1` |
|
||||
| [Lenovo ThinkPad T14 Intel Gen 1 (Nvidia)](lenovo/thinkpad/t14/intel/gen1/nvidia) | `<nixos-hardware/lenovo/thinkpad/t14/intel/gen1/nvidia>`| `lenovo-thinkpad-t14-intel-gen1-nvidia`|
|
||||
| [Lenovo ThinkPad T14 Intel Gen 6](lenovo/thinkpad/t14/intel/gen6) | `<nixos-hardware/lenovo/thinkpad/t14/intel/gen6>` | `lenovo-thinkpad-t14-intel-gen6` |
|
||||
| [Lenovo ThinkPad T14s AMD Gen 1](lenovo/thinkpad/t14s/amd/gen1) | `<nixos-hardware/lenovo/thinkpad/t14s/amd/gen1>` | `lenovo-thinkpad-t14s-amd-gen1` |
|
||||
| [Lenovo ThinkPad T14s AMD Gen 4](lenovo/thinkpad/t14s/amd/gen4) | `<nixos-hardware/lenovo/thinkpad/t14s/amd/gen4>` | `lenovo-thinkpad-t14s-amd-gen4` |
|
||||
| [Lenovo ThinkPad T14s](lenovo/thinkpad/t14s) | `<nixos-hardware/lenovo/thinkpad/t14s>` | `lenovo-thinkpad-t14s` |
|
||||
| [Lenovo ThinkPad T410](lenovo/thinkpad/t410) | `<nixos-hardware/lenovo/thinkpad/t410>` | `lenovo-thinkpad-t410` |
|
||||
| [Lenovo ThinkPad T420](lenovo/thinkpad/t420) | `<nixos-hardware/lenovo/thinkpad/t420>` | `lenovo-thinkpad-t420` |
|
||||
| [Lenovo ThinkPad T430](lenovo/thinkpad/t430) | `<nixos-hardware/lenovo/thinkpad/t430>` | `lenovo-thinkpad-t430` |
|
||||
| [Lenovo ThinkPad T440p](lenovo/thinkpad/t440p) | `<nixos-hardware/lenovo/thinkpad/t440p>` | `lenovo-thinkpad-t440p` |
|
||||
| [Lenovo ThinkPad T440s](lenovo/thinkpad/t440s) | `<nixos-hardware/lenovo/thinkpad/t440s>` | `lenovo-thinkpad-t440s` |
|
||||
| [Lenovo ThinkPad T450s](lenovo/thinkpad/t450s) | `<nixos-hardware/lenovo/thinkpad/t450s>` | `lenovo-thinkpad-t450s` |
|
||||
| [Lenovo ThinkPad T460](lenovo/thinkpad/t460) | `<nixos-hardware/lenovo/thinkpad/t460>` | `lenovo-thinkpad-t460` |
|
||||
| [Lenovo ThinkPad T460p](lenovo/thinkpad/t460p) | `<nixos-hardware/lenovo/thinkpad/t460p>` | `lenovo-thinkpad-t460p` |
|
||||
| [Lenovo ThinkPad T460s](lenovo/thinkpad/t460s) | `<nixos-hardware/lenovo/thinkpad/t460s>` | `lenovo-thinkpad-t460s` |
|
||||
| [Lenovo ThinkPad T470s](lenovo/thinkpad/t470s) | `<nixos-hardware/lenovo/thinkpad/t470s>` | `lenovo-thinkpad-t470s` |
|
||||
| [Lenovo ThinkPad T480](lenovo/thinkpad/t480) | `<nixos-hardware/lenovo/thinkpad/t480>` | `lenovo-thinkpad-t480` |
|
||||
| [Lenovo ThinkPad T480s](lenovo/thinkpad/t480s) | `<nixos-hardware/lenovo/thinkpad/t480s>` | `lenovo-thinkpad-t480s` |
|
||||
| [Lenovo ThinkPad T490](lenovo/thinkpad/t490) | `<nixos-hardware/lenovo/thinkpad/t490>` | `lenovo-thinkpad-t490` |
|
||||
| [Lenovo ThinkPad T490s](lenovo/thinkpad/t490s) | `<nixos-hardware/lenovo/thinkpad/t490s>` | `lenovo-thinkpad-t490s` |
|
||||
| [Lenovo ThinkPad T495](lenovo/thinkpad/t495) | `<nixos-hardware/lenovo/thinkpad/t495>` | `lenovo-thinkpad-t495` |
|
||||
| [Lenovo ThinkPad T520](lenovo/thinkpad/t520) | `<nixos-hardware/lenovo/thinkpad/t520>` | `lenovo-thinkpad-t520` |
|
||||
| [Lenovo ThinkPad T550](lenovo/thinkpad/t550) | `<nixos-hardware/lenovo/thinkpad/t550>` | `lenovo-thinkpad-t550` |
|
||||
| [Lenovo ThinkPad T590](lenovo/thinkpad/t590) | `<nixos-hardware/lenovo/thinkpad/t590>` | `lenovo-thinkpad-t590` |
|
||||
| [Lenovo ThinkPad W520](lenovo/thinkpad/w520) | `<nixos-hardware/lenovo/thinkpad/w520>` | `lenovo-thinkpad-w520` |
|
||||
| [Lenovo ThinkPad X1 Yoga](lenovo/thinkpad/x1/yoga) | `<nixos-hardware/lenovo/thinkpad/x1/yoga>` | `lenovo-thinkpad-x1-yoga` |
|
||||
| [Lenovo ThinkPad X1 Yoga Gen 7](lenovo/thinkpad/x1/yoga/7th-gen/) | `<nixos-hardware/lenovo/thinkpad/x1/yoga/7th-gen>` | `lenovo-thinkpad-x1-yoga-7th-gen` |
|
||||
| [Lenovo ThinkPad X1 Yoga Gen 8](lenovo/thinkpad/x1/yoga/8th-gen/) | `<nixos-hardware/lenovo/thinkpad/x1/yoga/8th-gen>` | `lenovo-thinkpad-x1-yoga-8th-gen` |
|
||||
| [Lenovo ThinkPad X1 Yoga Gen 8 (IPU6)](lenovo/thinkpad/x1/yoga/8th-gen/ipu6) | `<nixos-hardware/lenovo/thinkpad/x1/yoga/8th-gen/ipu6>` | `lenovo-thinkpad-x1-yoga-8th-gen-ipu6` |
|
||||
| [Lenovo ThinkPad X1 (2nd Gen)](lenovo/thinkpad/x1/2nd-gen) | `<nixos-hardware/lenovo/thinkpad/x1/2nd-gen>` | `lenovo-thinkpad-x1-2nd-gen` |
|
||||
| [Lenovo ThinkPad X1 (6th Gen)](lenovo/thinkpad/x1/6th-gen) | `<nixos-hardware/lenovo/thinkpad/x1/6th-gen>` | `lenovo-thinkpad-x1-6th-gen` |
|
||||
| [Lenovo ThinkPad X1 (7th Gen)](lenovo/thinkpad/x1/7th-gen) | `<nixos-hardware/lenovo/thinkpad/x1/7th-gen>` | `lenovo-thinkpad-x1-7th-gen` |
|
||||
| [Lenovo ThinkPad X1 (9th Gen)](lenovo/thinkpad/x1/9th-gen) | `<nixos-hardware/lenovo/thinkpad/x1/9th-gen>` | `lenovo-thinkpad-x1-9th-gen` |
|
||||
| [Lenovo ThinkPad X1 (10th Gen)](lenovo/thinkpad/x1/10th-gen) | `<nixos-hardware/lenovo/thinkpad/x1/10th-gen>` | `lenovo-thinkpad-x1-10th-gen` |
|
||||
| [Lenovo ThinkPad X1 (11th Gen)](lenovo/thinkpad/x1/11th-gen) | `<nixos-hardware/lenovo/thinkpad/x1/11th-gen>` | `lenovo-thinkpad-x1-11th-gen` |
|
||||
| [Lenovo ThinkPad X1 (12th Gen)](lenovo/thinkpad/x1/12th-gen) | `<nixos-hardware/lenovo/thinkpad/x1/12th-gen>` | `lenovo-thinkpad-x1-12th-gen` |
|
||||
| [Lenovo ThinkPad X1 (13th Gen)](lenovo/thinkpad/x1/13th-gen) | `<nixos-hardware/lenovo/thinkpad/x1/13th-gen>` | `lenovo-thinkpad-x1-13th-gen` |
|
||||
| [Lenovo ThinkPad X1 Extreme Gen 2](lenovo/thinkpad/x1-extreme/gen2) | `<nixos-hardware/lenovo/thinkpad/x1-extreme/gen2>` | `lenovo-thinkpad-x1-extreme-gen2` |
|
||||
| [Lenovo ThinkPad X1 Extreme Gen 3](lenovo/thinkpad/x1-extreme/gen3) | `<nixos-hardware/lenovo/thinkpad/x1-extreme/gen3>` | `lenovo-thinkpad-x1-extreme-gen3` |
|
||||
| [Lenovo ThinkPad X1 Extreme Gen 4](lenovo/thinkpad/x1-extreme/gen4) | `<nixos-hardware/lenovo/thinkpad/x1-extreme/gen4>` | `lenovo-thinkpad-x1-extreme-gen4` |
|
||||
| [Lenovo ThinkPad X1 Nano Gen 1](lenovo/thinkpad/x1-nano/gen1) | `<nixos-hardware/lenovo/thinkpad/x1-nano/gen1>` | `lenovo-thinkpad-x1-nano-gen1` |
|
||||
| [Lenovo ThinkPad X13s](lenovo/thinkpad/x13s) | `<nixos-hardware/lenovo/thinkpad/x13s>` | `lenovo-thinkpad-x13s` |
|
||||
| [Lenovo ThinkPad X13 Yoga](lenovo/thinkpad/x13/yoga) | `<nixos-hardware/lenovo/thinkpad/x13/yoga>` | `lenovo-thinkpad-x13-yoga` |
|
||||
| [Lenovo ThinkPad X13 Yoga (3th Gen)](lenovo/thinkpad/x13/yoga/3th-gen) | `<nixos-hardware/lenovo/thinkpad/x13/yoga/3th-gen>` | `lenovo-thinkpad-x13-yoga-3th-gen` |
|
||||
| [Lenovo ThinkPad X13 (Intel)](lenovo/thinkpad/x13/intel) | `<nixos-hardware/lenovo/thinkpad/x13/intel>` | `lenovo-thinkpad-x13-intel` |
|
||||
| [Lenovo ThinkPad X13 (AMD)](lenovo/thinkpad/x13/amd) | `<nixos-hardware/lenovo/thinkpad/x13/amd>` | `lenovo-thinkpad-x13-amd` |
|
||||
| [Lenovo ThinkPad X140e](lenovo/thinkpad/x140e) | `<nixos-hardware/lenovo/thinkpad/x140e>` | `lenovo-thinkpad-x140e` |
|
||||
| [Lenovo ThinkPad X200s](lenovo/thinkpad/x200s) | `<nixos-hardware/lenovo/thinkpad/x200s>` | `lenovo-thinkpad-x200s` |
|
||||
| [Lenovo ThinkPad X220](lenovo/thinkpad/x220) | `<nixos-hardware/lenovo/thinkpad/x220>` | `lenovo-thinkpad-x220` |
|
||||
| [Lenovo ThinkPad X230](lenovo/thinkpad/x230) | `<nixos-hardware/lenovo/thinkpad/x230>` | `lenovo-thinkpad-x230` |
|
||||
| [Lenovo ThinkPad X250](lenovo/thinkpad/x250) | `<nixos-hardware/lenovo/thinkpad/x250>` | `lenovo-thinkpad-x250` |
|
||||
| [Lenovo ThinkPad X260](lenovo/thinkpad/x260) | `<nixos-hardware/lenovo/thinkpad/x260>` | `lenovo-thinkpad-x260` |
|
||||
| [Lenovo ThinkPad X270](lenovo/thinkpad/x270) | `<nixos-hardware/lenovo/thinkpad/x270>` | `lenovo-thinkpad-x270` |
|
||||
| [Lenovo ThinkPad X280](lenovo/thinkpad/x280) | `<nixos-hardware/lenovo/thinkpad/x280>` | `lenovo-thinkpad-x280` |
|
||||
| [Lenovo ThinkPad X390](lenovo/thinkpad/x390) | `<nixos-hardware/lenovo/thinkpad/x390>` | `lenovo-thinkpad-x390` |
|
||||
| [Lenovo ThinkPad Z Series](lenovo/thinkpad/z) | `<nixos-hardware/lenovo/thinkpad/z>` | `lenovo-thinkpad-z` |
|
||||
| [Lenovo ThinkPad Z13 Gen 1](lenovo/thinkpad/z/gen1/z13) | `<nixos-hardware/lenovo/thinkpad/z/gen1/z13>` | `lenovo-thinkpad-z13-gen1` |
|
||||
| [Lenovo ThinkPad Z13 Gen 2](lenovo/thinkpad/z/gen2/z13) | `<nixos-hardware/lenovo/thinkpad/z/gen2/z13>` | `lenovo-thinkpad-z13-gen2` |
|
||||
| [Lenovo XiaoXin Pro 14imh9 2024](lenovo/ideapad/14imh9) | `<nixos-hardware/lenovo/ideapad/14imh9>` | `lenovo-ideapad-14imh9` |
|
||||
| [LENOVO Yoga 6 13ALC6 82ND](lenovo/yoga/6/13ALC6) | `<nixos-hardware/lenovo/yoga/6/13ALC6>` | `lenovo-yoga-6-13ALC6` |
|
||||
| [LENOVO Yoga Slim 7 Pro-X 14ARH7 82ND](lenovo/yoga/7/14ARH7/amdgpu) | `<nixos-hardware/lenovo/yoga/7/14ARH7/amdgpu>` | `lenovo-yoga-7-14ARH7-amdgpu` |
|
||||
| [LENOVO Yoga Slim 7 Pro-X 14ARH7 82ND](lenovo/yoga/7/14ARH7/nvidia) | `<nixos-hardware/lenovo/yoga/7/14ARH7/nvidia>` | `lenovo-yoga-7-14ARH7-nvidia` |
|
||||
| [Lenovo Yoga Slim 7i Pro X 14IAH7 (Integrated)](lenovo/yoga/7/14IAH7/integrated) | `<nixos-hardware/lenovo/yoga/7/14IAH7/integrated>` | `lenovo-yoga-7-14IAH7-integrated` |
|
||||
| [Lenovo Yoga Slim 7i Pro X 14IAH7 (Hybrid)](lenovo/yoga/7/14IAH7/hybrid) | `<nixos-hardware/lenovo/yoga/7/14IAH7/hybrid>` | `lenovo-yoga-7-14IAH7-hybrid` |
|
||||
| [Lenovo Yoga Slim 7 14ILL10](lenovo/yoga/7/14ILL10) | `<nixos-hardware/lenovo/yoga/7/14ILL10>` | `lenovo-yoga-7-14ILL10` |
|
||||
| [LENOVO Yoga 7 Slim Gen8](lenovo/yoga/7/slim/gen8) | `<nixos-hardware/lenovo/yoga/7/slim/gen8>` | `lenovo-yoga-7-slim-gen8` |
|
||||
| [Linglong Nova Studio](linglong/nova-studio) | `<nixos-hardware/linglong/nova-studio>` | `linglong-nova-studio` |
|
||||
| [MSI B550-A PRO](msi/b550-a-pro) | `<nixos-hardware/msi/b550-a-pro>` | `msi-b550-a-pro` |
|
||||
| [MSI B350 TOMAHAWK](msi/b350-tomahawk) | `<nixos-hardware/msi/b350-tomahawk>` | `msi-b350-tomahawk` |
|
||||
| [MSI B550 TOMAHAWK](msi/b550-tomahawk) | `<nixos-hardware/msi/b550-tomahawk>` | `msi-b550-tomahawk` |
|
||||
| [MSI GF63 Thin](msi/gf63) | `<nixos-hardware/msi/gf63>` | `msi-gf63` |
|
||||
| [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` |
|
||||
| [Microsoft Surface Pro (Intel)](microsoft/surface/surface-pro-intel) | `<nixos-hardware/microsoft/surface/surface-pro-intel>` | `microsoft-surface-pro-intel` |
|
||||
| [Microsoft Surface Laptop (AMD)](microsoft/surface/surface-laptop-amd) | `<nixos-hardware/microsoft/surface/surface-laptop-amd>` | `microsoft-surface-laptop-amd` |
|
||||
| [Microsoft Surface Range (Common Modules)](microsoft/surface/common) | `<nixos-hardware/microsoft/surface/common>` | `microsoft-surface-common` |
|
||||
| [Microsoft Surface Pro 3](microsoft/surface-pro/3) | `<nixos-hardware/microsoft/surface-pro/3>` | `microsoft-surface-pro-3` |
|
||||
| [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` |
|
||||
| [NXP iMX8 MPlus Evaluation Kit](nxp/imx8mp-evk) | `<nixos-hardware/nxp/imx8mp-evk>` | `nxp-imx8mp-evk` |
|
||||
| [NXP iMX8 MQuad Evaluation Kit](nxp/imx8mq-evk) | `<nixos-hardware/nxp/imx8mq-evk>` | `nxp-imx8mq-evk` |
|
||||
| [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` |
|
||||
| [Omen 15-en0010ca](omen/15-en0010ca) | `<nixos-hardware/omen/15-en0010ca>` | `omen-15-en0010ca` |
|
||||
| [Omen 16-n0005ne](omen/16-n0005ne) | `<nixos-hardware/omen/16-n0005ne>` | `omen-16-n0005ne` |
|
||||
| [Omen 16-n0280nd](/omen/16-n0280nd) | `<nixos-hardware/omen/16-n0280nd>` | `omen-16-n0280nd` |
|
||||
| [Omen 15-en1007sa](omen/15-en1007sa) | `<nixos-hardware/omen/15-en1007sa>` | `omen-15-en1007sa` |
|
||||
| [Omen 15-en0002np](omen/15-en0002np) | `<nixos-hardware/omen/15-en0002np>` | `omen-15-en0002np` |
|
||||
| [One-Netbook OneNetbook 4](onenetbook/4) | `<nixos-hardware/onenetbook/4>` | `onenetbook-4` |
|
||||
| [Panasonic Let's Note CF-LX3](panasonic/letsnote/cf-lx3) | `<nixos-hardware/panasonic/letsnote/cf-lx3>` | `panasonic-letsnote-cf-lx3` |
|
||||
| [Panasonic Let's Note CF-LX4](panasonic/letsnote/cf-lx4) | `<nixos-hardware/panasonic/letsnote/cf-lx4>` | `letsnote-cf-lx4` |
|
||||
| [PC Engines APU](pcengines/apu) | `<nixos-hardware/pcengines/apu>` | `pcengines-apu` |
|
||||
| [PINE64 Pinebook Pro](pine64/pinebook-pro/) | `<nixos-hardware/pine64/pinebook-pro>` | `pine64-pinebook-pro` |
|
||||
| [PINE64 RockPro64](pine64/rockpro64/) | `<nixos-hardware/pine64/rockpro64>` | `pine64-rockpro64` |
|
||||
| [PINE64 STAR64](pine64/star64/) | `<nixos-hardware/pine64/star64>` | `pine64-star64` |
|
||||
| [Protectli VP4670](protectli/vp4670/) | `<nixos-hardware/protectli/vp4670>` | `protectli-vp4670` |
|
||||
| [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 1](raspberry-pi/1) | `<nixos-hardware/raspberry-pi/1>` | `raspberry-pi-1` |
|
||||
| [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` |
|
||||
| [Raspberry Pi 5](raspberry-pi/5) | `<nixos-hardware/raspberry-pi/5>` | `raspberry-pi-5` |
|
||||
| [Samsung Series 9 NP900X3C](samsung/np900x3c) | `<nixos-hardware/samsung/np900x3c>` | `samsung-np900x3c` |
|
||||
| [Slimbook Hero RPL-RTX](slimbook/hero/rpl-rtx) | `<nixos-hardware/slimbook/hero/rpl-rtx>` | `slimbook-hero-rpl-rtx` |
|
||||
| [StarFive VisionFive v1](starfive/visionfive/v1) | `<nixos-hardware/starfive/visionfive/v1>` | `starfive-visionfive-v1` |
|
||||
| [StarFive VisionFive 2](starfive/visionfive/v2) | `<nixos-hardware/starfive/visionfive/v2>` | `starfive-visionfive-2` |
|
||||
| [StarLabs StarLite 5 (I5)](starlabs/starlite/i5) | `<nixos-hardware/starlabs/starlite/i5>` | `starlabs-starlite-i5` |
|
||||
| [Supermicro A1SRi-2758F](supermicro/a1sri-2758f) | `<nixos-hardware/supermicro/a1sri-2758f>` | `supermicro-a1sri-2758f` |
|
||||
| [Supermicro M11SDV-8C-LN4F](supermicro/m11sdv-8c-ln4f) | `<nixos-hardware/supermicro/m11sdv-8c-ln4f>` | `supermicro-m11sdv-8c-ln4f` |
|
||||
| [Supermicro X10SLL-F](supermicro/x10sll-f) | `<nixos-hardware/supermicro/x10sll-f>` | `supermicro-x10sll-f` |
|
||||
| [Supermicro X12SCZ-TLN4F](supermicro/x12scz-tln4f) | `<nixos-hardware/supermicro/x12scz-tln4f>` | `supermicro-x12scz-tln4f` |
|
||||
| [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` |
|
||||
| [Tuxedo InfinityBook v4](tuxedo/infinitybook/v4) | `<nixos-hardware/tuxedo/infinitybook/v4>` | `tuxedo-infinitybook-v4` |
|
||||
| [TUXEDO Aura 15 - Gen1](tuxedo/aura/15/gen1) | `<nixos-hardware/tuxedo/aura/15/gen1>` | `tuxedo-aura-15-gen1` |
|
||||
| [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` |
|
||||
| [Xiaomi Redmibook 16 Pro 2024](xiaomi/redmibook/16-pro-2024) | `<nixos-hardware/xiaomi/redmibook/16-pro-2024>` | `xiaomi-redmibook-16-pro-2024` |
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
NixOS profiles covering hardware quirks.
|
||||
|
||||
** Setup
|
||||
|
||||
Add and update ~nixos-hardware~ channel:
|
||||
|
||||
: $ sudo nix-channel --add https://github.com/NixOS/nixos-hardware/archive/master.tar.gz nixos-hardware
|
||||
: $ sudo nix-channel --update nixos-hardware
|
||||
|
||||
Then import an appropriate profile path from the table below. For example, to
|
||||
enable ThinkPad X220 profile, your ~imports~ in ~/etc/nixos/configuration.nix~
|
||||
should look like:
|
||||
|
||||
: imports = [ <nixos-hardware/lenovo/thinkpad/x220> ./hardware-configuration.nix ];
|
||||
|
||||
** Profiles
|
||||
|
||||
|---------------------------+--------------------------------------------|
|
||||
| Model | Path |
|
||||
|---------------------------+--------------------------------------------|
|
||||
| [[file:acer/aspire/4810t][Acer Aspire 4810T]] | ~<nixos-hardware/acer/aspire/4810t>~ |
|
||||
| Airis N990 | ~<nixos-hardware/airis/n990>~ |
|
||||
| Apple MacBook Air 4,X | ~<nixos-hardware/apple/macbook-air/4>~ |
|
||||
| Apple MacBook Air 6,X | ~<nixos-hardware/apple/macbook-air/6>~ |
|
||||
| [[file:apple/macbook-pro/10-1][Apple MacBook Pro 10,1]] | ~<nixos-hardware/apple/macbook-pro/10-1>~ |
|
||||
| Apple MacBook Pro 12,1 | ~<nixos-hardware/apple/macbook-pro/12-1>~ |
|
||||
| [[file:dell/xps/15-9550][Dell XPS 15 9550]] | ~<nixos-hardware/dell/xps/15-9550>~ |
|
||||
| [[file:inversepath/usbarmory][Inverse Path USB armory]] | ~<nixos-hardware/inversepath/usbarmory>~ |
|
||||
| Lenovo IdeaPad Z510 | ~<nixos-hardware/lenovo/ideapad/z510>~ |
|
||||
| Lenovo ThinkPad T410 | ~<nixos-hardware/lenovo/thinkpad/t410>~ |
|
||||
| Lenovo ThinkPad T440p | ~<nixos-hardware/lenovo/thinkpad/t440p>~ |
|
||||
| Lenovo ThinkPad T460s | ~<nixos-hardware/lenovo/thinkpad/t460s>~ |
|
||||
| Lenovo ThinkPad X140e | ~<nixos-hardware/lenovo/thinkpad/x140e>~ |
|
||||
| Lenovo ThinkPad X220 | ~<nixos-hardware/lenovo/thinkpad/x220>~ |
|
||||
| Lenovo ThinkPad X250 | ~<nixos-hardware/lenovo/thinkpad/x250>~ |
|
||||
| [[file:microsoft/surface-pro/3][Microsoft Surface Pro 3]] | ~<nixos-hardware/microsoft/surface-pro/3>~ |
|
||||
| [[file:raspberry-pi/2][Raspberry Pi 2]] | ~<nixos-hardware/raspberry-pi/2>~ |
|
||||
| [[file:samsung/np900x3c][Samsung Series 9 NP900X3C]] | ~<nixos-hardware/samsung/np900x3c>~ |
|
||||
| Supermicro A1SRi-2758F | ~<nixos-hardware/supermicro/a1sri-2758f>~ |
|
||||
| Supermicro X10SLL-F | ~<nixos-hardware/supermicro/x10sll-f>~ |
|
||||
|---------------------------+--------------------------------------------|
|
||||
@@ -14,12 +14,14 @@
|
||||
"vga=0x317"
|
||||
"video=vesafb:ywrap"
|
||||
|
||||
# Important, disable KMS to fix backlight regulation:
|
||||
# Important, to disable Kernel Mode Setting for the graphics card
|
||||
# This will allow backlight regulation
|
||||
"nomodeset"
|
||||
];
|
||||
};
|
||||
|
||||
# TODO: reverse compat
|
||||
hardware.opengl.driSupport = false;
|
||||
|
||||
services.xserver = {
|
||||
defaultDepth = lib.mkDefault 24;
|
||||
};
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
# Acer Nitro 5 (AN515-55)
|
||||
|
||||
## Hardware Configuration
|
||||
|
||||
- Intel Core i5-10500H
|
||||
- Intel UHD Graphics + NVIDIA GeForce GTX 1650 Mobile (Turing, TU117M)
|
||||
- M.2 NVMe SSD
|
||||
|
||||
## Notes
|
||||
|
||||
- PRIME offload works via `nvidia-offload <cmd>` (enabled by default
|
||||
via `common/gpu/nvidia/prime.nix`). GPU runtime D3 is not supported
|
||||
on this chassis — the discrete GPU stays powered on at all times,
|
||||
even when idle.
|
||||
- NVIDIA open kernel modules work on this Turing GPU (enabled by
|
||||
default via `common/gpu/nvidia/turing`), tested with the 595 series.
|
||||
- `acer_wmi` loads and registers the `platform_profile` driver, but
|
||||
no sysfs interface is exposed (`/sys/firmware/acpi/platform_profile`
|
||||
does not exist). Fan/performance modes are only reachable through
|
||||
Acer's proprietary WMI methods (NitroSense on Windows).
|
||||
- Keyboard backlight is not exposed via the standard LED class
|
||||
(`/sys/class/leds`) — `brightnessctl` only controls panel brightness.
|
||||
@@ -1,21 +0,0 @@
|
||||
{ lib, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../../../../common/cpu/intel
|
||||
../../../../common/gpu/nvidia/prime.nix
|
||||
../../../../common/gpu/nvidia/turing
|
||||
../../../../common/pc/laptop
|
||||
../../../../common/pc/ssd
|
||||
];
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = lib.mkDefault true;
|
||||
powerManagement.enable = lib.mkDefault true;
|
||||
|
||||
prime = {
|
||||
intelBusId = "PCI:0@0:2:0";
|
||||
nvidiaBusId = "PCI:1@0:0:0";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
{ pkgs, ... }:
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [ ../../common/pc/laptop ];
|
||||
@@ -9,10 +9,10 @@
|
||||
kernelParams = [
|
||||
"apm=on"
|
||||
"acpi=on"
|
||||
"vga=0x317" # 1024x768
|
||||
"vga=0x317" # 1024x768
|
||||
"console=tty1"
|
||||
"video=vesafb:ywrap" # Faster scroll
|
||||
];
|
||||
"video=vesafb:ywrap" # Faster scroll
|
||||
];
|
||||
};
|
||||
|
||||
hardware.firmware = with pkgs; [ intel2200BGFirmware ];
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
{
|
||||
imports = [
|
||||
../../../common/cpu/intel/alder-lake
|
||||
];
|
||||
|
||||
# lopter@(2025-02-06): according to sensors-detect this comes with an ITE
|
||||
# IT8613E super io chip, which is not officialy supported yet. See also:
|
||||
#
|
||||
# - unofficial driver: https://github.com/frankcrawford/it87
|
||||
# - reddit thread on with useful information to configure pwm from the bios:
|
||||
# https://www.reddit.com/r/MiniPCs/comments/1bnkg1u/aoostar_r1r7_question_does_the_fan_header_support/
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
## Switching Cmd and Alt/AltGr
|
||||
|
||||
This will switch the left Alt and Cmd key as well as the right Alt/AltGr and Cmd key.
|
||||
|
||||
```nix
|
||||
boot.kernelParams = [
|
||||
"hid_apple.swap_opt_cmd=1"
|
||||
];
|
||||
```
|
||||
|
||||
Reference: https://wiki.archlinux.org/index.php/Apple_Keyboard#Switching_Cmd_and_Alt/AltGr
|
||||
+6
-1
@@ -1,7 +1,12 @@
|
||||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
hardware.facetimehd.enable = lib.mkDefault (config.nixpkgs.config.allowUnfree or false);
|
||||
boot.kernelParams = [
|
||||
"hid_apple.iso_layout=0"
|
||||
];
|
||||
|
||||
hardware.facetimehd.enable = lib.mkDefault
|
||||
(config.nixpkgs.config.allowUnfree or false);
|
||||
|
||||
services.mbpfan.enable = lib.mkDefault true;
|
||||
}
|
||||
@@ -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]
|
||||
```
|
||||
@@ -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,61 +0,0 @@
|
||||
# iMac 14,2, NixOS (nixos-unstable, September 2024)
|
||||
|
||||
## Audio
|
||||
- [x] ok
|
||||
|
||||
## Bluetooth
|
||||
- [x] ok
|
||||
|
||||
## Thunderbolt
|
||||
- [x] ok
|
||||
|
||||
## SATA
|
||||
- [x] ok
|
||||
|
||||
## NVME
|
||||
- [x] ok
|
||||
|
||||
## Suspend/Resumer
|
||||
- [x] ok
|
||||
|
||||
## Wifi
|
||||
- [x] ok
|
||||
|
||||
## Graphics
|
||||
- [x] Latest unsupported Nvidia drivers available are 390.157, working with Kernel 6.10.6.
|
||||
|
||||
## LSPCI
|
||||
|
||||
```
|
||||
❯ lspci
|
||||
00:00.0 Host bridge: Intel Corporation 4th Gen Core Processor DRAM Controller (rev 06)
|
||||
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06)
|
||||
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 05)
|
||||
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
|
||||
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
|
||||
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d5)
|
||||
00:1c.2 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #3 (rev d5)
|
||||
00:1c.3 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #4 (rev d5)
|
||||
00:1c.4 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #5 (rev d5)
|
||||
00:1f.0 ISA bridge: Intel Corporation Z87 Express LPC Controller (rev 05)
|
||||
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05)
|
||||
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 05)
|
||||
01:00.0 VGA compatible controller: NVIDIA Corporation GK104M [GeForce GTX 775M Mac Edition] (rev a1)
|
||||
01:00.1 Audio device: NVIDIA Corporation GK104 HDMI Audio Controller (rev a1)
|
||||
02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
|
||||
03:00.0 Network controller: Broadcom Inc. and subsidiaries BCM4360 802.11ac Dual Band Wireless Network Adapter (rev 03)
|
||||
04:00.0 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM57766 Gigabit Ethernet PCIe (rev 01)
|
||||
04:00.1 SD Host controller: Broadcom Inc. and subsidiaries BCM57765/57785 SDXC/MMC Card Reader (rev 01)
|
||||
05:00.0 PCI bridge: Intel Corporation DSL3510 Thunderbolt Controller [Cactus Ridge 4C 2012] (rev 03)
|
||||
06:00.0 PCI bridge: Intel Corporation DSL3510 Thunderbolt Controller [Cactus Ridge 4C 2012] (rev 03)
|
||||
06:03.0 PCI bridge: Intel Corporation DSL3510 Thunderbolt Controller [Cactus Ridge 4C 2012] (rev 03)
|
||||
06:04.0 PCI bridge: Intel Corporation DSL3510 Thunderbolt Controller [Cactus Ridge 4C 2012] (rev 03)
|
||||
06:05.0 PCI bridge: Intel Corporation DSL3510 Thunderbolt Controller [Cactus Ridge 4C 2012] (rev 03)
|
||||
06:06.0 PCI bridge: Intel Corporation DSL3510 Thunderbolt Controller [Cactus Ridge 4C 2012] (rev 03)
|
||||
07:00.0 System peripheral: Intel Corporation DSL3510 Thunderbolt Controller [Cactus Ridge 4C 2012] (rev 03)
|
||||
```
|
||||
|
||||
## Links
|
||||
|
||||
- https://support.apple.com/en-us/111970
|
||||
- https://everymac.com/ultimate-mac-lookup/?search_keywords=iMac14,2
|
||||
@@ -1,37 +0,0 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
../.
|
||||
../../../common/cpu/intel
|
||||
../../../common/gpu/nvidia
|
||||
../../../common/gpu/nvidia/kepler
|
||||
../../../common/hidpi.nix
|
||||
];
|
||||
|
||||
boot = {
|
||||
initrd.kernelModules = [
|
||||
"applesmc"
|
||||
"applespi"
|
||||
"intel_lpss_pci"
|
||||
"spi_pxa2xx_platform"
|
||||
"kvm-intel"
|
||||
];
|
||||
blacklistedKernelModules = [
|
||||
"b43"
|
||||
"ssb"
|
||||
"brcmfmac"
|
||||
"brcmsmac"
|
||||
"bcma"
|
||||
];
|
||||
kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "6.0") pkgs.linuxPackages_latest;
|
||||
};
|
||||
|
||||
hardware = {
|
||||
bluetooth.enable = lib.mkDefault true;
|
||||
};
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
# iMac 18,2, NixOS 24.05 (2024)
|
||||
|
||||
## Audio
|
||||
- [ ] broken until https://github.com/NixOS/nixpkgs/pull/322968 lands in master
|
||||
|
||||
## Bluetooth
|
||||
- [ ] broken until https://github.com/NixOS/nixpkgs/pull/322964 lands in master
|
||||
|
||||
## Thunderbolt
|
||||
- [x] ok
|
||||
|
||||
## SATA
|
||||
- [x] ok
|
||||
|
||||
## NVME
|
||||
- [x] ok, older NVME / Controller may need workaround for resume
|
||||
|
||||
## Suspend/Resumer
|
||||
- [ ] Thunderbolt, WIFI, NVME may still need reboot (sometimes).
|
||||
|
||||
## Wifi
|
||||
- [x] Working (2,4Ghz & 5Ghz supported), WEP3 broken -> brcm fw blob (2015)
|
||||
|
||||
## Resources (Intel iMac/MacBook share similar custom hardware)
|
||||
- https://github.com/Dunedan/mbp-2016-linux?tab=readme-ov-file
|
||||
- https://gist.github.com/roadrunner2/1289542a748d9a104e7baec6a92f9cd7
|
||||
@@ -1,34 +0,0 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
../.
|
||||
../../../common/cpu/intel/kaby-lake
|
||||
../../../common/gpu/amd
|
||||
../../../common/hidpi.nix
|
||||
../../../common/pc/ssd
|
||||
];
|
||||
|
||||
# apple smc (TODO: check spi)
|
||||
boot = {
|
||||
initrd.kernelModules = [
|
||||
"applespi"
|
||||
"spi_pxa2xx_platform"
|
||||
"intel_lpss_pci"
|
||||
"applesmc"
|
||||
];
|
||||
kernelParams = [ "intel_iommu=on" ];
|
||||
kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "6.0") pkgs.linuxPackages_latest;
|
||||
};
|
||||
|
||||
# Wifi, CPU Microcode FW updates
|
||||
networking.enableB43Firmware = lib.mkDefault true;
|
||||
hardware = {
|
||||
enableRedistributableFirmware = lib.mkDefault true;
|
||||
cpu.intel.updateMicrocode = lib.mkDefault true;
|
||||
};
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
imports = [
|
||||
../.
|
||||
../../common/cpu/intel
|
||||
../../common/pc/laptop
|
||||
../../common/pc/ssd
|
||||
];
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../../.
|
||||
../../../common/cpu/intel
|
||||
../../../common/pc/laptop
|
||||
../../../common/pc/ssd
|
||||
];
|
||||
|
||||
# Built-in iSight is recognized by the generic uvcvideo kernel module
|
||||
hardware.facetimehd.enable = false;
|
||||
}
|
||||
@@ -1,10 +1,7 @@
|
||||
{ lib, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../.
|
||||
../../../common/cpu/intel/sandy-bridge
|
||||
];
|
||||
imports = [ ../. ];
|
||||
|
||||
boot.kernelParams = [
|
||||
"acpi_backlight=vendor"
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../.
|
||||
];
|
||||
}
|
||||
@@ -3,14 +3,12 @@
|
||||
{
|
||||
imports = [ ../. ];
|
||||
|
||||
boot.blacklistedKernelModules = [ "bcma" ];
|
||||
|
||||
boot = {
|
||||
# Divides power consumption by two.
|
||||
kernelParams = [ "acpi_osi=" ];
|
||||
extraModulePackages = with config.boot.kernelPackages; [ mba6x_bl ];
|
||||
kernelModules = [ "mba6x_bl" ];
|
||||
};
|
||||
|
||||
services.xserver.deviceSection = lib.mkDefault ''
|
||||
Option "TearFree" "true"
|
||||
Option "Backlight" "mba6x_backlight"
|
||||
'';
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
# MacBook Air 7,X
|
||||
|
||||
### For wifi driver
|
||||
broadcomt_sta was the best working driver I could find, however on the normal kernel, you need to `sudo modprobe -r wl` and `sudo modprobe wl`, however it was fully working on the zen kernel.
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../.
|
||||
];
|
||||
}
|
||||
@@ -3,6 +3,6 @@
|
||||
../.
|
||||
../../common/cpu/intel
|
||||
../../common/pc/laptop
|
||||
../../common/pc/ssd
|
||||
../../common/pc/laptop/ssd
|
||||
];
|
||||
}
|
||||
@@ -1,14 +1,17 @@
|
||||
{ lib, ... }:
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../.
|
||||
../../../common/pc/ssd
|
||||
../../../common/gpu/nvidia/kepler
|
||||
../../../common/pc/laptop/ssd
|
||||
];
|
||||
|
||||
# TODO: reverse compat
|
||||
hardware.graphics.enable32Bit = lib.mkDefault true;
|
||||
# TODO: boot loader
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
# TODO: drop
|
||||
hardware.opengl.driSupport32Bit = true;
|
||||
|
||||
services.xserver = {
|
||||
# TODO: we should not enable unfree drivers
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
# Apple MacBook Pro 11,1
|
||||
|
||||
This configuration is tested on my 13" *MacBook Pro (Retina, 13-inch, Late 2013),* model number `A1502`.
|
||||
|
||||
The 6.11.5 kernel appears to work well with only minor adjustments on this notebook. Note that my machine has a BCM4360 wireless card (PCI-ID `14e4:43a0`) which appears to only work with the nonfree `wl` driver.
|
||||
|
||||
## Additional resources
|
||||
|
||||
* Linux Wireless Documentation: [List of hardware](https://wireless.docs.kernel.org/en/latest/en/users/drivers/b43.html#list-of-hardware)
|
||||
* Arch linux wiki: [MacBookPro11,x](https://wiki.archlinux.org/index.php/MacBookPro11,x)
|
||||
* Kernel patches: [MacBookPro11,x](https://bugzilla.kernel.org/buglist.cgi?quicksearch=macbookpro11)
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
{ lib, config, ... }:
|
||||
{
|
||||
imports = [
|
||||
../.
|
||||
../../../common/pc/ssd
|
||||
../../../common/cpu/intel/haswell
|
||||
];
|
||||
|
||||
hardware.enableRedistributableFirmware = lib.mkDefault true;
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
# Apple MacBookPro11,4
|
||||
|
||||
[Product page](https://support.apple.com/en-us/111955)
|
||||
|
||||
|
||||
## Tested Hardware
|
||||
```console
|
||||
foo@bar:~$ lspci -nn
|
||||
00:00.0 Host bridge [0600]: Intel Corporation Crystal Well DRAM Controller [8086:0d04] (rev 08)
|
||||
00:01.0 PCI bridge [0604]: Intel Corporation Crystal Well PCI Express x16 Controller [8086:0d01] (rev 08)
|
||||
00:01.1 PCI bridge [0604]: Intel Corporation Crystal Well PCI Express x8 Controller [8086:0d05] (rev 08)
|
||||
00:02.0 VGA compatible controller [0300]: Intel Corporation Crystal Well Integrated Graphics Controller [8086:0d26] (rev 08)
|
||||
00:03.0 Audio device [0403]: Intel Corporation Crystal Well HD Audio Controller [8086:0d0c] (rev 08)
|
||||
00:14.0 USB controller [0c03]: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI [8086:8c31] (rev 05)
|
||||
00:16.0 Communication controller [0780]: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 [8086:8c3a] (rev 04)
|
||||
00:1b.0 Audio device [0403]: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller [8086:8c20] (rev 05)
|
||||
00:1c.0 PCI bridge [0604]: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 [8086:8c10] (rev d5)
|
||||
00:1c.2 PCI bridge [0604]: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #3 [8086:8c14] (rev d5)
|
||||
00:1c.3 PCI bridge [0604]: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #4 [8086:8c16] (rev d5)
|
||||
00:1f.0 ISA bridge [0601]: Intel Corporation HM87 Express LPC Controller [8086:8c4b] (rev 05)
|
||||
00:1f.3 SMBus [0c05]: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller [8086:8c22] (rev 05)
|
||||
00:1f.6 Signal processing controller [1180]: Intel Corporation 8 Series Chipset Family Thermal Management Controller [8086:8c24] (rev 05)
|
||||
01:00.0 SATA controller [0106]: Samsung Electronics Co Ltd S4LN058A01[SSUBX] AHCI SSD Controller (Apple slot) [144d:a801] (rev 01)
|
||||
03:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM43602 802.11ac Wireless LAN SoC [14e4:43ba] (rev 01)
|
||||
04:00.0 Multimedia controller [0480]: Broadcom Inc. and subsidiaries 720p FaceTime HD Camera [14e4:1570]
|
||||
05:00.0 PCI bridge [0604]: Intel Corporation DSL5520 Thunderbolt 2 Bridge [Falcon Ridge 4C 2013] [8086:156d]
|
||||
06:00.0 PCI bridge [0604]: Intel Corporation DSL5520 Thunderbolt 2 Bridge [Falcon Ridge 4C 2013] [8086:156d]
|
||||
06:03.0 PCI bridge [0604]: Intel Corporation DSL5520 Thunderbolt 2 Bridge [Falcon Ridge 4C 2013] [8086:156d]
|
||||
06:04.0 PCI bridge [0604]: Intel Corporation DSL5520 Thunderbolt 2 Bridge [Falcon Ridge 4C 2013] [8086:156d]
|
||||
06:05.0 PCI bridge [0604]: Intel Corporation DSL5520 Thunderbolt 2 Bridge [Falcon Ridge 4C 2013] [8086:156d]
|
||||
06:06.0 PCI bridge [0604]: Intel Corporation DSL5520 Thunderbolt 2 Bridge [Falcon Ridge 4C 2013] [8086:156d]
|
||||
07:00.0 System peripheral [0880]: Intel Corporation DSL5520 Thunderbolt 2 NHI [Falcon Ridge 4C 2013] [8086:156c]
|
||||
```
|
||||
|
||||
## Tested Nix Configuration
|
||||
- system: `"x86_64-linux"`
|
||||
- host os: `Linux 6.12.36, NixOS, 25.11 (Xantusia), 25.11.20250708.9807714`
|
||||
- multi-user?: `yes`
|
||||
- sandbox: `yes`
|
||||
- version: `nix-env (Nix) 2.28.4`
|
||||
- channels(root): `"nixos"`
|
||||
- nixpkgs: `/nix/store/bgl6ldj5ihbwcq8p42z3a0qzgqafgk2b-source`
|
||||
@@ -1,17 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
../.
|
||||
../../../common/cpu/intel/haswell
|
||||
../../../common/pc/ssd
|
||||
"${modulesPath}/hardware/network/broadcom-43xx.nix"
|
||||
];
|
||||
|
||||
hardware.graphics.enable = lib.mkDefault true;
|
||||
}
|
||||
@@ -1,70 +0,0 @@
|
||||
# Apple MacBook Pro 11,5
|
||||
|
||||
This configuration will **not** work with MacBook Pro 11,2 or 11,3 models.
|
||||
|
||||
## Notable features
|
||||
|
||||
* Prevent intermittent USB 3.0 controller wakeup signal when the lid is closed. Without this fix your laptop may get very hot and drain the battery after waking up in your laptop bag.
|
||||
|
||||
You can see for yourself which devices are allowed to wake up your laptop using the command:
|
||||
|
||||
```shell
|
||||
cat /proc/acpi/wakeup
|
||||
```
|
||||
|
||||
This fix works for Linux kernel 3.13 and above.
|
||||
|
||||
Sources:
|
||||
|
||||
* [Fix unwanted laptop resume after lid is closed](https://medium.com/@laurynas.karvelis_95228/install-arch-linux-on-macbook-pro-11-2-retina-install-guide-for-year-2017-2034ceed4cb2#66ba)
|
||||
* [Arch wiki: MacBookPro11,x Suspend](https://wiki.archlinux.org/index.php/MacBookPro11,x#Suspend)
|
||||
* [simonvandel/dotfiles (nix config)](https://github.com/simonvandel/dotfiles/blob/f254a4a607257faee295ce798ed215273c342850/nixos/vandel-macair/configuration.nix#L45)
|
||||
|
||||
## Graphics
|
||||
|
||||
The [MacBookPro11,4 and MacBookPro11,5](https://support.apple.com/kb/SP719) models ship with a discrete ATI/AMD graphics card (whereas MacBookPro11,2 and MacBookPro11,3 ship with NVidia cards). This is alongside the usual integrated Intel GPU.
|
||||
|
||||
To switch from the older `radeon` driver to the newer `amdgpu` driver (via experimental `si_support`), include `nixos-hardware.nixosModules.common-gpu-amd-southern-islands` (or `${nixos-hardware}/common/gpu/amd/southern-islands`) in your configuration. This will get you vulkan support among other benefits.
|
||||
|
||||
For example, in your `flake.nix`:
|
||||
|
||||
```nix
|
||||
nixosConfigurations = {
|
||||
macbook-pro-11-5 = lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
nixos-hardware.nixosModules.apple-macbook-pro-11-5
|
||||
nixos-hardware.nixosModules.common-gpu-amd-southern-islands
|
||||
{
|
||||
# Your personal configuration
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
```
|
||||
|
||||
## Power management
|
||||
|
||||
You may also wish to look into dynamic switching between integrated and discrete graphics, but this config doesn't currently attempt it.
|
||||
See the removed [hardware.amdHybridGraphics.disable](https://github.com/NixOS/nixpkgs/pull/33915) option for an entry point.
|
||||
|
||||
## Hardware probes
|
||||
|
||||
Hardware probes generated with `nix run nixpkgs#hw-probe -- -all -upload`:
|
||||
|
||||
* Probe [#305905e674](https://linux-hardware.org/?probe=305905e674) of Apple MacBookPro11,5 (with `amdgpu` driver)
|
||||
|
||||
DRM (Direct Rendering Manager) snapshots generated with `drm_info -j | curl -d @- https://drmdb.emersion.fr/submit`:
|
||||
|
||||
* Snapshot [#e8f8076f1f1b](https://drmdb.emersion.fr/snapshots/e8f8076f1f1b) (with `amdgpu` driver)
|
||||
|
||||
## Additional resources
|
||||
|
||||
* Arch linux wiki: [MacBookPro11,x](https://wiki.archlinux.org/index.php/MacBookPro11,x)
|
||||
* Kernel patches: [MacBookPro11,x](https://bugzilla.kernel.org/buglist.cgi?quicksearch=macbookpro11)
|
||||
|
||||
For more context about experimental `amdgpu` support, see:
|
||||
|
||||
* [Enabling AMDGPU by default for SI & CIK (November 2021)](https://gitlab.freedesktop.org/drm/amd/-/issues/1776)
|
||||
* [Enabling AMDGPU by default for SI & CIK (August 2020))](https://lists.freedesktop.org/archives/amd-gfx/2020-August/052243.html)
|
||||
* [Feature support matrix](https://wiki.gentoo.org/wiki/AMDGPU#Feature_support)
|
||||
@@ -1,23 +0,0 @@
|
||||
{ lib, config, ... }:
|
||||
|
||||
let
|
||||
|
||||
inherit (config.boot) kernelPackages;
|
||||
|
||||
in
|
||||
|
||||
{
|
||||
imports = [
|
||||
../.
|
||||
../../../common/pc/ssd
|
||||
];
|
||||
|
||||
# Enable broadcom-43xx firmware
|
||||
hardware.enableRedistributableFirmware = lib.mkDefault true;
|
||||
|
||||
services.udev.extraRules =
|
||||
# Disable XHC1 wakeup signal to avoid resume getting triggered some time
|
||||
# after suspend. Reboot required for this to take effect.
|
||||
lib.optionalString (lib.versionAtLeast kernelPackages.kernel.version "3.13")
|
||||
''SUBSYSTEM=="pci", KERNEL=="0000:00:14.0", ATTR{power/wakeup}="disabled"'';
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
# MacBook Pro 12,1
|
||||
|
||||
## Wireless won't get reconnected after resume/hibernate
|
||||
|
||||
The wifi driver is unloaded before suspend/hibernate to workaround driver issues.
|
||||
This means it might be required to restart your wifi deamon i.e. wpa_supplicant:
|
||||
|
||||
```nix
|
||||
powerManagement.powerUpCommands = ''
|
||||
${pkgs.systemd}/bin/systemctl restart wpa_supplicant.service
|
||||
'';
|
||||
```
|
||||
|
||||
You can apply this to your network management software of choice.
|
||||
@@ -1,32 +1,12 @@
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}:
|
||||
{ lib, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../.
|
||||
../../../common/pc/ssd
|
||||
"${modulesPath}/hardware/network/broadcom-43xx.nix"
|
||||
../../../common/pc/laptop/ssd
|
||||
<nixpkgs/nixos/modules/hardware/network/broadcom-43xx.nix>
|
||||
];
|
||||
|
||||
powerManagement = {
|
||||
# Enable gradually increasing/decreasing CPU frequency, rather than using
|
||||
# "powersave", which would keep CPU frequency at 0.8GHz.
|
||||
cpuFreqGovernor = lib.mkDefault "conservative";
|
||||
|
||||
# brcmfmac being loaded during hibernation would not let a successful resume
|
||||
# https://bugzilla.kernel.org/show_bug.cgi?id=101681#c116.
|
||||
# Also brcmfmac could randomly crash on resume from sleep.
|
||||
powerUpCommands = lib.mkBefore "${pkgs.kmod}/bin/modprobe brcmfmac";
|
||||
powerDownCommands = lib.mkBefore ''
|
||||
${pkgs.kmod}/bin/rmmod -f -v brcmfmac_wcc 2>/dev/null || true
|
||||
${pkgs.kmod}/bin/rmmod brcmfmac
|
||||
'';
|
||||
};
|
||||
|
||||
# USB subsystem wakes up MBP right after suspend unless we disable it.
|
||||
services.udev.extraRules = lib.mkDefault ''
|
||||
SUBSYSTEM=="pci", KERNEL=="0000:00:14.0", ATTR{power/wakeup}="disabled"
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
# MacBook Pro 14,1, NixOS 24.05 (2024)
|
||||
|
||||
## Audio
|
||||
- [ ] broken until https://github.com/NixOS/nixpkgs/pull/322968 lands in master
|
||||
|
||||
## Bluetooth
|
||||
- [ ] broken lands https://github.com/NixOS/nixpkgs/pull/322964 in master
|
||||
|
||||
## Touchpad
|
||||
- [x] Working, including 'disable while typing' usable quirk
|
||||
|
||||
## Thunderbolt
|
||||
- [x] Working
|
||||
|
||||
## NVME
|
||||
- [x] Working, older NVME / Controller may need workaround for resume
|
||||
|
||||
## Suspend/Resume
|
||||
- [ ] Thunderbolt, WIFI, NVME may still need reboot (sometimes).
|
||||
|
||||
## Wifi
|
||||
- [x] Working (2,4Ghz & 5Ghz supported), WEP3 broken -> brcm fw blob (2015)
|
||||
|
||||
## Resources
|
||||
- https://github.com/Dunedan/mbp-2016-linux?tab=readme-ov-file
|
||||
- https://gist.github.com/roadrunner2/1289542a748d9a104e7baec6a92f9cd7
|
||||
@@ -1,69 +0,0 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
../.
|
||||
../../../common/cpu/intel/kaby-lake
|
||||
../../../common/hidpi.nix
|
||||
../../../common/pc/ssd
|
||||
];
|
||||
|
||||
# Make the keyboard work in stage1, enable iommu
|
||||
# https://www.kernelconfig.io/config_keyboard_applespi
|
||||
|
||||
boot = {
|
||||
initrd.kernelModules = [
|
||||
"applespi"
|
||||
"spi_pxa2xx_platform"
|
||||
"intel_lpss_pci"
|
||||
"applesmc"
|
||||
];
|
||||
kernelParams = [ "intel_iommu=on" ];
|
||||
kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "6.0") pkgs.linuxPackages_latest;
|
||||
};
|
||||
|
||||
# Touchpad quirks to make "disable-while-typing" actually work
|
||||
services.libinput.enable = true;
|
||||
environment.etc."libinput/local-overrides.quirks".text = ''
|
||||
[MacBook(Pro) SPI Touchpads]
|
||||
MatchName=*Apple SPI Touchpad*
|
||||
ModelAppleTouchpad=1
|
||||
AttrTouchSizeRange=200:150
|
||||
AttrPalmSizeThreshold=1100
|
||||
|
||||
[MacBook(Pro) SPI Keyboards]
|
||||
MatchName=*Apple SPI Keyboard*
|
||||
AttrKeyboardIntegration=internal
|
||||
|
||||
[MacBookPro Touchbar]
|
||||
MatchBus=usb
|
||||
MatchVendor=0x05AC
|
||||
MatchProduct=0x8600
|
||||
AttrKeyboardIntegration=internal
|
||||
'';
|
||||
|
||||
# Wifi, CPU Microcode FW updates
|
||||
networking.enableB43Firmware = lib.mkDefault true;
|
||||
hardware = {
|
||||
enableRedistributableFirmware = lib.mkDefault true;
|
||||
cpu.intel.updateMicrocode = lib.mkDefault true;
|
||||
};
|
||||
|
||||
# [Enable only if needed!]
|
||||
# Disable d3cold on older NVME controller, only if needed
|
||||
# https://github.com/Dunedan/mbp-2016-linux
|
||||
#
|
||||
#systemd.services.disable-nvme-d3cold = {
|
||||
# description = "Disables d3cold on the NVME controller";
|
||||
# before = [ "suspend.target" ];
|
||||
# path = [ pkgs.bash pkgs.coreutils ];
|
||||
# serviceConfig.Type = "oneshot";
|
||||
# serviceConfig.ExecStart = "${./disable-nvme-d3cold.sh}";
|
||||
# serviceConfig.TimeoutSec = 0;
|
||||
# wantedBy = [ "multi-user.target" "suspend.target" ];
|
||||
#};
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
driver_path=/sys/bus/pci/devices/0000:01:00.0
|
||||
|
||||
if [[ ! -e "$driver_path" ]]; then
|
||||
echo "$driver_path does not exist, exiting..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
driver=$(basename $(readlink "$driver_path/driver"))
|
||||
|
||||
if [[ "$driver" -ne "nvme" ]]; then
|
||||
echo "$driver_path is not an NVME device, got $driver, exiting..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo 0 > "$driver_path/d3cold_allowed"
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
# MacBook Pro 8,1
|
||||
|
||||
## Enable unfree packages in your nix config for b43-firmware (wifi driver) to work
|
||||
|
||||
### For b43-firmware only (Ideal)
|
||||
|
||||
```nix
|
||||
{lib, ...}:
|
||||
|
||||
{
|
||||
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
||||
"b43-firmware"
|
||||
];
|
||||
}
|
||||
```
|
||||
|
||||
### For all packages
|
||||
|
||||
```nix
|
||||
{
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
}
|
||||
```
|
||||
@@ -1,16 +0,0 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../.
|
||||
../../../common/cpu/intel/sandy-bridge
|
||||
../../../common/pc/ssd
|
||||
];
|
||||
|
||||
networking.enableB43Firmware = lib.mkDefault true;
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkDefault;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
../.
|
||||
];
|
||||
|
||||
services.xserver.videoDrivers = mkDefault [ "nvidiaLegacy340" ];
|
||||
|
||||
hardware = {
|
||||
graphics = {
|
||||
enable = mkDefault true;
|
||||
enable32Bit = mkDefault true;
|
||||
};
|
||||
|
||||
nvidia = {
|
||||
modesetting.enable = mkDefault true;
|
||||
powerManagement.enable = mkDefault false;
|
||||
powerManagement.finegrained = mkDefault false;
|
||||
open = mkDefault false;
|
||||
nvidiaSettings = mkDefault true;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
imports = [
|
||||
../.
|
||||
../../common/cpu/intel
|
||||
];
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
# NixOS on T2 Macs
|
||||
|
||||
This is the `nixos-hardware` module of the [T2 Linux Project](https://t2linux.org).
|
||||
|
||||
Overall, most features (WiFi, bluetooth, audio, touchbar, ...) of Macs are supported, [see this page](https://wiki.t2linux.org/state/) for a detailed list of things that work and things that don't/partially work.
|
||||
|
||||
Following [this guide](https://wiki.t2linux.org/distributions/nixos/installation/) is the recommended way to install, as it incudes the extra things you have to do on a T2 Mac.
|
||||
|
||||
You can consult the [wiki](https://wiki.t2linux.org/) for information specific to T2 Macs.
|
||||
|
||||
> [!warning]
|
||||
> Always ensure compatibility and make backups of your data before making any system changes.
|
||||
@@ -1,136 +0,0 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (lib) types;
|
||||
|
||||
t2bce-alsa-ucm = pkgs.stdenvNoCC.mkDerivation (_: {
|
||||
name = "t2bce-alsa-ucm";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "deqrocks";
|
||||
repo = "t2bce";
|
||||
rev = "967465dc67d3a9b1e48dea620f7258baa526f4f2";
|
||||
hash = "sha256-EVUvNg30bFhJCtcyPAGbWjGX0+CORs4nWG5Bpvbr590=";
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "ALSA Usage Configuration Manager configuration for T2 Macs";
|
||||
license = lib.licenses.mit;
|
||||
};
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
cd ./t2bce_audio-alsa-ucm-conf
|
||||
mkdir -p "$out/share/alsa/"
|
||||
cp -vR ./ucm2 "$out/share/alsa/"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
});
|
||||
|
||||
patched-alsa-ucm = pkgs.symlinkJoin {
|
||||
inherit (t2bce-alsa-ucm) src meta;
|
||||
name = "t2bce-alsa-ucm-patched";
|
||||
paths = [
|
||||
pkgs.alsa-ucm-conf
|
||||
t2bce-alsa-ucm
|
||||
];
|
||||
};
|
||||
|
||||
patchedAudioAlsaEnv = lib.genAttrs [ "pipewire" "wireplumber" "pulseaudio" ] (_: {
|
||||
environment.ALSA_CONFIG_UCM2 = config.environment.variables.ALSA_CONFIG_UCM2;
|
||||
});
|
||||
|
||||
t2Cfg = config.hardware.apple-t2;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
(lib.mkRemovedOptionModule [ "hardware" "apple-t2" "enableTinyDfr" ] ''
|
||||
The hardware.apple-t2.enableTinyDfr option was deprecated and removed since upstream Nixpkgs now has an identical module.
|
||||
Please migrate to hardware.apple.touchBar.
|
||||
'')
|
||||
|
||||
(lib.mkRemovedOptionModule [ "hardware" "apple-t2" "enableAppleSetOsLoader" ] ''
|
||||
The hardware.apple-t2.enableAppleSetOsLoader option was removed as the apple_set_os functionality was integrated into the kernel.
|
||||
Please uninstall the loader by replacing /esp/EFI/BOOTX64.EFI with /esp/EFI/BOOTX64_original.EFI, where esp is the EFI partition mount point.
|
||||
|
||||
If you have a device with an AMD dGPU and would like to keep using the iGPU, please set hardware.apple-t2.enableIGPU to true.
|
||||
'')
|
||||
];
|
||||
options.hardware.apple-t2 = {
|
||||
enableIGPU = lib.mkEnableOption "the usage of the iGPU on specific Apple devices with an AMD dGPU";
|
||||
kernelChannel = lib.mkOption {
|
||||
type = types.enum [
|
||||
"stable"
|
||||
"latest"
|
||||
];
|
||||
default = "stable";
|
||||
example = "latest";
|
||||
description = "The kernel release stream to use.";
|
||||
};
|
||||
firmware = {
|
||||
enable = lib.mkEnableOption "automatic and declarative Wi-Fi and Bluetooth firmware configuration";
|
||||
version = lib.mkOption {
|
||||
type = types.enum [
|
||||
"monterey"
|
||||
"ventura"
|
||||
"sonoma"
|
||||
];
|
||||
default = "sonoma";
|
||||
example = "ventura";
|
||||
description = "The macOS version to use.";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkMerge [
|
||||
{
|
||||
# Specialized kernel for keyboard, touchpad, touchbar and audio.
|
||||
boot.kernelPackages = pkgs.linuxPackagesFor (
|
||||
pkgs.callPackage (
|
||||
if t2Cfg.kernelChannel == "stable" then ./pkgs/linux-t2 else ./pkgs/linux-t2/latest.nix
|
||||
) { }
|
||||
);
|
||||
boot.initrd.kernelModules = [ "t2bce-vhci" ];
|
||||
|
||||
# For audio and suspend
|
||||
boot.kernelParams = [
|
||||
"intel_iommu=on"
|
||||
"iommu=pt"
|
||||
"pm_async=off"
|
||||
];
|
||||
|
||||
# audio configuration
|
||||
# https://github.com/nix-community/nixos-apple-silicon/blob/66d8dd2c27f99bd5420c99938b60695aac1785c4/apple-silicon-support/modules/sound/default.nix#L46
|
||||
environment.variables.ALSA_CONFIG_UCM2 = "${patched-alsa-ucm}/share/alsa/ucm2";
|
||||
# setting systemd.globalEnvironment is likely going to have unexpected side effects
|
||||
systemd = {
|
||||
services = patchedAudioAlsaEnv;
|
||||
user.services = patchedAudioAlsaEnv;
|
||||
};
|
||||
|
||||
# Make sure post-resume.service exists
|
||||
powerManagement.enable = true;
|
||||
}
|
||||
|
||||
(lib.mkIf t2Cfg.enableIGPU {
|
||||
# Enable the iGPU by default if present
|
||||
environment.etc."modprobe.d/apple-gmux.conf".text = ''
|
||||
options apple-gmux force_igd=y
|
||||
'';
|
||||
})
|
||||
(lib.mkIf t2Cfg.firmware.enable {
|
||||
# Configure Wi-Fi and Bluetooth firmware
|
||||
hardware.firmware = [
|
||||
(pkgs.callPackage ./pkgs/brcm-firmware { version = t2Cfg.firmware.version; })
|
||||
];
|
||||
})
|
||||
];
|
||||
}
|
||||
@@ -1,78 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
callPackage,
|
||||
_7zz,
|
||||
version,
|
||||
}:
|
||||
|
||||
let
|
||||
get-firmware = callPackage ./get-firmware.nix { };
|
||||
fetchmacos = callPackage ./fetchmacos.nix { };
|
||||
|
||||
# See https://github.com/kholia/OSX-KVM/blob/master/fetch-macOS-v2.py#L534-L546.
|
||||
# Versions before macOS Monterey don't have Bluetooth firmware.
|
||||
# Whereas macOS Sequoia doesn't have firmware for MacBook Air 2018 and 2019.
|
||||
boards = {
|
||||
monterey = {
|
||||
boardId = "Mac-B809C3757DA9BB8D";
|
||||
mlb = "00000000000000000";
|
||||
osType = "latest";
|
||||
hash = "sha256-My8FLnqHZn+THfGPIhTSApW/kIWM0ZZhjBxWujhhWPM=";
|
||||
};
|
||||
ventura = {
|
||||
boardId = "Mac-4B682C642B45593E";
|
||||
mlb = "00000000000000000";
|
||||
osType = "latest";
|
||||
hash = "sha256-Qy9Whu8pqHo+m6wHnCIqURAR53LYQKc0r87g9eHgnS4=";
|
||||
};
|
||||
sonoma = {
|
||||
boardId = "Mac-827FAC58A8FDFA22";
|
||||
mlb = "00000000000000000";
|
||||
osType = "default";
|
||||
hash = "sha256-phlpwNTYhugqX2KGljqxpbfGtCFDgggQPzB7U29XSmM=";
|
||||
};
|
||||
};
|
||||
in
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "brcm-firmware";
|
||||
inherit version;
|
||||
|
||||
src = fetchmacos {
|
||||
name = version;
|
||||
inherit (boards.${version})
|
||||
boardId
|
||||
mlb
|
||||
osType
|
||||
hash
|
||||
;
|
||||
};
|
||||
dontUnpack = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
_7zz
|
||||
get-firmware
|
||||
];
|
||||
buildPhase = ''
|
||||
7zz x -bd -bso0 -bsp0 $src \
|
||||
"macOS Base System/usr/share/firmware/bluetooth/*" \
|
||||
"macOS Base System/usr/share/firmware/wifi/*"
|
||||
|
||||
get-bluetooth "macOS Base System/usr/share/firmware/bluetooth" bluetooth/
|
||||
get-wifi "macOS Base System/usr/share/firmware/wifi" wifi/
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/lib/firmware/brcm
|
||||
cp bluetooth/brcm/* $out/lib/firmware/brcm/
|
||||
cp wifi/brcm/* $out/lib/firmware/brcm/
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Wi-Fi and Bluetooth firmware for T2 Macs";
|
||||
license = licenses.unfree;
|
||||
maintainers = with maintainers; [ mkorje ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
@@ -1,40 +0,0 @@
|
||||
{
|
||||
stdenvNoCC,
|
||||
callPackage,
|
||||
dmg2img,
|
||||
}:
|
||||
|
||||
let
|
||||
macrecovery = callPackage ./macrecovery.nix { };
|
||||
in
|
||||
|
||||
{
|
||||
name,
|
||||
boardId,
|
||||
mlb,
|
||||
osType,
|
||||
hash,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
name = name;
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
macrecovery
|
||||
dmg2img
|
||||
];
|
||||
buildPhase = ''
|
||||
macrecovery download -o . -b ${boardId} -m ${mlb} -os ${osType}
|
||||
dmg2img -s BaseSystem.dmg fw.img
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
cp fw.img $out
|
||||
'';
|
||||
|
||||
outputHashMode = "recursive";
|
||||
outputHashAlgo = "sha256";
|
||||
outputHash = hash;
|
||||
}
|
||||
@@ -1,133 +0,0 @@
|
||||
diff --git a/asahi_firmware/bluetooth.py b/asahi_firmware/bluetooth.py
|
||||
index 0934225..3eaa442 100644
|
||||
--- a/asahi_firmware/bluetooth.py
|
||||
+++ b/asahi_firmware/bluetooth.py
|
||||
@@ -1,8 +1,25 @@
|
||||
+#!/usr/bin/env python3
|
||||
# SPDX-License-Identifier: MIT
|
||||
import logging, os, os.path, re, sys
|
||||
from collections import namedtuple, defaultdict
|
||||
+from hashlib import sha256
|
||||
|
||||
-from .core import FWFile
|
||||
+class FWFile(object):
|
||||
+ def __init__(self, name, data):
|
||||
+ self.name = name
|
||||
+ self.data = data
|
||||
+ self.sha = sha256(data).hexdigest()
|
||||
+
|
||||
+ def __repr__(self):
|
||||
+ return f"FWFile({self.name!r}, <{self.sha[:16]}>)"
|
||||
+
|
||||
+ def __eq__(self, other):
|
||||
+ if other is None:
|
||||
+ return False
|
||||
+ return self.sha == other.sha
|
||||
+
|
||||
+ def __hash__(self):
|
||||
+ return hash(self.sha)
|
||||
|
||||
log = logging.getLogger("asahi_firmware.bluetooth")
|
||||
|
||||
@@ -127,16 +144,16 @@ class BluetoothFWCollection(object):
|
||||
|
||||
if __name__ == "__main__":
|
||||
col = BluetoothFWCollection(sys.argv[1])
|
||||
-
|
||||
- if len(sys.argv) > 2:
|
||||
- from . import FWPackage
|
||||
-
|
||||
- pkg = FWPackage(sys.argv[2])
|
||||
- pkg.add_files(sorted(col.files()))
|
||||
- pkg.close()
|
||||
-
|
||||
- for i in pkg.manifest:
|
||||
- print(i)
|
||||
- else:
|
||||
- for name, fwfile in col.files():
|
||||
- print(name, f"{fwfile.name} ({len(fwfile.data)} bytes)")
|
||||
+
|
||||
+ dir = os.path.join(sys.argv[2], "brcm")
|
||||
+ os.makedirs(dir)
|
||||
+
|
||||
+ hashes = {}
|
||||
+ for name, data in sorted(col.files()):
|
||||
+ path = os.path.join(sys.argv[2], name)
|
||||
+ if data.sha in hashes:
|
||||
+ os.link(hashes[data.sha], path)
|
||||
+ else:
|
||||
+ with open(path, "wb") as f:
|
||||
+ f.write(data.data)
|
||||
+ hashes[data.sha] = path
|
||||
diff --git a/asahi_firmware/wifi.py b/asahi_firmware/wifi.py
|
||||
index 346965c..261aa32 100644
|
||||
--- a/asahi_firmware/wifi.py
|
||||
+++ b/asahi_firmware/wifi.py
|
||||
@@ -1,6 +1,24 @@
|
||||
+#!/usr/bin/env python3
|
||||
# SPDX-License-Identifier: MIT
|
||||
import sys, os, os.path, pprint, statistics, logging
|
||||
-from .core import FWFile
|
||||
+from hashlib import sha256
|
||||
+
|
||||
+class FWFile(object):
|
||||
+ def __init__(self, name, data):
|
||||
+ self.name = name
|
||||
+ self.data = data
|
||||
+ self.sha = sha256(data).hexdigest()
|
||||
+
|
||||
+ def __repr__(self):
|
||||
+ return f"FWFile({self.name!r}, <{self.sha[:16]}>)"
|
||||
+
|
||||
+ def __eq__(self, other):
|
||||
+ if other is None:
|
||||
+ return False
|
||||
+ return self.sha == other.sha
|
||||
+
|
||||
+ def __hash__(self):
|
||||
+ return hash(self.sha)
|
||||
|
||||
log = logging.getLogger("asahi_firmware.wifi")
|
||||
|
||||
@@ -40,7 +58,9 @@ class WiFiFWCollection(object):
|
||||
self.prune()
|
||||
|
||||
def load(self, source_path):
|
||||
+ included_folders = ["C-4355__s-C1", "C-4364__s-B2", "C-4364__s-B3", "C-4377__s-B3"]
|
||||
for dirpath, dirnames, filenames in os.walk(source_path):
|
||||
+ dirnames[:] = [d for d in dirnames if d in included_folders]
|
||||
if "perf" in dirnames:
|
||||
dirnames.remove("perf")
|
||||
if "assert" in dirnames:
|
||||
@@ -141,18 +161,16 @@ class WiFiFWCollection(object):
|
||||
|
||||
if __name__ == "__main__":
|
||||
col = WiFiFWCollection(sys.argv[1])
|
||||
- if len(sys.argv) > 2:
|
||||
- from .core import FWPackage
|
||||
-
|
||||
- pkg = FWPackage(sys.argv[2])
|
||||
- pkg.add_files(sorted(col.files()))
|
||||
- pkg.close()
|
||||
-
|
||||
- for i in pkg.manifest:
|
||||
- print(i)
|
||||
- else:
|
||||
- for name, fwfile in col.files():
|
||||
- if isinstance(fwfile, str):
|
||||
- print(name, "->", fwfile)
|
||||
- else:
|
||||
- print(name, f"({len(fwfile.data)} bytes)")
|
||||
+
|
||||
+ dir = os.path.join(sys.argv[2], "brcm")
|
||||
+ os.makedirs(dir)
|
||||
+
|
||||
+ hashes = {}
|
||||
+ for name, data in sorted(col.files()):
|
||||
+ path = os.path.join(sys.argv[2], name)
|
||||
+ if data.sha in hashes:
|
||||
+ os.link(hashes[data.sha], path)
|
||||
+ else:
|
||||
+ with open(path, "wb") as f:
|
||||
+ f.write(data.data)
|
||||
+ hashes[data.sha] = path
|
||||
@@ -1,35 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchFromGitHub,
|
||||
python3,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
name = "get-firmware";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "AsahiLinux";
|
||||
repo = "asahi-installer";
|
||||
rev = "v0.7.9";
|
||||
hash = "sha256-vbhepoZ52k5tW2Gd7tfQTZ5CLqzhV7dUcVh6+AYwECk=";
|
||||
};
|
||||
|
||||
patches = [ ./get-firmware-standalone.patch ];
|
||||
|
||||
buildInputs = [ python3 ];
|
||||
|
||||
installPhase = ''
|
||||
cd asahi_firmware
|
||||
install -Dm755 bluetooth.py $out/bin/get-bluetooth
|
||||
install -Dm755 wifi.py $out/bin/get-wifi
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Patched Asahi Linux Installer scripts to get brcm firmware";
|
||||
homepage = "https://github.com/AsahiLinux/asahi-installer";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ mkorje ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchFromGitHub,
|
||||
python3,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
name = "macrecovery";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "acidanthera";
|
||||
repo = "OpenCorePkg";
|
||||
rev = "1.0.4";
|
||||
hash = "sha256-5Eypza9teSJSulHaK7Sxh562cTKedXKn3y+Z3+fC6sM=";
|
||||
};
|
||||
|
||||
buildInputs = [ python3 ];
|
||||
|
||||
installPhase = ''
|
||||
cd Utilities/macrecovery
|
||||
install -Dm755 macrecovery.py $out/opt/macrecovery
|
||||
cp boards.json $out/opt/boards.json
|
||||
mkdir $out/bin
|
||||
ln -s $out/opt/macrecovery $out/bin/macrecovery
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A tool that helps to automate recovery interaction";
|
||||
homepage = "https://github.com/acidanthera/OpenCorePkg";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ mkorje ];
|
||||
mainProgram = "macrecovery";
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
{ callPackage, ... }@args:
|
||||
|
||||
callPackage ./generic.nix args ./stable.json
|
||||
@@ -1,85 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
fetchurl, # fetchpatch does unnecessary normalization
|
||||
buildLinux,
|
||||
linuxKernel,
|
||||
...
|
||||
}@args:
|
||||
|
||||
patchesFile:
|
||||
|
||||
let
|
||||
inherit (builtins) readFile fromJSON;
|
||||
|
||||
patchset = fromJSON (readFile patchesFile);
|
||||
t2-patches = map (
|
||||
{ name, hash }:
|
||||
{
|
||||
inherit name;
|
||||
patch = fetchurl {
|
||||
inherit name hash;
|
||||
url = patchset.base_url + name;
|
||||
};
|
||||
}
|
||||
) patchset.patches;
|
||||
in
|
||||
buildLinux (
|
||||
{
|
||||
pname = "linux-t2";
|
||||
version = patchset.kernel.version;
|
||||
|
||||
src = fetchurl {
|
||||
inherit (patchset.kernel) url hash;
|
||||
};
|
||||
|
||||
structuredExtraConfig = with lib.kernel; {
|
||||
T2BCE_CORE = module;
|
||||
T2BCE_VHCI = module;
|
||||
T2BCE_AUDIO = module;
|
||||
T2BCE_AVE = module;
|
||||
APPLE_GMUX = module;
|
||||
APFS_FS = module;
|
||||
BRCMFMAC = module;
|
||||
BT_BCM = module;
|
||||
BT_HCIBCM4377 = module;
|
||||
BT_HCIUART = module;
|
||||
BT_HCIUART_BCM = yes;
|
||||
DRM_APPLETBDRM = module;
|
||||
HID_APPLE = module;
|
||||
HID_APPLETB_BL = module;
|
||||
HID_APPLETB_KBD = module;
|
||||
HID_MAGICMOUSE = module;
|
||||
HID_SENSOR_ALS = module;
|
||||
SENSORS_APPLESMC = module;
|
||||
SND_PCM = module;
|
||||
STAGING = yes;
|
||||
|
||||
# required for t2bce_ave
|
||||
I2C = yes;
|
||||
MEDIA_SUPPORT = yes;
|
||||
MEDIA_CAMERA_SUPPORT = yes;
|
||||
MEDIA_ANALOG_TV_SUPPORT = yes;
|
||||
MEDIA_DIGITAL_TV_SUPPORT = yes;
|
||||
MEDIA_RADIO_SUPPORT = yes;
|
||||
MEDIA_SDR_SUPPORT = yes;
|
||||
MEDIA_PLATFORM_SUPPORT = yes;
|
||||
MEDIA_TEST_SUPPORT = yes;
|
||||
};
|
||||
|
||||
kernelPatches = [
|
||||
# include default patches for good measure
|
||||
linuxKernel.kernelPatches.request_key_helper
|
||||
linuxKernel.kernelPatches.bridge_stp_helper
|
||||
]
|
||||
++ t2-patches
|
||||
++ (args.kernelPatches or [ ]);
|
||||
|
||||
extraMeta = {
|
||||
description = "The Linux kernel (with patches from the T2 Linux project)";
|
||||
|
||||
# take responsibility for the downstream kernel
|
||||
maintainers = with lib.maintainers; [ soopyc ];
|
||||
};
|
||||
}
|
||||
// (args.argsOverride or { })
|
||||
)
|
||||
@@ -1,114 +0,0 @@
|
||||
{
|
||||
"base_url": "https://raw.githubusercontent.com/t2linux/linux-t2-patches/65fdd4d492d7e219a05742ce4768f16e5ba4f976/",
|
||||
"kernel": {
|
||||
"version": "7.2.9",
|
||||
"url": "mirror://kernel/linux/kernel/v7.x/linux-7.2.9.tar.xz",
|
||||
"hash": "sha256:1fnqp28vrikz9gqhb42k0dsggqf8i07j0s9qy33scr53a6zdzidl"
|
||||
},
|
||||
"patches": [
|
||||
{
|
||||
"name": "1001-Add-t2bce-driver-stack.patch",
|
||||
"hash": "sha256-QeAffMClzGsGdHC5Qce744X2WUcx6PI0CJ5BQ8txxQ8="
|
||||
},
|
||||
{
|
||||
"name": "1002-Integrate-t2bce-driver-stack.patch",
|
||||
"hash": "sha256-nPAPGV9IROyxSQzSztwNS1fY0ziGQJ7evKBs1ZSHwiE="
|
||||
},
|
||||
{
|
||||
"name": "2008-i915-4-lane-quirk-for-mbp15-1.patch",
|
||||
"hash": "sha256-gTYP7WHV/Qulobdi1nNdYsv1CWgkM8pGvsCFQ+rvhrw="
|
||||
},
|
||||
{
|
||||
"name": "2009-apple-gmux-allow-switching-to-igpu-at-probe.patch",
|
||||
"hash": "sha256-OczfcYSvkw2lBZQzZjCV4LHSe6CnaJ1J8GBkgEbiOXk="
|
||||
},
|
||||
{
|
||||
"name": "3001-applesmc-convert-static-structures-to-drvdata.patch",
|
||||
"hash": "sha256-FVtOCXInI5OUqpTVDVsZ1taMwj3z+d3PeRgjnQQljG4="
|
||||
},
|
||||
{
|
||||
"name": "3002-applesmc-make-io-port-base-addr-dynamic.patch",
|
||||
"hash": "sha256-1fnmMP/3WSy2JqjdCvxu8tWoshCPr8eiG6ttYK/N9WA="
|
||||
},
|
||||
{
|
||||
"name": "3003-applesmc-switch-to-acpi_device-from-platform.patch",
|
||||
"hash": "sha256-3S6BzyoPLoirfyAu4yDyE9aYjUYr/7etmAvN3uKSDLE="
|
||||
},
|
||||
{
|
||||
"name": "3004-applesmc-key-interface-wrappers.patch",
|
||||
"hash": "sha256-9Bq28WcqiOnef0br6bATOudr1ViSpajQs7fv7o8Tg0I="
|
||||
},
|
||||
{
|
||||
"name": "3005-applesmc-basic-mmio-interface-implementation.patch",
|
||||
"hash": "sha256-tnpfmZQw9KQNylpLfGZ+X0IVP79AgeDoTVYF6yUhCRI="
|
||||
},
|
||||
{
|
||||
"name": "3006-applesmc-fan-support-on-T2-Macs.patch",
|
||||
"hash": "sha256-D5IQHE8QFo49mnUawSau7xUsMFkHKayyhnHW4hi+fWE="
|
||||
},
|
||||
{
|
||||
"name": "3007-applesmc-Add-iMacPro-to-applesmc_whitelist.patch",
|
||||
"hash": "sha256-rLDuyQYzAaWuu/u6nRRVvGdwyfpLvkGPu1OoD8KS0os="
|
||||
},
|
||||
{
|
||||
"name": "3008-applesmc-make-applesmc_remove-void.patch",
|
||||
"hash": "sha256-j2Rj1PW/bFEYh9IkGkkG9b+G27IAPCInyd828z4WE1s="
|
||||
},
|
||||
{
|
||||
"name": "3009-applesmc-battery-charge-limiter.patch",
|
||||
"hash": "sha256-skYKmLsJ6O42/wINLccZWoKS0XhVlC1Nfxi1Ekloxns="
|
||||
},
|
||||
{
|
||||
"name": "4001-asahi-trackpad.patch",
|
||||
"hash": "sha256-RuYI0t+rMu29wSkVT4suYJgGzS1ZruN/HBZWkLivlDw="
|
||||
},
|
||||
{
|
||||
"name": "4003-HID-apple-ignore-the-trackpad-on-T2-Macs.patch",
|
||||
"hash": "sha256-LLZzcysLTuQrSXWXbdq7AASxfMInQoqpWzRNZAKws9k="
|
||||
},
|
||||
{
|
||||
"name": "4004-HID-magicmouse-Add-support-for-trackpads-found-on-T2.patch",
|
||||
"hash": "sha256-kUnbtl/54cihscirl9kP0Gsot7bdP0rYKlj6gQ10hk0="
|
||||
},
|
||||
{
|
||||
"name": "5001-HID-appletb-kbd-add-option-to-switch-default-layer-o.patch",
|
||||
"hash": "sha256-KV5DTjALzNugs92Jum6VUt0wgblK/6PG1KorovHcIX0="
|
||||
},
|
||||
{
|
||||
"name": "5002-drm-appletbdrm-Add-suspend-and-resume-support.patch",
|
||||
"hash": "sha256-NFa5ZpNguUC9ELfphvCrVHEh59tN/ZA9vQl6YD1avbI="
|
||||
},
|
||||
{
|
||||
"name": "6001-drm-amd-pm-Fix-boot-problems-in-5300.patch",
|
||||
"hash": "sha256-l6pyVkpumURgoQ/f1kGfw47YhMuuMjpiHgjP6QN8dNE="
|
||||
},
|
||||
{
|
||||
"name": "7001-drm-i915-fbdev-Discard-BIOS-framebuffers-exceeding-h.patch",
|
||||
"hash": "sha256-/EKN7JsAxcpAgfJFtPp2NLYaGqQ0kl8wjJEXifSzJpY="
|
||||
},
|
||||
{
|
||||
"name": "7002-drm-amdgpu-reset-VI-ASIC-on-MacBookPro15-1.patch",
|
||||
"hash": "sha256-lLruG4lJAI6fI94w2LzHmrbspXArrq+rbI/SJmhwXqo="
|
||||
},
|
||||
{
|
||||
"name": "7003-amdgpu-add-support-for-5K.patch",
|
||||
"hash": "sha256-RX3tiju4gNFlrrYWOMdUr0HAdSN5RliliiPAQw5I6/M="
|
||||
},
|
||||
{
|
||||
"name": "8001-Add-APFS-driver.patch",
|
||||
"hash": "sha256-DU/jX8wuM6Y/5iZztg05GjWlzVlo8DfVpCJ3BxFoTJo="
|
||||
},
|
||||
{
|
||||
"name": "8002-Necessary-modifications-to-build-APFS-with-the-kerne.patch",
|
||||
"hash": "sha256-zCTetF2NPhMH2BknPumhPz2sf26X9Lcra7xCA3R2WMY="
|
||||
},
|
||||
{
|
||||
"name": "9001-ACPI-x86-Apple-T2-systems-need-early-CPU-offlining.patch",
|
||||
"hash": "sha256-camFPvnBQMErjVrbsdPPfsbyy59w0e0iPkVR1Juzv8o="
|
||||
},
|
||||
{
|
||||
"name": "9002-Bluetooth-hci_event-strip-Broadcom-vendor-bits-from-adv-type.patch",
|
||||
"hash": "sha256-oikMBjD4gyqTs351q7nTz6lI6rJqOe1/LfxpHAieEOs="
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
{ callPackage, ... }@args:
|
||||
|
||||
callPackage ./generic.nix args ./latest.json
|
||||
@@ -1,102 +0,0 @@
|
||||
{
|
||||
"base_url": "https://raw.githubusercontent.com/t2linux/linux-t2-patches/2eed0f6c812e8f36cb7a7f7bcde69f6f87074bdf/",
|
||||
"kernel": {
|
||||
"version": "6.18.55",
|
||||
"url": "mirror://kernel/linux/kernel/v6.x/linux-6.18.55.tar.xz",
|
||||
"hash": "sha256:1yadaa2gz74nh3pawpwv6lamalnd7wpiv1xb88pw2rd1c606647l"
|
||||
},
|
||||
"patches": [
|
||||
{
|
||||
"name": "1001-Add-t2bce-driver-stack.patch",
|
||||
"hash": "sha256-OG4Y7cN75pHWF7huV+2Fqtq0ik2aITMWtF43mD+RFCU="
|
||||
},
|
||||
{
|
||||
"name": "1002-Integrate-t2bce-driver-stack.patch",
|
||||
"hash": "sha256-z3g3IOAL+Nze88oKDSYpLHVtFnhz2kP1Udap5J64WmM="
|
||||
},
|
||||
{
|
||||
"name": "1003-Fix-for-6.18.patch",
|
||||
"hash": "sha256-ozJkJFm11oGDW1Gwrp4AR4Ifv9X8Yix6uF9ZBFJ76+M="
|
||||
},
|
||||
{
|
||||
"name": "2008-i915-4-lane-quirk-for-mbp15-1.patch",
|
||||
"hash": "sha256-gTYP7WHV/Qulobdi1nNdYsv1CWgkM8pGvsCFQ+rvhrw="
|
||||
},
|
||||
{
|
||||
"name": "2009-apple-gmux-allow-switching-to-igpu-at-probe.patch",
|
||||
"hash": "sha256-6i+fh/Ifle0di5/tMOdMm0NMkEmeUb17hYM/g2j2dfI="
|
||||
},
|
||||
{
|
||||
"name": "3001-applesmc-convert-static-structures-to-drvdata.patch",
|
||||
"hash": "sha256-c/d+c5eKzhbtfUKtLC7AB+6vMXge4ZzPJAUbNENWH7g="
|
||||
},
|
||||
{
|
||||
"name": "3002-applesmc-make-io-port-base-addr-dynamic.patch",
|
||||
"hash": "sha256-1fnmMP/3WSy2JqjdCvxu8tWoshCPr8eiG6ttYK/N9WA="
|
||||
},
|
||||
{
|
||||
"name": "3003-applesmc-switch-to-acpi_device-from-platform.patch",
|
||||
"hash": "sha256-3S6BzyoPLoirfyAu4yDyE9aYjUYr/7etmAvN3uKSDLE="
|
||||
},
|
||||
{
|
||||
"name": "3004-applesmc-key-interface-wrappers.patch",
|
||||
"hash": "sha256-9Bq28WcqiOnef0br6bATOudr1ViSpajQs7fv7o8Tg0I="
|
||||
},
|
||||
{
|
||||
"name": "3005-applesmc-basic-mmio-interface-implementation.patch",
|
||||
"hash": "sha256-tnpfmZQw9KQNylpLfGZ+X0IVP79AgeDoTVYF6yUhCRI="
|
||||
},
|
||||
{
|
||||
"name": "3006-applesmc-fan-support-on-T2-Macs.patch",
|
||||
"hash": "sha256-D5IQHE8QFo49mnUawSau7xUsMFkHKayyhnHW4hi+fWE="
|
||||
},
|
||||
{
|
||||
"name": "3007-applesmc-Add-iMacPro-to-applesmc_whitelist.patch",
|
||||
"hash": "sha256-rLDuyQYzAaWuu/u6nRRVvGdwyfpLvkGPu1OoD8KS0os="
|
||||
},
|
||||
{
|
||||
"name": "3008-applesmc-make-applesmc_remove-void.patch",
|
||||
"hash": "sha256-j2Rj1PW/bFEYh9IkGkkG9b+G27IAPCInyd828z4WE1s="
|
||||
},
|
||||
{
|
||||
"name": "3009-applesmc-battery-charge-limiter.patch",
|
||||
"hash": "sha256-skYKmLsJ6O42/wINLccZWoKS0XhVlC1Nfxi1Ekloxns="
|
||||
},
|
||||
{
|
||||
"name": "4001-asahi-trackpad.patch",
|
||||
"hash": "sha256-2h3TdPsX9HBXx5jkZ2S2GJkjFcdL8vKD1G69iqd9IWg="
|
||||
},
|
||||
{
|
||||
"name": "4003-HID-apple-ignore-the-trackpad-on-T2-Macs.patch",
|
||||
"hash": "sha256-LLZzcysLTuQrSXWXbdq7AASxfMInQoqpWzRNZAKws9k="
|
||||
},
|
||||
{
|
||||
"name": "4004-HID-magicmouse-Add-support-for-trackpads-found-on-T2.patch",
|
||||
"hash": "sha256-kUnbtl/54cihscirl9kP0Gsot7bdP0rYKlj6gQ10hk0="
|
||||
},
|
||||
{
|
||||
"name": "5001-HID-appletb-kbd-add-option-to-switch-default-layer-o.patch",
|
||||
"hash": "sha256-KV5DTjALzNugs92Jum6VUt0wgblK/6PG1KorovHcIX0="
|
||||
},
|
||||
{
|
||||
"name": "5002-drm-appletbdrm-Add-suspend-and-resume-support.patch",
|
||||
"hash": "sha256-NFa5ZpNguUC9ELfphvCrVHEh59tN/ZA9vQl6YD1avbI="
|
||||
},
|
||||
{
|
||||
"name": "7001-drm-i915-fbdev-Discard-BIOS-framebuffers-exceeding-h.patch",
|
||||
"hash": "sha256-/EKN7JsAxcpAgfJFtPp2NLYaGqQ0kl8wjJEXifSzJpY="
|
||||
},
|
||||
{
|
||||
"name": "7002-drm-amdgpu-reset-VI-ASIC-on-MacBookPro15-1.patch",
|
||||
"hash": "sha256-lLruG4lJAI6fI94w2LzHmrbspXArrq+rbI/SJmhwXqo="
|
||||
},
|
||||
{
|
||||
"name": "8001-Add-APFS-driver.patch",
|
||||
"hash": "sha256-fL9TftzTd5PurxIDrzaPsysGExrMySGOsm6H8NFd7JY="
|
||||
},
|
||||
{
|
||||
"name": "8002-Necessary-modifications-to-build-APFS-with-the-kerne.patch",
|
||||
"hash": "sha256-zCTetF2NPhMH2BknPumhPz2sf26X9Lcra7xCA3R2WMY="
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,125 +0,0 @@
|
||||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i python -p nix -p "python3.withPackages (p: [p.requests])"
|
||||
|
||||
import argparse
|
||||
import json
|
||||
import re
|
||||
import subprocess
|
||||
import sys
|
||||
from tempfile import NamedTemporaryFile
|
||||
from concurrent.futures import ThreadPoolExecutor, as_completed
|
||||
|
||||
import requests
|
||||
|
||||
API_BASE = "https://api.github.com"
|
||||
PATCH_PATTERN = re.compile(r"^\d{4}-.*\.patch$")
|
||||
|
||||
parser = argparse.ArgumentParser(
|
||||
description="Update linux-t2 patches from a GitHub repository.",
|
||||
epilog='''
|
||||
If both --branch and --reference flags are given, the argument of --reference will be used to fetch the Git
|
||||
revision for patches and --branch as the kernel branch.
|
||||
|
||||
If only --branch is given, the argument will be used for both resolving the Git ref and the kernel branch.
|
||||
''',
|
||||
)
|
||||
parser.add_argument("filename", help="the output filename")
|
||||
parser.add_argument(
|
||||
"--repository",
|
||||
help="the source github repository (default: %(default)s)",
|
||||
default="t2linux/linux-t2-patches",
|
||||
nargs="?",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--reference", help="the git reference for the patches", default=None, nargs="?"
|
||||
)
|
||||
parser.add_argument(
|
||||
"--branch", help="the kernel branch to fetch (default: latest, example: 6.18)", default=None, nargs="?"
|
||||
)
|
||||
|
||||
|
||||
def get_api(endpoint, *args, **kwargs):
|
||||
kwargs["headers"] = {"X-GitHub-Api-Version": "2022-11-28"}
|
||||
response = requests.get(API_BASE + endpoint, *args, **kwargs)
|
||||
response.raise_for_status()
|
||||
return response.json()
|
||||
|
||||
|
||||
def get_sri_hash(data: bytes):
|
||||
with NamedTemporaryFile() as tmpfile:
|
||||
tmpfile.write(data)
|
||||
tmpfile.flush()
|
||||
proc = subprocess.run(
|
||||
["nix-hash", "--sri", "--flat", "--type", "sha256", tmpfile.name],
|
||||
check=True,
|
||||
capture_output=True,
|
||||
)
|
||||
return proc.stdout.decode("utf8").strip()
|
||||
|
||||
def download_task(patch: dict):
|
||||
patch_content = requests.get(patch["download_url"])
|
||||
patch_hash = get_sri_hash(patch_content.content)
|
||||
print(f"{patch['name']}: {patch_hash}")
|
||||
return {"name": patch["name"], "hash": patch_hash}
|
||||
|
||||
def main():
|
||||
args = parser.parse_args()
|
||||
reference = args.reference
|
||||
branch = args.branch
|
||||
|
||||
print("Fetching kernel releases")
|
||||
releases = requests.get("https://kernel.org/releases.json").json()['releases']
|
||||
match = None
|
||||
patched_url = ""
|
||||
if not branch:
|
||||
print("Branch not provided, fetching latest non-mainline kernel version")
|
||||
# if the json schema changes this script would break, hopefully won't happen
|
||||
match = next(filter(lambda x: x["moniker"] != "mainline", releases), None)
|
||||
else:
|
||||
match = next(filter(lambda x: x["version"].startswith(branch), releases), None)
|
||||
if not match:
|
||||
print(f"ERROR: could not find a kernel release for branch {branch}.")
|
||||
return 1
|
||||
patched_url = match['source'].replace('https://cdn.kernel.org/pub', 'mirror://kernel')
|
||||
|
||||
release_hash = subprocess.check_output(["nix-prefetch-url", "--type", "sha256", patched_url]).decode().strip()
|
||||
print(f" Kernel: {match['version']}")
|
||||
print(f" URL: {patched_url}")
|
||||
print(f" Hash: sha256:{release_hash}")
|
||||
kernel = {"version": match["version"], "url": patched_url, "hash": f"sha256:{release_hash}"}
|
||||
|
||||
if reference is None:
|
||||
if branch is None:
|
||||
print("Branch and reference not provided, fetching default branch")
|
||||
branch = get_api(f"/repos/{args.repository}")["default_branch"]
|
||||
|
||||
print(f"Reference not provided, fetching from branch {branch}")
|
||||
branch_data = get_api(f"/repos/{args.repository}/branches/{branch}")
|
||||
reference = branch_data["commit"]["sha"]
|
||||
|
||||
print(f"Repository: {args.repository}")
|
||||
print(f" Reference: {reference}")
|
||||
|
||||
base_url = f"https://raw.githubusercontent.com/{args.repository}/{reference}/"
|
||||
contents = get_api(f"/repos/{args.repository}/contents", {"ref": reference})
|
||||
patches = filter(lambda e: PATCH_PATTERN.match(e.get("name")), contents)
|
||||
|
||||
patches_with_hash = []
|
||||
with ThreadPoolExecutor() as executor:
|
||||
futures = {executor.submit(download_task, patch) for patch in patches}
|
||||
|
||||
for future in as_completed(futures):
|
||||
patches_with_hash.append(future.result())
|
||||
|
||||
result = {"base_url": base_url, "kernel": kernel, "patches": sorted(patches_with_hash, key=lambda p: p["name"])}
|
||||
|
||||
with open(args.filename, "w+") as f:
|
||||
json.dump(result, f, indent=2)
|
||||
f.write("\n") # write final newline
|
||||
print(f"Wrote to {args.filename}")
|
||||
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
@@ -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)
|
||||
```
|
||||
@@ -1,10 +0,0 @@
|
||||
{
|
||||
imports = [ ../../common/networking/intel/x550 ];
|
||||
|
||||
boot.initrd.availableKernelModules = [
|
||||
"xhci_pci"
|
||||
"usb_storage"
|
||||
"nvme"
|
||||
];
|
||||
nixpkgs.hostPlatform = "aarch64-linux";
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
# [ROG Ally (2023)](https://rog.asus.com/gaming-handhelds/rog-ally/rog-ally-2023/)
|
||||
|
||||
## BIOS
|
||||
|
||||
The ROG Ally has a troublesome history with different BIOS versions creating different issues.
|
||||
At the time of writing, the current BIOS version 330 allows for working audio without further kernel patches.
|
||||
|
||||
## Further resources
|
||||
|
||||
- The steam module from https://github.com/Jovian-Experiments/Jovian-NixOS can be used to boot into the Steam Deck UI
|
||||
@@ -1,17 +0,0 @@
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
../../../common/cpu/amd
|
||||
../../../common/cpu/amd/pstate.nix
|
||||
../../../common/gpu/amd
|
||||
../../../common/pc/laptop
|
||||
../../../common/pc/ssd
|
||||
../../battery.nix
|
||||
];
|
||||
|
||||
# 6.5 adds many fixes and improvements for the Ally
|
||||
# This includes for example performance, audio and bluetooth
|
||||
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "6.5") (
|
||||
lib.mkDefault pkgs.linuxPackages_latest
|
||||
);
|
||||
}
|
||||
@@ -1,53 +0,0 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
p = pkgs.writeScriptBin "charge-upto" ''
|
||||
#!${pkgs.bash}/bin/bash
|
||||
echo ''${1:-100} > /sys/class/power_supply/BAT?/charge_control_end_threshold
|
||||
'';
|
||||
cfg = config.hardware.asus.battery;
|
||||
in
|
||||
|
||||
{
|
||||
options.hardware.asus.battery = {
|
||||
chargeUpto = lib.mkOption {
|
||||
description = "Maximum level of charge for your battery, as a percentage.";
|
||||
default = 100;
|
||||
type = lib.types.int;
|
||||
};
|
||||
enableChargeUptoScript = lib.mkOption {
|
||||
description = "Whether to add charge-upto to environment.systemPackages. `charge-upto 75` temporarily sets the charge limit to 75%.";
|
||||
default = true;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
};
|
||||
config = {
|
||||
environment.systemPackages = lib.mkIf cfg.enableChargeUptoScript [ p ];
|
||||
systemd.services.battery-charge-threshold = {
|
||||
wantedBy = [
|
||||
"local-fs.target"
|
||||
"suspend.target"
|
||||
"suspend-then-hibernate.target"
|
||||
"hibernate.target"
|
||||
];
|
||||
after = [
|
||||
"local-fs.target"
|
||||
"suspend.target"
|
||||
"suspend-then-hibernate.target"
|
||||
"hibernate.target"
|
||||
];
|
||||
description = "Set the battery charge threshold to ${toString cfg.chargeUpto}%";
|
||||
startLimitBurst = 5;
|
||||
startLimitIntervalSec = 1;
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
Restart = "on-failure";
|
||||
ExecStart = "${pkgs.runtimeShell} -c 'echo ${toString cfg.chargeUpto} > /sys/class/power_supply/BAT?/charge_control_end_threshold'";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -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 = {
|
||||
modesetting.enable = lib.mkDefault true;
|
||||
open = lib.mkDefault false;
|
||||
nvidiaSettings = lib.mkDefault true;
|
||||
dynamicBoost.enable = lib.mkDefault true;
|
||||
|
||||
prime = {
|
||||
amdgpuBusId = "PCI:0:6:0";
|
||||
nvidiaBusId = "PCI:0:1:0";
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
asusd = {
|
||||
enable = lib.mkDefault true;
|
||||
};
|
||||
supergfxd.enable = lib.mkDefault true;
|
||||
};
|
||||
}
|
||||
@@ -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;
|
||||
```
|
||||
@@ -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,2 +0,0 @@
|
||||
# ASUS TUF A15 FA507NV
|
||||
As Nvidia offload is not available for AMD CPU, nvidia prime is using sync. Additionally the kernel is set to the latest stable release(using boot.kernelPackages = pkgs.linuxPackages_latest) as the keyboard and wireless drivers does not work in the default NixOS kernel which is the LTS kernel.
|
||||
@@ -1,50 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
../../common/cpu/amd
|
||||
../../common/cpu/amd/raphael/igpu.nix
|
||||
../../common/cpu/amd/pstate.nix
|
||||
../../common/gpu/nvidia
|
||||
../../common/gpu/nvidia/prime.nix
|
||||
../../common/hidpi.nix
|
||||
../../common/pc/laptop
|
||||
../../common/pc/ssd
|
||||
../battery.nix
|
||||
];
|
||||
|
||||
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "6.6") pkgs.linuxPackages_latest;
|
||||
|
||||
# The bottom 2 parts are taken from the framework 16-inch laptops configurations.
|
||||
# Workaround for SuspendThenHibernate: https://lore.kernel.org/linux-kernel/20231106162310.85711-1-mario.limonciello@amd.com/
|
||||
boot.kernelParams =
|
||||
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;
|
||||
};
|
||||
};
|
||||
|
||||
hardware.nvidia = {
|
||||
powerManagement.enable = lib.mkDefault true;
|
||||
modesetting.enable = lib.mkDefault true;
|
||||
open = lib.mkDefault false;
|
||||
nvidiaSettings = lib.mkDefault true;
|
||||
prime = {
|
||||
amdgpuBusId = "PCI:54:0:0";
|
||||
nvidiaBusId = "PCI:1:0:0";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../../common/cpu/amd
|
||||
../../common/gpu/nvidia/prime.nix
|
||||
../../common/gpu/nvidia/ampere
|
||||
../../common/pc/laptop
|
||||
../../common/pc/ssd
|
||||
];
|
||||
|
||||
hardware.nvidia.prime = {
|
||||
amdgpuBusId = "PCI:5:0:0";
|
||||
nvidiaBusId = "PCI:1:0:0";
|
||||
};
|
||||
}
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
@@ -1,52 +0,0 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (lib) mkEnableOption mkIf mkMerge;
|
||||
cfg = config.hardware.asus.flow.gv302x;
|
||||
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
../shared.nix
|
||||
];
|
||||
|
||||
options.hardware.asus.flow.gv302x.amdgpu = {
|
||||
recovery.enable = (mkEnableOption "Enable amdgpu.gpu_recovery kernel boot param") // {
|
||||
default = false;
|
||||
};
|
||||
sg_display.enable = (mkEnableOption "Enable amdgpu.gpu_recovery kernel boot param") // {
|
||||
default = true;
|
||||
};
|
||||
psr.enable = (mkEnableOption "Enable amdgpu.dcdebugmask=0x10 kernel boot param") // {
|
||||
default = true;
|
||||
};
|
||||
};
|
||||
|
||||
config = mkMerge [
|
||||
(mkIf cfg.amdgpu.recovery.enable {
|
||||
# Hopefully fixes for where the kernel sometimes hangs when suspending or hibernating
|
||||
# (Though, I'm very suspicious of the Mediatek Wifi...)
|
||||
boot.kernelParams = [
|
||||
"amdgpu.gpu_recovery=1"
|
||||
];
|
||||
})
|
||||
|
||||
(mkIf (!cfg.amdgpu.sg_display.enable) {
|
||||
# Can help solve flickering/glitching display issues since Scatter/Gather code was reenabled
|
||||
boot.kernelParams = [
|
||||
"amdgpu.sg_display=0"
|
||||
];
|
||||
})
|
||||
|
||||
(mkIf (!cfg.amdgpu.psr.enable) {
|
||||
# Can help solve flickering/glitching display issues since Scatter/Gather code was reenabled
|
||||
boot.kernelParams = [
|
||||
"amdgpu.dcdebugmask=0x10"
|
||||
];
|
||||
})
|
||||
];
|
||||
}
|
||||
@@ -1,55 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (lib) mkDefault;
|
||||
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
../shared.nix
|
||||
## "prime.nix" loads this, aleady:
|
||||
# ../../../common/gpu/nvidia
|
||||
../../../../common/gpu/nvidia/prime.nix
|
||||
../../../../common/gpu/nvidia/ada-lovelace
|
||||
|
||||
];
|
||||
|
||||
# NVIDIA GeForce RTX 4070 Mobile
|
||||
|
||||
boot = {
|
||||
blacklistedKernelModules = [ "nouveau" ];
|
||||
};
|
||||
|
||||
hardware = {
|
||||
## Enable the Nvidia card, as well as Prime and Offload:
|
||||
amdgpu.initrd.enable = mkDefault true;
|
||||
|
||||
nvidia = {
|
||||
|
||||
modesetting.enable = true;
|
||||
nvidiaSettings = mkDefault true;
|
||||
|
||||
prime = {
|
||||
offload = {
|
||||
enable = mkDefault true;
|
||||
enableOffloadCmd = mkDefault true;
|
||||
};
|
||||
amdgpuBusId = "PCI:69:0:0";
|
||||
nvidiaBusId = "PCI:1:0:0";
|
||||
};
|
||||
|
||||
powerManagement = {
|
||||
enable = mkDefault true;
|
||||
finegrained = mkDefault true;
|
||||
};
|
||||
|
||||
dynamicBoost.enable = mkDefault true;
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,113 +0,0 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (lib)
|
||||
mkDefault
|
||||
mkEnableOption
|
||||
mkIf
|
||||
mkMerge
|
||||
versionAtLeast
|
||||
;
|
||||
|
||||
cfg = config.hardware.asus.flow.gv302x;
|
||||
in
|
||||
{
|
||||
|
||||
imports = [
|
||||
../../../common/cpu/amd
|
||||
# Better power-savings from AMD PState:
|
||||
../../../common/cpu/amd/pstate.nix
|
||||
../../../common/gpu/amd
|
||||
../../../common/pc/laptop
|
||||
../../../common/pc/ssd
|
||||
];
|
||||
|
||||
options.hardware.asus.flow.gv302x = {
|
||||
# Kernels earlier than 6.9 (possibly even earlier) tend to take 1-2 key-presses
|
||||
# to wake-up the internal keyboard after the device is suspended.
|
||||
# Therefore, this option disables auto-suspend for the keyboard by default, but
|
||||
# enables it for kernel 6.9.x onwards.
|
||||
#
|
||||
# Note: the device name is "ASUS N-KEY Device".
|
||||
keyboard.autosuspend.enable =
|
||||
(mkEnableOption "Enable auto-suspend on the internal USB keyboard (ASUS N-KEY Device) on Flow GV302X")
|
||||
// {
|
||||
default = versionAtLeast config.boot.kernelPackages.kernel.version "6.9";
|
||||
defaultText = lib.literalExpression "lib.versionAtLeast config.boot.kernelPackages.kernel.version \"6.9\"";
|
||||
};
|
||||
# The ASUS 8295 ITE device will cause an immediate wake-up when trying to suspend the laptop.
|
||||
# After the first successful hibernate, it will work as expected, however.
|
||||
# NOTE: I'm not actually sure what this device, as neither the touchpad nor the M1-M4 keys cause a wake-up.
|
||||
ite-device.wakeup.enable = mkEnableOption "Enable power wakeup on the internal USB keyboard-like device (8295 ITE Device) on Flow GV302X";
|
||||
};
|
||||
|
||||
config = mkMerge [
|
||||
{
|
||||
# Configure basic system settings:
|
||||
boot = {
|
||||
kernelModules = [ "kvm-amd" ];
|
||||
kernelParams = [
|
||||
"mem_sleep_default=deep"
|
||||
"pcie_aspm.policy=powersupersave"
|
||||
];
|
||||
};
|
||||
|
||||
services = {
|
||||
asusd = {
|
||||
enable = mkDefault true;
|
||||
};
|
||||
|
||||
supergfxd.enable = mkDefault true;
|
||||
|
||||
udev = {
|
||||
extraHwdb = ''
|
||||
# Fixes mic mute button
|
||||
evdev:name:*:dmi:bvn*:bvr*:bd*:svnASUS*:pn*:*
|
||||
KEYBOARD_KEY_ff31007c=f20
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
#flow devices are 2 in 1 laptops
|
||||
hardware.sensor.iio.enable = mkDefault true;
|
||||
|
||||
}
|
||||
|
||||
(mkIf (!cfg.keyboard.autosuspend.enable) {
|
||||
services.udev.extraRules = ''
|
||||
# Disable power auto-suspend for the ASUS N-KEY device, i.e. USB Keyboard.
|
||||
# Otherwise on certain kernel-versions, it will tend to take 1-2 key-presses to wake-up after the device suspends.
|
||||
ACTION=="add", SUBSYSTEM=="usb", TEST=="power/autosuspend", ATTR{idVendor}=="0b05", ATTR{idProduct}=="19b6", ATTR{power/autosuspend}="-1"
|
||||
'';
|
||||
})
|
||||
|
||||
(mkIf (!cfg.ite-device.wakeup.enable) {
|
||||
services.udev.extraRules = ''
|
||||
# Disable power wakeup for the 8295 ITE device.
|
||||
# Otherwise on certain kernel-versions, it will tend to cause the laptop to immediately wake-up when suspending.
|
||||
# ACTION=="add|change", SUBSYSTEM=="usb", DRIVER="usb", TEST="power/wakeup", ATTR{idVendor}=="0b05", ATTR{idProduct}=="193b", ATTR{power/wakeup}="disabled"
|
||||
ACTION=="add|change", SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", ATTR{idProduct}=="193b", ATTR{power/wakeup}="disabled"
|
||||
'';
|
||||
})
|
||||
|
||||
(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
|
||||
# https://wiki.archlinux.org/title/Iwd#iwd_keeps_roaming
|
||||
#
|
||||
# But NixOS doesn't have the tweaks for IWD, yet.
|
||||
networking.wireless.iwd.settings = {
|
||||
General = {
|
||||
RoamThreshold = -75;
|
||||
RoamThreshold5G = -80;
|
||||
RoamRetryInterval = 20;
|
||||
};
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
||||
@@ -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,10 +0,0 @@
|
||||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
../../common/cpu/intel
|
||||
../../common/pc/laptop
|
||||
];
|
||||
|
||||
#Nouveau doesn't work at all on this model.
|
||||
boot.kernelParams = [ "nouveau.modeset=0" ];
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
<!-- vim: set fenc=utf-8 ts=2 sw=2 sts=-1 sr et si tw=0 fdm=marker fmr={{{,}}}: -->
|
||||
# [ASUS TUF Gaming F15 FX506HM (2021)](https://www.asus.com/laptops/for-gaming/tuf-gaming/2021-asus-tuf-gaming-f15/)
|
||||
|
||||
This imports common modules for the Intel CPU and iGPU, Nvidia and PRIME render offloading, basic laptop configs, basic SSD configs and configs for ASUS batteries.
|
||||
|
||||
On top of that, it sets the right PCI bus IDs for the iGPU and dGPU to make PRIME work well and enables modesetting.
|
||||
|
||||
## Useful other things to consider in your configuration
|
||||
### Battery charging limit
|
||||
Due to the common module for ASUS batteries, you can make your battery only charge up to a certain percentage to improve its life. You can place something similar to the following in your configuration to enable it:
|
||||
|
||||
```nix
|
||||
hardware.asus.battery =
|
||||
{
|
||||
chargeUpto = 85; # Maximum level of charge for your battery, as a percentage.
|
||||
enableChargeUptoScript = true; # Whether to add charge-upto to environment.systemPackages. `charge-upto 85` temporarily sets the charge limit to 85%.
|
||||
};
|
||||
```
|
||||
|
||||
### OpenRGB
|
||||
You can use OpenRGB to control the RGB keyboard on this laptop. There's also plugins for it to get some extra RGB lighting modes if you wish. You can place the following in your configuration to enable it:
|
||||
|
||||
```nix
|
||||
boot.kernelModules = [ "i2c-dev" ];
|
||||
hardware.i2c.enable = true;
|
||||
services.udev.packages = [ pkgs.openrgb ];
|
||||
services.hardware.openrgb.enable = true;
|
||||
```
|
||||
@@ -1,22 +0,0 @@
|
||||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../../common/cpu/intel
|
||||
../../common/gpu/nvidia
|
||||
../../common/gpu/nvidia/prime.nix
|
||||
../../common/pc/laptop
|
||||
../../common/pc/ssd
|
||||
../battery.nix
|
||||
];
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = lib.mkDefault true;
|
||||
open = lib.mkIf (lib.versionAtLeast config.hardware.nvidia.package.version "555") true;
|
||||
|
||||
prime = {
|
||||
intelBusId = "PCI:0:2:0";
|
||||
nvidiaBusId = "PCI:1:0:0";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
= ASUS Pro WS X570-ACE =
|
||||
|
||||
== Firmware issues ==
|
||||
|
||||
=== BIOS ===
|
||||
|
||||
BIOS version 4805 (and possibly older) has broken <code>X2APIC</code> mode, which in turn breaks <code>amd-pstate</code> support.
|
||||
Other possible config values for <code>APIC</code> are <code>Compatibility</code>, <code>Auto</code> and <code>XAPIC</code>; best results were observed with <code>XAPIC</code>.
|
||||
|
||||
This is the error in dmesg when <code>X2APIC</code> is enabled:
|
||||
|
||||
<code>
|
||||
amd_pstate: the _CPC object is not present in SBIOS or ACPI disabled
|
||||
</code>
|
||||
|
||||
=== IPMI ===
|
||||
|
||||
The IPMI is half-baked and for the most part unusable in a pure Linux environment, see https://forum.level1techs.com/t/remote-management-on-the-asus-pro-ws-x570-ace-under-linux
|
||||
|
||||
== Firmware features ==
|
||||
|
||||
=== IOMMU ===
|
||||
|
||||
The groups are great, it's a good board for VFIO.
|
||||
|
||||
=== ECC Memory ===
|
||||
|
||||
As stated on the product page, it works; explicitly enabling in BIOS might be required.
|
||||
Tested with <code>M391A2K43BB1-CTD</code>.
|
||||
@@ -1,19 +0,0 @@
|
||||
{
|
||||
imports = [
|
||||
../../common/pc
|
||||
../../common/pc/ssd
|
||||
../../common/cpu/amd/pstate.nix
|
||||
];
|
||||
|
||||
boot.kernelModules = [
|
||||
# Nuvoton NCT6798D - temperature, voltage and RPM
|
||||
"nct6775"
|
||||
|
||||
# a single "temp1" sensor, always at "+31.9°C"
|
||||
# commented because it's not useful, but left here for reference
|
||||
# Bus `SMBus PIIX4 adapter port 1 at 0b20'
|
||||
# Busdriver `i2c_piix4', I2C address 0x4f
|
||||
# Chip `ds75'
|
||||
# "lm75"
|
||||
];
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
{ lib, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../../../common/cpu/amd
|
||||
../../../common/cpu/amd/pstate.nix
|
||||
../../../common/gpu/amd
|
||||
../../../common/pc/laptop
|
||||
../../../common/pc/ssd
|
||||
../../../common/hidpi.nix
|
||||
../../battery.nix
|
||||
];
|
||||
|
||||
hardware.enableRedistributableFirmware = lib.mkDefault true;
|
||||
security.tpm2.enable = lib.mkDefault true;
|
||||
hardware.sensor.iio.enable = lib.mkDefault true;
|
||||
}
|
||||
@@ -1,77 +0,0 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../default.nix
|
||||
# no effect at Linux 7.2 as patches are merged
|
||||
./tas2783-kernel-patches.nix
|
||||
];
|
||||
|
||||
assertions = [
|
||||
{
|
||||
assertion = lib.versionAtLeast config.boot.kernelPackages.kernel.version "7.0";
|
||||
message = "ASUS ProArt PX13 (HN7306EAC) hardware requires Linux ≥ 7.0 (current ${config.boot.kernelPackages.kernel.version})";
|
||||
}
|
||||
];
|
||||
|
||||
hardware = {
|
||||
alsa.enablePersistence = lib.mkDefault true;
|
||||
firmware = lib.optional (lib.versionOlder pkgs.linux-firmware.version "20260519") (
|
||||
pkgs.callPackage ./tas2783-firmware.nix { }
|
||||
);
|
||||
};
|
||||
|
||||
environment.etc = {
|
||||
"alsa/ucm2/codecs/tas2783/init.conf".source = ./ucm2/codecs/tas2783/init.conf;
|
||||
"alsa/ucm2/sof-soundwire/acp-dmic.conf".source = ./ucm2/sof-soundwire/acp-dmic.conf;
|
||||
"alsa/ucm2/sof-soundwire/tas2783.conf".source = ./ucm2/sof-soundwire/tas2783.conf;
|
||||
"alsa/ucm2/sof-soundwire/sof-soundwire.conf".source = ./ucm2/sof-soundwire/sof-soundwire.conf;
|
||||
};
|
||||
|
||||
# WirePlumber config for TAS2783 smart amp speakers.
|
||||
# UCM doesn’t expose a Speakers port for this card, so force pro-audio and
|
||||
# prevent the speaker sink from suspending (prevents desync on idle).
|
||||
# Firmware extraction recipe and original config:
|
||||
# https://gist.github.com/cryptob1/f62aaf8517df2e540f447347f42c7a03
|
||||
services.pipewire.wireplumber.extraConfig."51-strix-halo-audio" = {
|
||||
"monitor.alsa.rules" = [
|
||||
{
|
||||
matches = [
|
||||
{ "device.name" = "alsa_card.pci-0000_c4_00.5-platform-amd_sdw"; }
|
||||
];
|
||||
actions."update-props" = {
|
||||
"device.profile" = "pro-audio";
|
||||
};
|
||||
}
|
||||
{
|
||||
matches = [
|
||||
{ "node.name" = "alsa_output.pci-0000_c4_00.5-platform-amd_sdw.pro-output-2"; }
|
||||
];
|
||||
actions."update-props" = {
|
||||
"session.suspend-timeout-seconds" = 0;
|
||||
"node.description" = "Internal Speakers (TAS2783)";
|
||||
"priority.session" = 2300;
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
# Unmute the TAS2783 once detected.
|
||||
services.udev.extraRules =
|
||||
let
|
||||
amixer = "${lib.getBin pkgs.alsa-utils}/bin/amixer";
|
||||
in
|
||||
/* udev */ ''
|
||||
ACTION=="add", SUBSYSTEM=="sound", ATTR{id}=="sofsoundwire", RUN+="${amixer} -c $attr{number} set 'tas2783-1 Amp Playback Switch' 1"
|
||||
|
||||
ACTION=="add", SUBSYSTEM=="sound", ATTR{id}=="amdsoundwire", RUN+="${amixer} -c $attr{number} set 'tas2783-1 Amp' on"
|
||||
ACTION=="add", SUBSYSTEM=="sound", ATTR{id}=="amdsoundwire", RUN+="${amixer} -c $attr{number} set 'tas2783-2 Amp' on"
|
||||
ACTION=="add", SUBSYSTEM=="sound", ATTR{id}=="amdsoundwire", RUN+="${amixer} -c $attr{number} set 'tas2783-1 Speaker' on"
|
||||
ACTION=="add", SUBSYSTEM=="sound", ATTR{id}=="amdsoundwire", RUN+="${amixer} -c $attr{number} set 'tas2783-2 Speaker' on"
|
||||
'';
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
diff --git a/sound/soc/codecs/tas2783-sdw.c b/sound/soc/codecs/tas2783-sdw.c
|
||||
--- a/sound/soc/codecs/tas2783-sdw.c
|
||||
+++ b/sound/soc/codecs/tas2783-sdw.c
|
||||
@@ -1120,7 +1120,7 @@ static void tas_generate_fw_name(struct sdw_slave *slave, char *name, size_t siz
|
||||
for (; dev; dev = dev->parent) {
|
||||
if (dev->bus == &pci_bus_type) {
|
||||
pci = to_pci_dev(dev);
|
||||
- scnprintf(name, size, "%04X-%1X-%1X.bin",
|
||||
+ scnprintf(name, size, "%04X-%1X-0x%X.bin",
|
||||
pci->subsystem_device, bus->link_id, unique_id);
|
||||
pci_found = true;
|
||||
break;
|
||||
@@ -1129,7 +1129,7 @@ static void tas_generate_fw_name(struct sdw_slave *slave, char *name, size_t siz
|
||||
#endif
|
||||
|
||||
if (!pci_found)
|
||||
- scnprintf(name, size, "tas2783-%1X-%1X.bin",
|
||||
+ scnprintf(name, size, "tas2783-%1X-0x%X.bin",
|
||||
bus->link_id, unique_id);
|
||||
}
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchurl,
|
||||
icoutils,
|
||||
p7zip,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "asus-px13-tas2783-firmware";
|
||||
version = "6.3.1.15";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://dlcdnets.asus.com/pub/ASUS/nb/Image/Driver/Audio/47519/SmartAMP_TI_DCH_TexasInstruments_Z_V${finalAttrs.version}_47519.exe?model=HN7306EAC";
|
||||
hash = "sha256-hyiDV5W+Rn05xyG2JF5uA41E/L8NDklxjvRctE64o84=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
icoutils
|
||||
p7zip
|
||||
];
|
||||
|
||||
unpackPhase = ''
|
||||
wrestool -x --raw -t ZIP -n 103 "$src" > driver.7z 2>/dev/null
|
||||
7z x driver.7z -ozip_out -y >/dev/null 2>&1
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -D -m 644 $(find zip_out -name "1714-1-0x8.bin" | head -1) $out/lib/firmware/1714-1-0x8.bin
|
||||
install -D -m 644 $(find zip_out -name "1714-1-0xB.bin" | head -1) $out/lib/firmware/1714-1-0xB.bin
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "TAS2783 Smart Amp firmware for ASUS ProArt PX13 HN7306EAC";
|
||||
homepage = "https://www.asus.com/support/download/HN7306EAC/";
|
||||
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
||||
license = with lib.licenses; [ unfreeRedistributableFirmware ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
})
|
||||
@@ -1,46 +0,0 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
# See CachyOS’s discussion:
|
||||
# https://github.com/CachyOS/linux-cachyos/issues/737
|
||||
let
|
||||
mkPatch = name: hash: {
|
||||
inherit name;
|
||||
patch = pkgs.fetchpatch {
|
||||
inherit name;
|
||||
url = "https://aur.archlinux.org/cgit/aur.git/plain/${name}.patch?h=linux-cachyos-px13";
|
||||
inherit hash;
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
boot.kernelPatches =
|
||||
lib.optionals (lib.versionOlder config.boot.kernelPackages.kernel.version "7.2")
|
||||
[
|
||||
(mkPatch "0001-ALSA-tas2783-sdw-add-Playback-to-volume-control" "sha512-IdIy81PXtmQAQ+MVChYDYkoa5RDhQwP2L5efN8cz+tST3nM0Oc0x4SJ4sBnVL7QDJc/WBB0OEnFfTkEt9Id+cQ==")
|
||||
(mkPatch "0002-Names-to-match-snd_soc_dai_driver-playback-capturest" "sha512-SrCgzceh3rhyYz5tNWHY2jNWyG/qgmU7ZVLtV71iir8HwOrSES7JsunV2E7mb8R66dShY+loV8ovNeMkyuDB7w==")
|
||||
(mkPatch "0003-removed-unused-fields" "sha512-mWKqFg8AG00TE3oPy5usPPxWf6aIvhxMLDGI+/0+vvjBIFwWv6qh9jSUeid6CAKgAcluPSA8Sag4ESguCeinyw==")
|
||||
(mkPatch "0004-SOC_SINGLE_RANGE_TLV-uses-snd_soc_get_volsw-snd_soc_" "sha512-G51v725q17UHvfPg4H8V92eSbZ5lcuiF97Zt1EbAtuwrhXefeaZy+hl79sSpVlzzY8pvzIwf6wodAuvp44M01A==")
|
||||
(mkPatch "0005-dev_set_drvdata-already-called-intas_sdw_probe" "sha512-zk+rKZ/l0oB7JdABtb89x6tUzggP99TSy+3cr+q6QjZFdjGsLPXHxre0YACuKBNx6+JazZE/zEilIvahS4wOLQ==")
|
||||
(mkPatch "0006-refactor-setting-sa_func_data" "sha512-8djgIJV1LCzDhFLFn/PNfDkE+U0mh2h4Rm2LJMeLUYKQlwzgPMbICh5B3HhCgEVTaUd54OGOSFEf0i6AIm2SIQ==")
|
||||
(mkPatch "0007-check-AF01-for-init-data" "sha512-gjpdnJDzve37MnyVE52+E9sRkXF9+HtA4XTrBZQiV8ozFwWgIzhO2ZDKSpWbE/kd23PdaUcKX/fPj3J7ZD5YqA==")
|
||||
(mkPatch "0008-setup-ports" "sha512-uuDa92VXlCsszswv8PHcDbbyfseL6Jt7DWPc5ajG1WSM/FGojRIbbl/2smQyGfE2jPquy5GQfJps7k1cRfpl8w==")
|
||||
(mkPatch "0009-Already-set-by-SOC_SINGLE_RANGE_TLV-Speaker-Playback" "sha512-qBveCsmwezD13oWF5jBlUybdns5OsDDZji0y0smaKWi9GPAvhw/v66WUnEyC77UF1mvq+OyrWpA4yXwxAFza3Q==")
|
||||
(mkPatch "0010-control-to-set-channel" "sha512-pL8Ol1ml2QhyKnzZvD+oTaVUPyqOO49uuiEUzyKdnskFwVH+jIluY3IDsmzWv5wTg/9D+CTGC4J8gW55xKwWfg==")
|
||||
(mkPatch "0011-mute-unmute-using-SND_SOC_DAPM_SWITCH" "sha512-6aB8mBACTIQxU7CTrpR3UXJFdR4KbUOT9/AymyGiuV/9PfWdXZoW/0A09SHFptxRwCv4FG5tZSDZRtKvvYNQdQ==")
|
||||
(mkPatch "0012-use-SND_SOC_DAPM_REG-to-power-on-off" "sha512-mJ93TxZQ1GuDGar0/6tBd/dlJ3B/41AVhRsViuSaEhykPC4NlIAOWaN9eJj4bxjEEyEQ3REfjHXVnJ3wdCRK9w==")
|
||||
(mkPatch "0013-reattach-after-resume" "sha512-OdkYPzRDkd4FCd1OTOAfRrQW6JQ9D3Opic/X+sg+pLNGoEEXfph/sLXVYGo9u6DGPJndQZNrXyS4qhJMGPWVMw==")
|
||||
(mkPatch "0014-defer-check" "sha512-ABSrwsOB+KU39LMxh3N47Ji+edhu5rDQMKMi5rEVXtCU8W56qANpU+ui+bJmOLYyq8c9H1qme+b5nQ6u9zv01w==")
|
||||
(mkPatch "0015-to-help-alsa-find-them" "sha512-gVJ+0ZO9Oz15/rC08moVSlVglbishJctjH5SnDdI8m3s9hkEY56o8v+R/PlRS3rL+mOa9q3VuO5J40+LrcxDKw==")
|
||||
(mkPatch "0016-cleanup-controls" "sha512-Jkp7kdi0FmVMlBL/VVzq7hYkCmKoELO0epnExP7ggQuopCzRbVpUQ3giMlj10O69aUBZJ4z3gaMkb1HTYjIXmA==")
|
||||
# Upstream linux-firmware took a different naming approach to the original patches
|
||||
{
|
||||
name = "0017-fix-tas2783-fw-name-0x";
|
||||
patch = ./fix-tas2783-fw-name-0x.patch;
|
||||
}
|
||||
];
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
# TAS2783 specific switch control settings
|
||||
|
||||
Define.SpeakerMixerElem "tas2783-1 Speaker Playback"
|
||||
|
||||
If.twoAmpsStereoToOne {
|
||||
Condition {
|
||||
Type RegexMatch
|
||||
Regex "2"
|
||||
String "${var:SpeakerAmps}"
|
||||
}
|
||||
True {
|
||||
Define.SpeakerMixerElem "tas2783 Speaker"
|
||||
LibraryConfig.remap.Config {
|
||||
ctl.default.map {
|
||||
"name='tas2783 Speaker Playback Switch'" {
|
||||
"name='tas2783-1 Speaker Playback Switch'".vindex.0 0
|
||||
"name='tas2783-2 Speaker Playback Switch'".vindex.1 0
|
||||
}
|
||||
"name='tas2783 Speaker Playback Volume'" {
|
||||
"name='tas2783-1 Speaker Playback Volume'".vindex.0 0
|
||||
"name='tas2783-2 Speaker Playback Volume'".vindex.1 0
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
If.oneAmp {
|
||||
Condition {
|
||||
Type ControlExists
|
||||
Control "name='tas2783-1 Speaker Playback Switch'"
|
||||
}
|
||||
True.Macro[{ SetLED { LED="speaker" Action="attach" CtlId="tas2783-1 Speaker Playback Switch" } }]
|
||||
}
|
||||
|
||||
If.twoAmps {
|
||||
Condition {
|
||||
Type ControlExists
|
||||
Control "name='tas2783-2 Speaker Playback Switch'"
|
||||
}
|
||||
True.Macro[{ SetLED { LED="speaker" Action="attach" CtlId="tas2783-2 Speaker Playback Switch" } }]
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
SectionDevice."Mic" {
|
||||
Comment "Digital Microphone"
|
||||
|
||||
Value {
|
||||
CapturePriority 100
|
||||
CapturePCM "hw:${CardId},4"
|
||||
}
|
||||
}
|
||||
@@ -1,206 +0,0 @@
|
||||
Syntax 7
|
||||
|
||||
SectionUseCase."HiFi" {
|
||||
File "/sof-soundwire/HiFi.conf"
|
||||
Comment "Play HiFi quality Music"
|
||||
}
|
||||
|
||||
Include.led.File "/common/ctl/led.conf"
|
||||
Include.card-init.File "/lib/card-init.conf"
|
||||
Include.ctl-remap.File "/lib/ctl-remap.conf"
|
||||
|
||||
Define {
|
||||
SpeakerCodec1 ""
|
||||
SpeakerChannels1 "2"
|
||||
SpeakerAmps1 "0"
|
||||
HeadsetCodec1 ""
|
||||
MicCodec1 ""
|
||||
Mics1 "0"
|
||||
Iec61937Pcms1 ""
|
||||
MultiCodec1 ""
|
||||
}
|
||||
|
||||
DefineRegex {
|
||||
SpeakerCodec {
|
||||
Regex " spk:([a-z0-9]+((-sdca)|(-spk)|(-bridge))?(\\+[a-z0-9]+)?)"
|
||||
String "${CardComponents}"
|
||||
}
|
||||
SpeakerChannels {
|
||||
Regex " cfg-spk:([0-9]+)"
|
||||
String "${CardComponents}"
|
||||
}
|
||||
SpeakerAmps {
|
||||
Regex " cfg-amp:([0-9]+)"
|
||||
String "${CardComponents}"
|
||||
}
|
||||
HeadsetCodec {
|
||||
Regex " hs:([a-z0-9]+(-sdca)?)"
|
||||
String "${CardComponents}"
|
||||
}
|
||||
MicCodec {
|
||||
Regex " mic:([a-z0-9]+(-dmic)?+(-sdca)?)"
|
||||
String "${CardComponents}"
|
||||
}
|
||||
Mics {
|
||||
Regex " cfg-mics:([1-9][0-9]*)"
|
||||
String "${CardComponents}"
|
||||
}
|
||||
Iec61937Pcms {
|
||||
Regex "iec61937-pcm:(([0-9]+(,))*[0-9]+)"
|
||||
String "${CardComponents}"
|
||||
}
|
||||
MultiCodec {
|
||||
Regex "(rt712|rt713|rt721|rt722)"
|
||||
String "${var:SpeakerCodec1} ${var:HeadsetCodec1} ${var:MicCodec1}"
|
||||
}
|
||||
}
|
||||
|
||||
If.multi_init {
|
||||
Condition {
|
||||
Type String
|
||||
Empty "${var:MultiCodec1}"
|
||||
}
|
||||
False {
|
||||
Define {
|
||||
MultiSpeakerShadow "${var:SpeakerCodec1}"
|
||||
MultiMicShadow "${var:MicCodec1}"
|
||||
}
|
||||
Include.multi_init.File "/codecs/${var:MultiCodec1}/init.conf"
|
||||
}
|
||||
}
|
||||
|
||||
If.multi_speaker {
|
||||
Condition {
|
||||
Type RegexMatch
|
||||
# guard with "=" to avoid empty string matching
|
||||
Regex "=(${var:MultiCodec1}(-sdca)?)="
|
||||
String "=${var:SpeakerCodec1}="
|
||||
}
|
||||
True {
|
||||
Define.SpeakerCodec1 ""
|
||||
}
|
||||
}
|
||||
|
||||
If.multi_mic {
|
||||
Condition {
|
||||
Type RegexMatch
|
||||
# guard with "=" to avoid empty string matching
|
||||
Regex "=(${var:MultiCodec1}(-sdca)?)="
|
||||
String "=${var:MicCodec1}="
|
||||
}
|
||||
True {
|
||||
Define.MicCodec1 ""
|
||||
}
|
||||
}
|
||||
|
||||
If.multi_headset {
|
||||
Condition {
|
||||
Type RegexMatch
|
||||
# guard with "=" to avoid empty string matching
|
||||
Regex "=(${var:MultiCodec1}(-sdca)?)="
|
||||
String "=${var:HeadsetCodec1}="
|
||||
}
|
||||
True {
|
||||
Define.HeadsetCodec1 ""
|
||||
}
|
||||
}
|
||||
|
||||
If.spk_init {
|
||||
Condition {
|
||||
Type RegexMatch
|
||||
Regex "(rt1318(-1)?|cs35l56(-bridge)?|tas2783(-1)?)"
|
||||
String "${var:SpeakerCodec1}"
|
||||
}
|
||||
True.Include.spk_init.File "/codecs/${var:SpeakerCodec1}/init.conf"
|
||||
}
|
||||
|
||||
If.hs_init {
|
||||
Condition {
|
||||
Type RegexMatch
|
||||
Regex "(cs42l43|cs42l45|rt5682|rt700|rt711|rt713(-sdca)?)"
|
||||
String "${var:HeadsetCodec1}"
|
||||
}
|
||||
True.Include.hs_init.File "/codecs/${var:HeadsetCodec1}/init.conf"
|
||||
}
|
||||
|
||||
If.mic_init {
|
||||
Condition {
|
||||
Type RegexMatch
|
||||
Regex "(cs42l43-dmic|cs42l45-dmic|rt712-dmic|rt713-dmic|rt715(-sdca)?)"
|
||||
String "${var:MicCodec1}"
|
||||
}
|
||||
True.Include.mic_init.File "/codecs/${var:MicCodec1}/init.conf"
|
||||
}
|
||||
|
||||
If.mic_init_rt715 {
|
||||
Condition {
|
||||
Type String
|
||||
Needle "rt715"
|
||||
Haystack "${var:MicCodec1}"
|
||||
}
|
||||
True.Macro [{ SetLED { LED="mic" Action="detach" CtlId="PGA5.0 5 Master Capture Switch" } }]
|
||||
}
|
||||
|
||||
If.pga_init_pga2 {
|
||||
Condition {
|
||||
Type ControlExists
|
||||
Control "name='PGA2.0 2 Master Capture Switch'"
|
||||
}
|
||||
True.BootSequence [
|
||||
cset "name='PGA2.0 2 Master Capture Switch' 1"
|
||||
]
|
||||
}
|
||||
|
||||
If.pga_init_pga5 {
|
||||
Condition {
|
||||
Type ControlExists
|
||||
Control "name='PGA5.0 5 Master Capture Switch'"
|
||||
}
|
||||
True.BootSequence [
|
||||
cset "name='PGA5.0 5 Master Capture Switch' 1"
|
||||
]
|
||||
}
|
||||
|
||||
If.mics-array {
|
||||
Condition {
|
||||
Type String
|
||||
Empty "${var:Mics1}"
|
||||
}
|
||||
False.FixedBootSequence [
|
||||
# dmic array info
|
||||
exec "-nhlt-dmic-info -o ${var:LibDir}/dmics-nhlt.json"
|
||||
]
|
||||
}
|
||||
|
||||
Include.hdmi-pcm.File "/common/pcm/hdmi.conf"
|
||||
|
||||
Macro.0.HdmiDevice { Iec61937Devices "${var:Iec61937Pcms1}" Dev 5 Idx 0 }
|
||||
Macro.1.HdmiDevice { Iec61937Devices "${var:Iec61937Pcms1}" Dev 6 Idx 1 }
|
||||
Macro.2.HdmiDevice { Iec61937Devices "${var:Iec61937Pcms1}" Dev 7 Idx 2 }
|
||||
|
||||
If.HdmiIec61937 {
|
||||
Condition {
|
||||
Type RegexMatch
|
||||
Regex "((^|,)[567](,|$))"
|
||||
String "${var:Iec61937Pcms1}"
|
||||
}
|
||||
True.Macro.save_hdmi_cfg.HdmiPCMSave { Name "42-sof-hdmi" }
|
||||
}
|
||||
|
||||
# Define macros to set up processing controls
|
||||
Include.dsp-variables.File "/Intel/sof-hda-dsp/dsp.conf"
|
||||
|
||||
# Set BootSequence and FixedBootSequence for drc, eqiir, eqfir
|
||||
Macro.SpeakerDrc.SofDrcBootSetup "endpoint='PostMixerSpeaker' direction='Playback'"
|
||||
Macro.SpeakerIir.SofEqBootSetup "endpoint='PostMixerSpeaker' direction='Playback' eqtype='Iir'"
|
||||
Macro.SpeakerFir.SofEqBootSetup "endpoint='PostMixerSpeaker' direction='Playback' eqtype='Fir'"
|
||||
|
||||
# Set BootSequence and FixedBootSequence for Mic array eqiir, tdfb, drc
|
||||
Macro.MicArrayIir.SofEqBootSetup "endpoint='MicArray' direction='Capture' eqtype='Iir'"
|
||||
Macro.MicArrayDrc.SofDrcBootSetup "endpoint='MicArray' direction='Capture'"
|
||||
Macro.MicarrayTdfb.SofBeamformerBootSetup "endpoint='MicArray' direction='Capture'"
|
||||
|
||||
# For SoundWire PC with PCH-DMIC set BootSequence and FixedBootSequence for eqiir, tdfb, drc
|
||||
Macro.Dmic0ArrayIir.SofEqBootSetup "endpoint='Dmic0' direction='Capture' eqtype='Iir'"
|
||||
Macro.Dmic0ArrayDrc.SofDrcBootSetup "endpoint='Dmic0' direction='Capture'"
|
||||
Macro.Dmic0ArrayTdfb.SofBeamformerBootSetup "endpoint='Dmic0' direction='Capture'"
|
||||
@@ -1,43 +0,0 @@
|
||||
# TAS2783 Use case Configuration for sof-soundwire card
|
||||
|
||||
#
|
||||
# Arguments:
|
||||
# ForAmps - regex filter for var:SpeakerAmps
|
||||
# Amp - amplifier number (1,2 etc.)
|
||||
#
|
||||
DefineMacro.tas2783spk.If.0 {
|
||||
Condition {
|
||||
Type RegexMatch
|
||||
Regex "${var:__ForAmps}"
|
||||
String "${var:SpeakerAmps}"
|
||||
}
|
||||
True {
|
||||
EnableSequence [
|
||||
cset "name='tas2783-${var:__Amp} Amp Playback Switch' 1"
|
||||
cset "name='tas2783-${var:__Amp} Speaker Playback Switch' 1"
|
||||
]
|
||||
DisableSequence [
|
||||
cset "name='tas2783-${var:__Amp} Amp Playback Switch' 0"
|
||||
cset "name='tas2783-${var:__Amp} Speaker Playback Switch' 0"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
SectionDevice."Speaker" {
|
||||
Comment "Speaker"
|
||||
|
||||
EnableSequence [
|
||||
# cset "name='tas2783 Speaker Playback Switch' on"
|
||||
]
|
||||
|
||||
DisableSequence [
|
||||
# cset "name='tas2783 Speaker Playback Switch' off"
|
||||
]
|
||||
|
||||
Value {
|
||||
PlaybackPriority 100
|
||||
PlaybackPCM "hw:${CardId},2"
|
||||
PlaybackMixer "default:${CardId}"
|
||||
PlaybackMixerElem "${var:SpeakerMixerElem}"
|
||||
}
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../../common/cpu/intel/skylake
|
||||
../../common/gpu/nvidia/maxwell
|
||||
../../common/gpu/nvidia/prime.nix
|
||||
../../common/pc/laptop
|
||||
../../common/pc/ssd
|
||||
];
|
||||
|
||||
hardware.nvidia.prime = {
|
||||
intelBusId = "PCI:0:2:0";
|
||||
nvidiaBusId = "PCI:1:0:0";
|
||||
};
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
{
|
||||
imports = [
|
||||
../../../common/cpu/amd
|
||||
../../../common/cpu/amd/pstate.nix
|
||||
../../../common/gpu/nvidia
|
||||
../../../common/gpu/nvidia/prime.nix
|
||||
../../../common/gpu/nvidia/ampere
|
||||
../../../common/pc/laptop
|
||||
../../../common/pc/ssd
|
||||
../../battery.nix
|
||||
];
|
||||
|
||||
hardware.nvidia.prime = {
|
||||
amdgpuBusId = "PCI:05:00:0";
|
||||
nvidiaBusId = "PCI:01:00:0";
|
||||
};
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../../../common/cpu/amd
|
||||
../../../common/cpu/amd/pstate.nix
|
||||
../../../common/gpu/nvidia/prime.nix
|
||||
../../../common/gpu/nvidia/ampere
|
||||
../../../common/pc/laptop
|
||||
../../../common/pc/ssd
|
||||
../../battery.nix
|
||||
];
|
||||
|
||||
hardware.nvidia.prime = {
|
||||
amdgpuBusId = "PCI:6:0:0";
|
||||
nvidiaBusId = "PCI:1:0:0";
|
||||
};
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../../../common/cpu/intel
|
||||
../../../common/gpu/nvidia/prime.nix
|
||||
../../../common/gpu/nvidia/ampere
|
||||
../../../common/pc/laptop
|
||||
../../../common/pc/ssd
|
||||
../../battery.nix
|
||||
];
|
||||
|
||||
hardware.nvidia.prime = {
|
||||
intelBusId = "PCI:0:2:0";
|
||||
nvidiaBusId = "PCI:1:0:0";
|
||||
};
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
{
|
||||
imports = [
|
||||
../../../common/cpu/amd
|
||||
../../../common/cpu/amd/pstate.nix
|
||||
../../../common/gpu/nvidia
|
||||
../../../common/gpu/nvidia/prime.nix
|
||||
../../../common/gpu/nvidia/ampere
|
||||
../../../common/pc/laptop
|
||||
../../../common/pc/ssd
|
||||
../../battery.nix
|
||||
];
|
||||
|
||||
hardware.nvidia.prime = {
|
||||
amdgpuBusId = "PCI:5:0:0";
|
||||
nvidiaBusId = "PCI:1:0:0";
|
||||
};
|
||||
}
|
||||
Loaded 100 of 1009 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user