Compare commits

...
680 Commits
Author SHA1 Message Date
K900 f9a55f8d23 common/pc: only enable xf86-input-libinput when X is enabled 2024-04-10 17:04:36 +03:00
AndreandJörg Thalheim 805adee81c Add Lenovo legion 16ARHA7 (#906)
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2024-04-10 10:52:19 +02:00
Jörg Thalheim 05aa46a1f3 Merge pull request #905 from stigtsp/surface-kernel-bump-9
surface: linux 6.6.13 -> 6.6.25
2024-04-09 22:46:47 +02:00
Jörg Thalheim 1e3b3a35b7 Merge pull request #902 from skeuchel/milkv-pioneer
milkv/pioneer: init
2024-04-08 10:48:28 +02:00
Jörg Thalheim 218ab789fd milkv/pioneer: fix u-root cross-compilation
Signed-off-by: Jörg Thalheim <joerg@thalheim.io>
2024-04-08 06:34:49 +02:00
Stig Palmquist 41e6854df7 surface: linux 6.6.13 -> 6.6.25 2024-04-06 17:49:02 +02:00
yuannan f3b959627b removed edid 2024-04-05 13:47:45 +00:00
yuannan a7825c5b9a 15ach6h 2024-04-05 13:47:45 +00:00
Benedikt Ritter a3746a14c1 feat: add dell latitude 7280 module 2024-04-05 13:41:45 +00:00
deirn e1cbffcf3a ga401: use mkDefault for dynamicBoost 2024-04-05 13:36:28 +00:00
Steven Keuchel f4a07223a3 milkv/pioneer: init 2024-04-05 13:35:18 +00:00
Raito Bezarius cac934beb3 fix(pine64/star64): resolve conflicting definition for Linux 5.15
Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
2024-04-05 15:30:34 +02:00
Ryan Lahfa 400688fb2c Merge pull request #898 from matdibu/master
protectli vp4670
2024-04-05 06:18:38 -07:00
Matei Dibu adcd458b55 protectli/vp4670: init 2024-03-25 19:40:30 +02:00
Matei Dibu 823a82200c common/cpu/intel/comet-lake: init 2024-03-25 12:24:34 +02:00
Jörg Thalheim 9a763a7acc Merge pull request #880 from jalseth/x13-amd
Add Thinkpad X13 Gen1 AMD variant
2024-03-25 08:45:45 +01:00
Nire BryceandJörg Thalheim 474549f841 gigabyte b550: suspend fix (#884)
fixes b550 suspend bug by setting up systemd services that disable GPP0 and GPP8 in /proc/acpi/wakeup

Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2024-03-25 08:40:22 +01:00
Jörg Thalheim 7559df1e4a Merge pull request #892 from piousdeer/yes-edid
16ach6h: re-enable edid for internal display only
2024-03-24 11:04:31 +01:00
mergify[bot] 3ba071c120 Merge branch 'master' into yes-edid 2024-03-18 17:43:36 +00:00
kevinlmadison 1e679b9a99 Update readme 2024-03-18 17:42:08 +00:00
kevinlmadison 5bf55b8532 Add msi-b350-tomahawk module to flake 2024-03-18 17:42:08 +00:00
kevinlmadison 1568f005e1 add support for MSI B350 TOMAHAWK Motherboard 2024-03-18 17:42:08 +00:00
piousdeer b081de56df 16ach6h: re-enable edid for internal display only 2024-03-18 22:30:49 +07:00
Jörg Thalheim 968952f950 Merge pull request #890 from yaoshiu/no-edid
fix: comment out the edid module for legion-16ach6h
2024-03-16 21:46:44 +01:00
Fay Ash 74967732a5 fix: comment out the edid module for legion-16ach6h
It seems to break extra monitor modes
2024-03-16 00:48:04 +08:00
dependabot[bot] ad2fd7b978 build(deps): bump cachix/install-nix-action from 25 to 26
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 25 to 26.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v25...v26)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-11 02:13:45 +00:00
James Alseth 19e5d3c9d9 Add Thinkpad X13 Gen1 AMD variant 2024-03-04 08:54:30 -08:00
koalp 59e37017b9 Add msi B550 a pro motherboard 2024-03-02 20:16:23 +00:00
Bit 33a97b5814 add w520 to readme 2024-02-28 19:19:50 +00:00
Bit Borealis ce93797a42 add w520 ( copy of t520 ) 2024-02-28 19:19:50 +00:00
Vinetos 01467901ec dell-xps-15-9570: init 2024-02-28 08:59:50 +00:00
Ganga Ram f12e5fd7ec nxp imx8mp-evk/imx8mq-evk documentation
Signed-off-by: Ganga Ram <Ganga.Ram@tii.ae>
2024-02-28 08:54:14 +00:00
Ganga Ram 53e2a96a9e nxp imx8m quad evaluation platform support
Signed-off-by: Ganga Ram <Ganga.Ram@tii.ae>
2024-02-28 08:54:14 +00:00
Ganga Ram 5c2a5c00a0 nxp imx8mp-evk platform support
Signed-off-by: Ganga Ram <Ganga.Ram@tii.ae>
2024-02-28 08:54:14 +00:00
Jörg Thalheim a597c4ad63 Merge pull request #875 from gangaram-tii/pr/icicle-kit-doc
microchip icicle-kit README update
2024-02-28 09:46:51 +01:00
Ganga Ram 55b794ba77 microchip icicle-kit README update
Signed-off-by: Ganga Ram <Ganga.Ram@tii.ae>
2024-02-27 16:17:03 +04:00
Ashwin Belbase 3f7d0bca00 Add links to FA507RM 2024-02-22 09:39:13 +00:00
Ashwin Belbase 27cca741bf Add files for Asus TUF A15 (FA507RM) 2024-02-22 09:39:13 +00:00
V7 3610be0dca Import Intel GPU module 2024-02-22 09:33:01 +00:00
Luflosi 106d3fec43 framework AMD 7040: work around white screen / flickering issue on newer kernels
Fixes #817.

Updating the kernel if it is too old is already done by `common/cpu/amd/raphael/igpu.nix`, so I removed the redundant code.
2024-02-16 13:49:10 +00:00
Luflosi a377fb23dc cpu/amd/igpu: change condition to check actually used kernel version
Change condition to check actually used kernel version instead of which kernel version is the default.
Without this change, if a user changes the kernel version to a newer version, the kernel parameter will not actually be added.
2024-02-16 13:49:10 +00:00
Ganga Ram f1b2f71c86 Update repository path for nxp/imx
Signed-off-by: Ganga Ram <Ganga.Ram@tii.ae>
2024-02-13 16:36:44 +00:00
Cryolitia 2b68ccd747 gpd-win-max-2-2023: enable iio subsystem 2024-02-13 10:56:22 +00:00
Cryolitia c1db24a14b gpd-win-max-2-2023: init BMI260 driver 2024-02-13 10:56:22 +00:00
Cryolitia d1117dcf09 gpd-win-man-2-2023: init README 2024-02-13 10:56:22 +00:00
Cryolitia 61d602f428 gpd-win-max-2-2023: remove udev rule disabling PCI wakeup
fixed in linux kernel mainline and backported
https://github.com/torvalds/linux/commit/805c74eac8cb306dc69b87b6b066ab4da77ceaf1
2024-02-13 10:56:22 +00:00
queer-bird 7220f26a7c Missed a curly bracket 2024-02-13 10:50:48 +00:00
queer-bird 8be74baad0 Fix audio interference in headphone jack on Thinkpad x1 Nano Gen 1 2024-02-13 10:50:48 +00:00
mexisme 6e5cc385fc Extract AMD-GPU from Nvidia, to make it easier to choose either 2024-02-06 09:25:57 +00:00
mexisme 5a8ed531f9 Initial config. for Lenovo Yoga Slim 7 Pro-X (14ARH7)
- Add entry to README.md and flake.nix
2024-02-06 09:25:57 +00:00
mexisme 06e919ac07 Update README.md and flake.nix 2024-02-06 09:20:31 +00:00
mexisme b5c4fb6b89 Add a config for Asus Zephyrus GA402X* (2023) series
- Disable power-saving for the keyboard on the Asus Zephyrus GA402X series (2023)
- Add more-aggressive roaming rules for Asus Mediatek cards when using IWD
  - Add note about potentially needing more-aggressive roaming rules for Asus Mediatek cards when using WPA-Supplicant
  - Make enabling the higher scanning optional
- Split-up the AMD-GPU and Nvidia configs
- Add switch for AMD-GPU recovery mode
- Add switch for AMD-GPU sg_display (Scatter/Gather) mode
- Add switch for AMD-GPU PSR support
2024-02-06 09:20:31 +00:00
Samuel Cobb fc8d1ebb82 Rename Omen model 2024-02-06 09:11:04 +00:00
Jörg Thalheim 83e571bb29 Merge pull request #851 from mexisme/microsoft/surface/kernel-6.6
Rewrite the microsoft/surface `linuxPackage` function to make it simpler to use
2024-02-02 07:49:42 +07:00
mergify[bot] 76cea60f68 Merge branch 'master' into microsoft/surface/kernel-6.6 2024-02-02 00:47:25 +00:00
4JX cc65e27670 Better default for amdgpuBusId 2024-02-01 10:14:09 +00:00
4JX ed01236ece 16ach6h: Comment out failing edid line
Fixes #795
2024-02-01 10:14:09 +00:00
4JX 07e43b0530 16ach6h: Fix X11 setup
Fixes #628
2024-02-01 10:14:09 +00:00
4JX 58b17dc234 16ach6h: Do not duplicate nvidia config 2024-02-01 10:14:09 +00:00
Guillaume Girol 3b54f86b53 dell inspiron 5515: add early kms
since the update to 23.11, the screen would remain black frequently on
boot. Pressing alt+sysrq+k would make the display manager start.
Empirically, setting early kms up has solved the issue.
2024-02-01 10:08:38 +00:00
ChaosAttractor 83ce5906a5 ga401: disable hardware.nvidia.powerManagement.enable 2024-02-01 10:01:33 +00:00
ChaosAttractor 80223acd7f ga401: enable nvidia.dynamicBoost 2024-02-01 10:01:33 +00:00
Nick Cao 42d7e50677 starfive visionfive2: update kernel to 6.6.0 2024-02-01 06:00:43 +00:00
mexisme 88712a124b Pick a better name than "versionsOfOption" 2024-01-31 21:36:14 +13:00
mexisme 85a2b5542e Restore the "majorVersion" functionality 2024-01-31 21:33:40 +13:00
mexisme c5214dc06a Add some functions to allow for a major.minor kernel version to be able to auto-allow the major.minor.patch to be auto-selected 2024-01-31 21:33:39 +13:00
mexisme 606b6a270e Drop the kernel version override for Surface Go hardware 2024-01-31 12:04:04 +13:00
mexisme 7def533968 Drop the deprecated "linuxPackage1" function, rename "linuxPackage2" to "linuxPackage" 2024-01-31 12:00:03 +13:00
mexisme f2fbed9ce6 Merge branch 'master' into microsoft/surface/kernel-6.6 2024-01-31 11:53:54 +13:00
mexisme 32ed8e5b86 Merge branch 'microsoft/surface/kernel-6.6' of github.com:mexisme/nixos-hardware into microsoft/surface/kernel-6.6 2024-01-26 11:37:48 +13:00
mexisme b4f54f34ed Merge branch 'master' into microsoft/surface/kernel-6.6 2024-01-26 11:37:25 +13:00
Jörg Thalheim f84eaffc35 Merge pull request #839 from damianoognissanti/patch-3
Make so that kernel configs are actually read when compiling for microsoft surface devices.
2024-01-25 12:30:38 +01:00
Jörg Thalheim e756ff62c2 Merge pull request #843 from stigtsp/surface-kernel-bump-8
surface: linux 6.6.10 -> 6.6.13
2024-01-24 09:32:37 +01:00
Stig Palmquist abff72bb97 surface: linux 6.6.10 -> 6.6.13 2024-01-24 09:25:36 +01:00
Nick Cao ff16da3a6b starfive visionfive2: update u-boot to 2024.01 2024-01-24 08:01:14 +00:00
damianoognissanti e57f8c264a Update default.nix
Needed to make kernel build if options from patch are missing.
2024-01-16 18:41:29 +01:00
damianoognissanti 6b5d311cb6 Fix patches.nix
As discussed here: https://github.com/NixOS/nixos-hardware/issues/523

1) `structuredExtraConfig` is called `extraStructuredConfig` when using `kernelPatches`

2) STREAMING_MEDIA should be STAGING_MEDIA
2024-01-16 18:28:45 +01:00
mexisme 6cf457a2ec Merge branch 'master' into microsoft/surface/kernel-6.6 2024-01-15 22:54:37 +13:00
Domen Kožar bee2202bec Add support for Yoga Slim 7 Gen8 2024-01-15 09:51:25 +00:00
mexisme 921c09c127 Merge branch 'master' into microsoft/surface/kernel-6.6 2024-01-15 22:50:33 +13:00
dependabot[bot] a63273ffc7 build(deps): bump cachix/install-nix-action from 24 to 25
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 24 to 25.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v24...v25)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-15 03:02:08 +00:00
Lena Fuhrimann ef811636cc Add fwupd to Dell XPS 13 7390 config 2024-01-13 23:04:19 +00:00
Jörg Thalheim b34a6075e9 xps-15-9560: disable broken bumblebee for now
Looks like it fails to evaluate in nixpkgs just now
2024-01-09 07:46:34 +00:00
Jörg Thalheim af21850d3d Merge pull request #833 from tlvince/patch-3
framework amd: only apply suspend workaround on <6.7
2024-01-09 08:23:39 +01:00
Tom Vincent fe76fc35f7 framework amd: only apply suspend workaround on <6.7 2024-01-08 18:25:06 +00:00
Stig Palmquist c478b3d569 surface: remove linux 6.1 2024-01-07 13:04:10 +00:00
Stig Palmquist 34bcc25fcd surface: set default kernel to major version 6.6 2024-01-07 13:04:10 +00:00
Stig Palmquist 5a721ef5f1 surface: linux 6.6.8 -> 6.6.10 2024-01-07 13:04:10 +00:00
Mika Tammi 1723853180 microchip icicle-kit: Fixes to kernel
* Improve by changing from legacy extraConfig to the
  structuredExtraConfig style kerenl configuration.
* Remove few unneeded kernel modules from default configuration.
* Make kernelPatches, structuredExtraConfig and extraMeta overrideable.
* Change callPackage-style function to actually take the individual
  attributes from pkgs.
* Get rid of recursive syntax.

Signed-off-by: Mika Tammi <mika.tammi@unikie.com>
2024-01-05 12:36:28 +00:00
Tom Vincent 03e0033603 framework amd: add pkgs import 2024-01-05 08:59:57 +00:00
Tom Vincent 3a6288ef83 framework amd: apply headset mic fix on older kernels 2024-01-05 08:59:57 +00:00
Astrid Yu 50944cf036 Add majorVersion option to 6.6.x 2024-01-05 08:54:55 +00:00
RTUnreal 7fd5585e07 framework AMD 7040: add instructions on how to update fingerprint fw
These are copied from the 13th-gen intel Framework README.
They the same way.
2024-01-05 08:49:05 +00:00
mexisme 6e43a42577 Merge branch 'master' into microsoft/surface/kernel-6.6 2024-01-04 09:33:48 +13:00
Nick Cao 8e34f33464 starfive visionfive2: write u-boot.itb to mtd2 2024-01-03 07:27:55 +00:00
Nick Cao dd78777e12 starfive visionfive2: rework firmware build/update scripts 2024-01-03 07:27:55 +00:00
Nick Cao 637fba0942 starfive visionfive2: use upstream u-boot v2024.01-rc5 2024-01-03 07:27:55 +00:00
Nick Cao db4589c6aa starfive visionfive2: adjust opensbi build params to match u-boot doc 2024-01-03 07:27:55 +00:00
mevatronandJörg Thalheim 5bf829d72c Update lenovo/legion/16aph8/default.nix
Thanks for the tip!

Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2024-01-02 20:44:50 +00:00
Will Lucas a5028e96cc Small cleanup 2024-01-02 20:44:50 +00:00
Will Lucas 0f29eb0b0f Force to only "nvidia" for xserver.videoDrivers to avoid blank screen issues 2024-01-02 20:44:50 +00:00
Will Lucas d10b795823 Disable modesetting 2024-01-02 20:44:50 +00:00
Will Lucas 158afdeaf8 Corrected nix-info from an earlier build 2024-01-02 20:44:50 +00:00
Will Lucas c2f991b91e Added support for Lenovo Legion Slim 5 (16APH8)
Added PPD after researching the Framework laptops with AMD 7000 series
2024-01-02 20:44:50 +00:00
Keanu Kerr f752581d67 Added file for HP EliteBook 845 G8 and updated flake and README 2024-01-01 15:50:33 +00:00
Lena Fuhrimann 316bc98323 Add TUXEDO InfinityBook Pro 14 - Gen7 config 2023-12-31 22:27:27 +00:00
Nick Cao 062e4810d8 starfive visionfive2: update u-boot to SDK version v5.10.3 2023-12-31 22:22:21 +00:00
Sebastian Klähn 22ae59fec2 Update dell/xps/13-9310/default.nix 2023-12-29 19:45:20 +00:00
Sebastian Klähn 72fea2077c Update config for xps-13-9010
Add configuration for finger print
2023-12-29 19:45:20 +00:00
Jörg Thalheim 9c3a412578 framework/13-inch/13th: document on how to get the fingerprint sensor to work 2023-12-29 13:19:35 +00:00
Dominic Egginton 1bace8cedd feat: add dell latitude 7390 module 2023-12-29 11:43:26 +00:00
Sophie Tauchert 8ae5b3ff81 purism librem5r4: linuxPackages_librem5: 6.5.6-librem5 -> 6.6.6-librem5 2023-12-29 11:38:20 +00:00
Jörg Thalheim a15b6e525f apple-t2: avoid import-from-derivation 2023-12-25 22:57:21 +00:00
Jörg Thalheim 65753f5d11 speed up ci using nix-eval-jobs 2023-12-25 22:57:21 +00:00
Jörg Thalheim 05fc10e093 add pyproject.toml for ruff lints 2023-12-25 20:49:59 +00:00
Jörg Thalheim e91914c6cc apply ruff lints 2023-12-25 20:49:59 +00:00
Jörg Thalheim 453896efd8 tests/run.py: reformat with ruff 2023-12-25 20:49:59 +00:00
MayNiklas 3e3571c832 add lenovo/thinkpad/x13/yoga/3th-gen 2023-12-25 20:39:21 +00:00
Jörg Thalheim b7747f0f60 remove unused variables with deadnix 2023-12-25 20:25:23 +00:00
Stig Palmquist 249a94e715 surface: linux 6.6.6 -> 6.6.8
- linux-surface: arch-6.6.4-1 -> arch-6.6.6-1
2023-12-25 20:10:28 +00:00
Alojzy LeszczandAlojzy Leszcz 51c532cc50 Lenovo Legion 16achg6: Fix gpu configuration to work with both x11/wayland (#802)
Co-authored-by: Alojzy Leszcz <aleszcz@pm.me>
2023-12-25 20:59:25 +01:00
Cryolitia e4ded1ec8e gpd-win-max-2-2023: init 2023-12-25 19:56:15 +00:00
Alojzy Leszcz 7763c6fd1f Lenovo Legion 16achg6 support (#796) 2023-12-13 08:40:08 +01:00
Stig Palmquist fef05bf9c8 surface: linux 6.5.11 -> 6.6.6
- linux-surface: arch-6.6.1-1 -> arch-6.6.4-1
- update config for 6.6
2023-12-11 23:13:10 +00:00
waltz 030edbb68e lenovo: add ideapad s145-15api to readme.md 2023-12-10 21:59:40 +00:00
waltz b32113560a lenovo: reference ideapad s145-15api on flake.nix 2023-12-10 21:59:40 +00:00
waltz c78145fc51 lenovo: add config for ideapad s145-15api 2023-12-10 21:59:40 +00:00
dependabot[bot] fa194fc484 build(deps): bump cachix/install-nix-action from 23 to 24
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 23 to 24.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v23...v24)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-04 02:21:25 +00:00
Astrid Yu a89745edd5 surface: Allow specifying major versions for kernel 2023-12-03 10:14:31 +00:00
Archit Gupta eb4e574360 framework intel: Disable cros-usbpd-charger 2023-12-03 10:04:19 +00:00
Ivor Wanders 8772491ed7 Minimize whitespace changes. 2023-11-29 09:42:58 +00:00
Ivor Wanders 6c114d0ccf Change linux-surface rev to tag. 2023-11-29 09:42:58 +00:00
Ivor Wanders b236a7817a Write iptsd configuration file. 2023-11-29 09:42:58 +00:00
Reed Riley 4461209624 FW13 7040: workaround for SuspendThenHibernate bug 2023-11-29 09:33:05 +00:00
Ivor Wanders b006ec52fc Bump linux-surface to a6eafcad32dc789ae92f42636b11e9aae6e7c879. 2023-11-26 17:47:40 +00:00
mexisme 62b6776b46 Fix rev and sha256 for the current linux-surface patches 2023-11-26 20:58:28 +13:00
mexisme 7dcae71f61 Fix typos 2023-11-26 13:01:52 +13:00
mexisme 0e169f3d58 Use kernel 6.6.2 by default 2023-11-26 12:44:19 +13:00
mexisme 0516b82287 Add kernel 6.6 2023-11-26 12:43:48 +13:00
mexisme 8605f354e2 Use a new linuxPackage function 2023-11-26 12:42:11 +13:00
Kourosh Tafreshi c3abafb01c chore: Add switcheroo service for Dual GPU 2023-11-21 09:32:36 +00:00
Kourosh Tafreshi fc126177f6 chore: Activate nvidia powermanagement 2023-11-21 09:32:36 +00:00
Cabia Rangris 82cf9ae3f6 framework/13-inch/12th-gen-intel: ec crash fix 2023-11-21 09:15:47 +00:00
Jörg Thalheim 2b00bc76dc Merge pull request #780 from Stunkymonkey/raspberry-pi-4-leds
raspberry-pi/4: add LED-disable overlay
2023-11-19 12:12:33 +01:00
Felix Buehler 89e6821370 add and use mkDisableOption 2023-11-18 15:44:54 +01:00
Nick Cao 1721da31f9 starfive visionfive2: update kernel to 6.6.0 2023-11-18 13:55:35 +00:00
Nick Cao e27bf85b46 starfive visionfive2: update u-boot to SDK version v3.8.2 2023-11-18 13:45:52 +00:00
Jörg Thalheim 5b37cf8665 Merge pull request #778 from tlvince/patch-1
Add suspend workaround for Framework AMD
2023-11-18 14:35:28 +01:00
Tom Vincent eb903ed873 Update README.md 2023-11-16 10:54:41 +00:00
Tom Vincent efdbca2413 Merge pull request #1 from endgame/amd-7040-configurable-sleep-fix
framework AMD 7040: Add config option for wake-on-AC fix
2023-11-16 10:51:42 +00:00
Jack Kelly f2d7c0b23c framework AMD 7040: Add config option for wake-on-AC fix 2023-11-16 10:19:02 +10:00
Naufal Fikri 5689f3ebf8 Fixed broken links in deprecation assertions for framework and surface modules. 2023-11-14 21:35:07 +00:00
Felix Buehler a742fe3a04 raspberry-pi/4: add led disable overlay 2023-11-14 20:48:59 +01:00
Felix Buehler 9d09a7452c raspberry-pi/4: format 2023-11-14 20:47:59 +01:00
Tom Vincent a437c98a90 Merge branch 'master' into patch-1 2023-11-14 10:11:06 +00:00
Stig Palmquist df9bb8a436 surface: linux 6.5.7 -> 6.5.11 2023-11-14 09:30:45 +00:00
Stig Palmquist 8bb2d5ca13 surface: linux 6.1.57 -> 6.1.62 2023-11-14 09:30:45 +00:00
Stig Palmquist 27ac7d57bc surface: linux 6.1.55 -> 6.1.57 2023-11-14 09:30:45 +00:00
Stig Palmquist 9eb41407ab surface: linux 6.5.5 -> 6.5.7 2023-11-14 09:30:45 +00:00
Jörg Thalheim 9f8e88ff95 Merge pull request #776 from kjhoerr/fw-rework
Framework profiles rework
2023-11-14 10:18:33 +01:00
Tom Vincent c0fa269fe9 Update README.md 2023-11-13 22:40:45 +00:00
Tom Vincent a6426241a5 feat(framework): add suspend udev hint 2023-11-13 22:32:05 +00:00
Kevin J Hoerr 502d05fcf6 framework: Add notice to README.md 2023-11-11 17:19:50 -05:00
Kevin J Hoerr ec3609cc59 Explicitly speak of 11th gen Intel Framework new profile 2023-11-11 16:32:26 -05:00
Kevin J Hoerr a14a7746f9 Fix module paths for common framework modules 2023-11-11 16:25:20 -05:00
Kevin J Hoerr 87d3381c78 Add assertion for default framework import 2023-11-11 10:42:55 -05:00
Kevin J Hoerr de0c9310d3 Move common modules into folder 2023-11-11 10:42:55 -05:00
Kevin J Hoerr 5f6b875273 Fix common module imports for fw13 common module 2023-11-11 10:42:55 -05:00
Kevin J Hoerr da7e364c3d Reorganize current framework modules into 13-inch directory 2023-11-11 10:42:55 -05:00
Kevin J Hoerr b689465d0c Add note to mark change as temporary 2023-11-11 11:10:45 +00:00
Kevin J Hoerr 55b4caf931 Add 13-inch directory to framework and move new module 2023-11-11 11:10:45 +00:00
Kevin J Hoerr 376cecdbb2 Do not suggest sudo for running fwupdmgr 2023-11-11 11:10:45 +00:00
Kevin J Hoerr 24596674bb Remove unnecessary configuration for FW13 7040; use linux_latest above 6.1 2023-11-11 11:10:45 +00:00
Kevin J Hoerr edc1a8ecbc FW13 7040: Add configuration as default.nix 2023-11-11 11:10:45 +00:00
Leah Amelia Chen 9f40c1088f feat(asus/zephyrus): add GU603H (2021 Zephyrus M16) 2023-11-11 11:00:25 +00:00
Jörg Thalheim 627bc9b882 Merge pull request #774 from fgaz/star64/fbdev-force-no
star64: linux: force disable DRM_FBDEV_EMULATION
2023-11-05 05:44:06 +01:00
Francesco Gazzetta 0c53ac44db star64: linux: force disable DRM_FBDEV_EMULATION
It was enabled in this nixpkgs commit:
https://github.com/NixOS/nixpkgs/commit/e00c606455cef66797d48b3a145e913b509a4077
2023-11-04 19:34:50 +01:00
Kourosh Tafreshi 87f8403371 chore: Add OPENGL settings 2023-11-03 20:49:21 +00:00
Kourosh Tafreshi ce6068070b chore: Tunning WiFi 2023-11-03 20:49:21 +00:00
Jörg Thalheim 25aa9d38f8 Merge pull request #769 from bhetman/hp-elitebook-g7
Add HP Elitebook 845 g7 configuration
2023-11-03 21:38:59 +01:00
bhetman 097764c893 Add HP Elitebook 845 g7 configuration 2023-11-02 02:01:55 -04:00
Alexander Sieg 11d50c5d52 raspberrypi."4": add DigiAMP+ overlay 2023-11-01 15:43:04 +00:00
srestegosaurio 71e0de7199 feat(asus/rog-strix/g513im): added profile 2023-11-01 15:22:25 +00:00
Jörg Thalheim 3162c7c134 Merge pull request #770 from samtinel/patch-1
pine64-rockpro64: add fancontrol
2023-11-01 15:57:50 +01:00
Samtinel f40197be9a pine64-rockpro64: add fancontrol
rk3399's operating temps are -20 to 80°C. It has sensors for CPU and GPU.
The MINSTART/-STOP values are a result of empirical testing.
2023-10-31 15:00:51 +01:00
NAHO 80d98a7d55 feat(tuxedo/pulse/15/gen2): use default 'hardware.amdgpu.loadInInitrd' 2023-10-23 09:31:10 +00:00
NAHO cdf849625b refactor(tuxedo/pulse/15/gen2): simplify device expression
This reverts commit 7b569a25fe.
2023-10-23 09:31:10 +00:00
NAHO ccf6368108 refactor(tuxedo/pulse/15/gen2): revert device expression simplification
This reverts commit 6eeede605f.
2023-10-23 09:31:10 +00:00
NAHOandJörg Thalheim 0de78480a2 refactor(tuxedo/pulse/15/gen2): simplify device expression
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2023-10-23 09:31:10 +00:00
NAHO ae8f623d5b refactor(tuxedo/pulse/15/gen2): use 'builtins' instead of 'lib' 2023-10-23 09:31:10 +00:00
NAHO dd18dc7714 fix(tuxedo/pulse/15/gen2): prevent 'Secure display: Generic Failure' warning 2023-10-23 09:31:10 +00:00
NAHO 256f598a1b fix(tuxedo/pulse/15/gen2): properly suspend the system 2023-10-23 09:31:10 +00:00
NAHO b93eed7525 feat(tuxedo/pulse/15/gen2): import common functionality 2023-10-23 09:31:10 +00:00
NAHO f9acbf645e feat(tuxedo/pulse/15/gen2): add flake output 2023-10-23 09:31:10 +00:00
NAHO 6856dab060 docs(tuxedo/pulse/15/gen2): include in README 2023-10-23 09:31:10 +00:00
NAHO cf64d8064c docs(tuxedo/pulse/15/gen2): reference official webpage 2023-10-23 09:31:10 +00:00
NAHO e07351b303 docs(tuxedo/pulse/15/gen2): add code owner 2023-10-23 09:31:10 +00:00
Jakob Leifhelm 72d53d5170 starfive visionfive2: combine 8gb dtb overlays 2023-10-19 20:46:52 +00:00
Sophie Tauchert 32264b21bb purism/librem5r4: linuxPackages_librem5: 6.5.4-librem5 -> 6.5.6-librem5 2023-10-19 20:29:22 +00:00
Sophie Tauchert 82804ab710 purism/librem5r4: linuxPackages_librem5: 6.4.14-librem5 -> 6.5.4-librem5 2023-10-19 20:29:22 +00:00
Jonatan Steuernagel e40b26d814 ROG Ally: Add basic config as default.nix 2023-10-19 20:14:49 +00:00
Samuel Cobb 6e1fd3d5c2 Add amd pstate to all omen laptops (#763) 2023-10-19 20:54:11 +01:00
Bernardo Meurer fb6af288f6 fix(common/gpu/amd): use new rocmPackages 2023-10-12 08:54:10 +00:00
Ganga Ram 3d4a18fac8 Microchip Icicle Kit BSP update
- Kernel upadated to 6.1.43
- Uboot updated to 2023.07.02

Signed-off-by: Ganga Ram <Ganga.Ram@tii.ae>
2023-10-12 08:40:19 +00:00
Tom Fitzhenry d6b554a85c pine64-pinebook-pro: remove superfluous ap6256-firmware package
I have been running for >1 year with the upstream linux-firmware
package (i.e. just hardware.enableRedistributableFirmware = true)

https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/WHENCE#n2767
2023-10-11 18:36:41 +00:00
Tom Fitzhenry 922926aa1f pine64-pinebook-pro: add initrd modules for boot-from-NVMe 2023-10-11 18:36:41 +00:00
Tom Fitzhenry a6eecb4d85 pine64-pinebook-pro: remove udev quirk for "keyboard mouse"
It's not clear what this is for, and other distros (
https://gitlab.com/postmarketOS/pmaports/-/commit/e9029c91536edbe3fd4109b90cfa92eddfd890b0
) are now relying solely on upstream udev.
2023-10-11 18:36:41 +00:00
Tom Fitzhenry 0e1e24d2fd pine64-pinebook-pro: remove "internal keyboard" libinput quirk
This quirk has been upstreamed, and thus we longer need to keep it in
nixos-hardware: https://gitlab.freedesktop.org/libinput/libinput/-/commit/c053d7b078b7ebc067c24fd43c728ec0dcd69bfd
2023-10-11 18:36:41 +00:00
Mic92 c1ebe3b471 init: omen-16-n0005ne (#749)
added omen 16-n0005ne profile

* removed /common/pc/ssd

* added /common/pc/ssd

* removed /common/pc/laptop from omen 16 config

* added /common/pc/laptop

* Merge remote-tracking branch 'upstream/master'

* Merge remote-tracking branch 'upstream/master'

* chore: Add DELL XPS 9510

* chore: Add Dell XPS 15 9510

* starfive visionfive2: update u-boot to SDK version v3.7.5

* added omen 16-n0005ne profile

* removed /common/pc/ssd

* added /common/pc/ssd

* removed /common/pc/laptop from omen 16 config

* added /common/pc/laptop

* Merge branch 'master' of github.com:GamingTesh/nixos-hardware

* fixed error in flake.nix caused by git
2023-10-11 18:21:54 +00:00
FlorianandMajiir Paktu c2bbfcfc3d fix compileDTS overlay for raspberry-pi (#754)
* fix compileDTS overlay

due to https://github.com/NixOS/nixpkgs/pull/251898
the compileDTS function has been moved to `device-tree`

nixos-hardware has an own overlay for the raspberry-pi
which needs the `compileDTS` function now, too.

This commit adds it.

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>

* apply review comments

Co-authored-by: Majiir Paktu <majiir@nabaal.net>
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>

---------

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
Co-authored-by: Majiir Paktu <majiir@nabaal.net>
2023-10-10 23:58:03 +02:00
Nick Cao 6ea13c2df4 starfive visionfive2: update u-boot to SDK version v3.7.5 2023-10-10 15:31:36 +00:00
Kourosh Tafreshi bb2db418b6 chore: Add Dell XPS 15 9510 2023-10-06 17:41:06 +00:00
Kourosh Tafreshi 455496f1b4 chore: Add DELL XPS 9510 2023-10-06 17:41:06 +00:00
Jacob Hrbek 93fcc5fb82 OLIMEX Teres-I: Init
Initial declaration of the device
2023-10-06 17:27:28 +00:00
Tom Fitzhenry f4ef5df944 pine64-rockpro64: init 2023-10-06 12:02:27 +00:00
Samuel Cobb b31be8f114 edit readme 2023-10-06 11:43:34 +00:00
Samuel Cobb d79fe3a25c add to flake 2023-10-06 11:43:34 +00:00
Samuel Cobb 2eb2fc2889 init: omen/15-en1007sa 2023-10-06 11:43:34 +00:00
Kiara Grouwstra a149e3d37e Lenovo IdeaPad Slim 5: init
note this is to be distinguished from e.g. the slim 5i, which uses intel
2023-10-06 11:30:06 +00:00
Stig Palmquist de516d0dee surface/surface-go: set kernel to 6.1.55 2023-10-06 11:16:50 +00:00
Stig Palmquist afc5a2949b surface: linux 6.4.16 -> 6.5.5 2023-10-06 11:16:50 +00:00
Stig Palmquist 3b14571fc9 surface: linux-surface 32c55fe0 -> b82e8acd 2023-10-06 11:16:50 +00:00
Stig Palmquist ca0cd502fb surface: linux 6.1.53 -> 6.1.55 2023-10-06 11:16:50 +00:00
Francesco Gazzetta 6d05cccc80 star64: set governor to schedutil
By default it's "performance"
2023-10-05 06:44:00 +00:00
Francesco Gazzetta 89c6109adc star64: linux: 5.15.128 -> 5.15.131 2023-10-05 05:29:34 +00:00
Tom Fitzhenry 0ab3ee718e CODEOWNERS: add tomfitzhenry to Pine64 Pinebook Pro
Prior contributions:

* https://github.com/NixOS/nixos-hardware/pull/444
* https://github.com/NixOS/nixos-hardware/pull/445
* https://github.com/NixOS/nixos-hardware/pull/446

Pending contributions:

* https://github.com/NixOS/nixos-hardware/pull/743
2023-10-01 13:05:39 +01:00
Michael Stanley adcfd6aa86 Thinkpad X1 11th Gen: init 2023-09-28 07:59:35 +00:00
Edmund Miller 89ec952fd2 chore: Add @emiller88 to CODEOWNERS for framework 2023-09-28 07:43:06 +00:00
Maciej Krüger 61283b30d1 framework/*: add fw-ectool for led control, etc
This adds a patched ectool, to interact with the Embedded Controller
Can be used to interact with leds from userspace, etc.
Not part of a nixos release yet, so package only gets added if it exists.
2023-09-24 07:36:59 +00:00
the-furry-hubofeverything 08add92f17 Enabling hp-wmi driver after PR merge
nixos/nixpkgs#255846
2023-09-24 07:22:39 +00:00
the-furry-hubofeverything 061785322d Add Omen 15-en0010ca 2023-09-24 07:22:39 +00:00
Alexandre Acebedo cb4dc98f77 asus-zephyrus-ga402: remove unused kernel parameter 2023-09-19 07:47:07 +00:00
Jörg Thalheim f6bb34a52a only trigger ci on master branch and pull requests 2023-09-19 05:54:25 +00:00
Jörg Thalheim cf88c13ca6 tests: set linux_latest as the default kernel 2023-09-19 05:40:50 +00:00
Giorgio Gallo 161b027169 Fix typo in README.md 2023-09-18 10:46:15 +00:00
Guanran928 d53069def4 fix: enable enableOffloadCmd in prime.nix only when offload is enabled 2023-09-18 10:02:00 +00:00
Guanran928 504893e091 chore: replace writeShellScriptBin in prime.nix with enableOffloadCmd
introduced in this commit:
https://github.com/NixOS/nixpkgs/commit/2a7130d13a032093f5394ef0961842d1e1928789
2023-09-18 10:02:00 +00:00
Stig Palmquist 0cc0f97212 surface: cleanup, remove linux 5.19.17 and 6.0.17 2023-09-18 09:44:12 +00:00
Stig Palmquist 455453f48d surface: linux 6.1.18 -> 6.1.53 2023-09-18 09:44:12 +00:00
Stig Palmquist 55fc5e69cb surface: linux 6.4.14 -> 6.4.16 2023-09-18 09:44:12 +00:00
Jörg Thalheim 77d8ac78a6 build-profile: also accept nvidia license
There seems to be recursive dependencies between adding video drivers and checking if the unfree flag is set.
2023-09-18 09:25:39 +00:00
Jörg Thalheim b0f82bcf52 replace bors with mergify
bors no longer works for merge queues.
2023-09-18 10:57:17 +02:00
Francesco Gazzetta 570256327e star64: fix boot from eMMC 2023-09-14 16:51:56 +00:00
Francesco Gazzetta 850b04d59c star64: use stable opensbi release
Same as 7f1836531b
2023-09-14 10:57:53 +02:00
Francesco Gazzetta 16b8c06fd3 star64: add mmc firmware updater
And make the sd one actually write to the sd
2023-09-14 10:57:44 +02:00
Nick Cao 3ccd87fcda starfive visionfive2: update u-boot to SDK version v3.6.1 2023-09-13 09:46:51 +02:00
Olof Sandell e158702cb8 refactor: use nixpkgs naming conventions 2023-09-13 09:46:20 +02:00
Olof Sandell c49c1210d6 docs: add info about the default enabling 2023-09-13 09:46:20 +02:00
Olof Sandell 5e6fa0d4ae feature: enable the iGPU by default 2023-09-13 09:46:20 +02:00
Olof Sandell 5dbebb7cfa feat: copy bootloader to temp location
This is a precaution to make sure we have enough disk space before renaming original bootloader.
2023-09-13 09:46:20 +02:00
Olof Sandell c8cd4f7ef4 feat: integrate into t2 module 2023-09-13 09:46:20 +02:00
Olof Sandell bb215e68e5 feat: add installer for apple-set-os-loader-installer 2023-09-13 09:46:20 +02:00
Nick Cao 128c044298 starfive visionfive2: update kernel to 6.5.0 2023-09-13 09:44:50 +02:00
Andrii Panasiuk 12a6f30214 Import module 2023-09-13 09:44:33 +02:00
Andrii Panasiuk f8d3c75462 Implement dt overlay for enabling built-in xhci controller 2023-09-13 09:44:33 +02:00
dependabot[bot] ca41b8a227 build(deps): bump cachix/install-nix-action from 22 to 23
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 22 to 23.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v22...v23)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-11 13:38:44 +02:00
Oxters Wyzgowski 2d1a0da5e3 asus/zephyrus/ga401: fix keymapping
Mapped fn+LeftArrow to be home key and fn+RightArrow to be end key.
The Asus Zephyrus GA401 does not have any home end functionality originally.
2023-09-11 12:38:26 +01:00
Sophie Tauchert bec613e179 purism librem5r4: update README and install u-boot-install-librem5 as system package 2023-09-11 13:36:56 +02:00
Sophie Tauchert ab68d63b92 purism librem5r4: firmware-imx: 8.15 -> 8.20 2023-09-11 13:36:56 +02:00
Sophie Tauchert e507801ba7 purism librem5r4 linux: 6.4.5-librem5 -> 6.4.14-librem5 2023-09-11 13:36:56 +02:00
Stig Palmquist 4cd9ced7fa surface: linux 6.4.12 -> 6.4.14 2023-09-11 13:36:49 +02:00
[object Object] 88348cb5c1 framework laptop 11th gen: change mem_sleep_default=deep kernel parameter to acpi_osi="!Windows 2020" (fixes a regression in s2idle, making it more power efficient than deep sleep) 2023-09-11 13:36:39 +02:00
dependabot[bot] 9e28985b44 build(deps): bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-11 13:35:44 +02:00
Astrid Yu edf8986157 surface: Remove 0015-intel-thread-director.patch 2023-09-11 13:35:37 +02:00
Sophie Tauchert 793de77d9f purism librem5r4: add configuration option for audio 2023-09-03 07:29:12 +02:00
Sophie Tauchert 3284d0605c purism librem5r4: update uboot 2023-09-03 07:29:12 +02:00
Sophie Tauchert 6a1fb21810 purism librem5r4: update kernel to 6.4.5 2023-09-03 07:29:12 +02:00
Alexander Bantyev 658064ce36 Apply suggestions from @louib 2023-09-03 07:29:12 +02:00
Alexander Bantyev 9070d2340c Add config for Librem 5 2023-09-03 07:29:12 +02:00
Alan Pearce 50dc4ef928 friendlyarm/nanopi-r5s: init config 2023-09-03 07:22:07 +02:00
Francesco Gazzetta 7ed4fdbdb5 Add fgaz to star64 codeowners 2023-09-03 07:21:41 +02:00
Stig Palmquist 416249d1ba surface: add kernel 6.4.12 2023-09-03 07:21:26 +02:00
Yannick Mayeur 1ed1234ad6 feat: add initial support for odroid-h3 hardware
This should work for both odroid-h3 and h3+ as they both have a jasper
lake CPU (N5105 and N6005).
2023-09-03 07:20:32 +02:00
Yannick Mayeur 19cf623e48 feat: add common config for intel elhart-lake and jasper-lake
The option added is based on this ticket: https://gitlab.freedesktop.org/drm/intel/-/issues/8080

Other relevant documentation: https://jellyfin.org/docs/general/administration/hardware-acceleration/intel/#known-issues-and-limitations
2023-09-03 07:20:32 +02:00
networkException 6f081cd52a apple/t2: update to kernel 6.5 2023-09-03 07:10:17 +02:00
bors[bot]andFrancesco Gazzetta fe0ea731b8 Merge #707
707: star64: linux: 5.15.115 -> 5.15.128 r=fgaz a=fgaz



Co-authored-by: Francesco Gazzetta <fgaz@fgaz.me>
2023-09-01 17:14:49 +00:00
Francesco Gazzetta ba8a6e0612 star64: linux: 5.15.115 -> 5.15.128 2023-08-31 12:53:25 +02:00
Lyndon Sanche 817e297fc3 Dell XPS 9560: More formatting in README 2023-08-25 09:31:26 +01:00
Lyndon Sanche 79a189283e Dell XPS 9560: Fix README headers 2023-08-25 09:31:26 +01:00
Lyndon Sanche 2455827f55 Dell XPS 9560: Fix README links 2023-08-25 09:31:26 +01:00
Lyndon Sanche 4cc314ad67 Dell XPS 9560: Add information and tweak config 2023-08-25 09:31:26 +01:00
Nick Cao 7f1836531b starfive visionfive2: use stable opensbi release 2023-08-18 16:38:08 +01:00
Nick Cao d5bd79a48b starfive visionfive2: drop outdated kernel patches 2023-08-18 16:37:22 +01:00
Yureka 430a56dd16 raspberry-pi/4: fix modesetting on 6.1 kernels 2023-08-12 21:22:22 +01:00
networkException 33052d5cad apple/t2: update to kernel 6.4.9 2023-08-12 21:22:09 +01:00
Francesco Gazzetta ca062b3e6c star64: remove unused flake input from README 2023-08-12 21:20:25 +01:00
Alexander Shpilkin f61352cf80 framework: add 13th gen to flake.nix 2023-08-11 06:11:50 +01:00
Alexander Shpilkin 161c91c01a framework: fix references to 13th gen in README 2023-08-11 06:11:50 +01:00
Lyndon Sanche 8ff521acd2 XPS 9560: Remove lib.mkDefault on mergable options 2023-08-09 08:43:19 +01:00
Lyndon Sanche 1b3c128388 common/nvidia disable: Remove lib.mkDefault 2023-08-09 08:42:35 +01:00
Baffle 5426a95071 inspiron 14 5420: more tlp info in README 2023-08-06 08:02:29 +01:00
Baffle a5a696f281 inspiron 14 5420: add to flake.nix 2023-08-06 08:02:29 +01:00
bagelwaffle a75e04b259 inspiron 14 5420: remove TLP 2023-08-06 08:02:29 +01:00
bagelwaffle ae71259624 inspiron 14 5420: initial 2023-08-06 08:02:29 +01:00
Jakob Leifhelm 87e3122b67 starfive visionfive2: Increase mtd0 to fit spl 2023-08-04 21:10:16 +01:00
Nick Cao e8159d4e3d starfive visionfive2: update kernel to 6.5.0-rc1 2023-08-04 21:09:51 +01:00
networkException 258b9faff0 apple/t2: update to kernel 6.4.8 2023-08-04 21:09:00 +01:00
Matthieu Dubuget b4f1105b9c Update default.nix: removing the fwupd line 2023-08-04 21:08:48 +01:00
Matthieu Dubuget 6dcf1381ec Adding Dell XPS 13 9333 2023-08-04 21:08:48 +01:00
Daniel Schaefer 24f9162b26 framework: Clarify 13th Gen Intel Core support
Signed-off-by: Daniel Schaefer <dhs@frame.work>
2023-08-02 07:18:53 +01:00
Christoph Charles 353829048c microsoft-surface: update default kernel to 6.1.18 2023-08-02 07:18:18 +01:00
Dom Rodriguez af694376e2 p14s: Add common/{cpu,gpu}/amd to imports
This is my first upstream contribution (intend to contribute configs for
my NUC, GPD, and ClockworkPi uConsole/DevTerm). Essentially, this change
resolves #492, by adding the `common/{cpu,gpu}/amd` Nix fragments to the
`imports` list for the Thinkpad P14s.
2023-08-02 07:18:07 +01:00
Dom Rodriguez 9910c69856 GPD-P3: Remove S2 sleep kernel param, use S3 instead
It seems S3 works on NixOS without this option now. I have tested this
on NixOS 22.11/23.05, without issues.

Removing this option ensures better battery life whilst the UMPC is in
sleep mode, and reduces the chances of overheating whilst in transit.
2023-08-02 06:42:35 +01:00
dadada 96e5a0a0e8 t14s: reformat 2023-07-30 09:06:37 +01:00
dadada 67b0b87fd8 p14s, t14s: remove linux-firmware version check
nixpkgs is currently using the `unstable-` version

See https://github.com/NixOS/nixpkgs/commit/beb6196e9ed1f59fa9c8884b2b9e2d0eafb67bbc
2023-07-30 09:06:37 +01:00
Matt Layher ba9650b14e deciso/dec: init, tested with DEC2750
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2023-07-24 13:12:20 +01:00
Alexandre Acebedo 20f2efe651 ga402: remove useless kernel flags 2023-07-24 13:11:54 +01:00
CodeChomper 70325e398b Added Asus Zephyrus GA502 2023-07-24 13:11:36 +01:00
Jörg Thalheim d4ea64f206 Revert "framework: switch to power-profiles-daemon"
This reverts commit bc2ab72bec.

This was accidentially pushed to master instead to a PR.
2023-07-14 09:42:36 +02:00
Jörg Thalheim bc2ab72bec framework: switch to power-profiles-daemon 2023-07-14 09:42:08 +02:00
44bc025007 Merge #661
661: Microchip uboot build failure with nixpkgs 23.05 r=Mic92 a=codehub8



Co-authored-by: Ganga Ram <Ganga.Ram@tii.ae>
Co-authored-by: Ganga Ram <131853076+codehub8@users.noreply.github.com>
2023-07-11 07:30:19 +00:00
SnIcKandJörg Thalheim 39eac9bf9a added 16IRX8H Lenovo Legion 7i Pro (2023) (#660)
* added 16IRX8H Lenovo Legion 7i Pro (2023)

Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2023-07-11 08:20:24 +01:00
Ganga RamandSandro bb7ba40a67 Update microchip/common/bsp/uboot.nix
Added branch name, for better trackability.

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2023-07-10 10:12:50 +04:00
bors[bot]andnetworkException f0984a5a30 Merge #663
663: apple/t2: update to kernel 6.4.2 r=Mic92 a=networkException



Co-authored-by: networkException <git@nwex.de>
2023-07-10 05:27:13 +00:00
bors[bot]andRyan Horiguchi 4af66a486f Merge #667
667: lenovo legion 7 slim 15ach6: remove brightness service r=Mic92 a=rhoriguchi



Co-authored-by: Ryan Horiguchi <ryan.horiguchi@gmail.com>
2023-07-10 05:17:32 +00:00
Ryan Horiguchi 7f46848ea6 lenovo legion 7 slim 15ach6: remove brightness service 2023-07-09 23:39:48 +02:00
networkException 4259025da1 apple/t2: update to kernel 6.4.2 2023-07-08 16:39:40 +02:00
47dca15d86 Merge #630 #649 #650 #652 #654 #656 #657
630: starfive visionfive2: update kernel to 6.4.0 r=Mic92 a=NickCao



649: macbook-air-6: remove mba6x_bl kernel module r=Mic92 a=DanielSiepmann



650: apple/t2: init r=Mic92 a=networkException



652: build(deps): bump cachix/install-nix-action from 21 to 22 r=Mic92 a=dependabot[bot]



654: fixing iptsd not able to find DEVICE r=Mic92 a=buttergrillcorn



656: treewide: avoid alias usage for intel-vaapi-driver based on nixos version r=Mic92 a=lilyinstarlight



657: Added more blocked Nvidia kernel modules to fix the dGPU not being disabled r=Mic92 a=spacebanana420



Co-authored-by: Nick Cao <nickcao@nichi.co>
Co-authored-by: Daniel Siepmann <coding@daniel-siepmann.de>
Co-authored-by: kekrby <kekrby@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: buttergrillcorn <126628446+buttergrillcorn@users.noreply.github.com>
Co-authored-by: Lily Foster <lily@lily.flowers>
Co-authored-by: Space Banana <tomasbessa@protonmail.com>
2023-07-08 06:38:34 +00:00
bors[bot]andFrancesco Gazzetta 7dd20636fb Merge #662
662: star64: init r=Mic92 a=fgaz



Co-authored-by: Francesco Gazzetta <fgaz@fgaz.me>
2023-07-08 06:29:08 +00:00
Francesco Gazzetta 30f71ba6e0 star64: init
Mostly based on the visionfive 2 config.
No GPU yet.
2023-07-07 21:54:40 +02:00
Ganga Ram e5ea582133 Microchip uboot build failure with nixpkgs 23.05
Fix for https://github.com/NixOS/nixpkgs/issues/235179
Update Microchip uboot version to linux4microchip+fpga-2023.06

Signed-off-by: Ganga Ram <Ganga.Ram@tii.ae>
2023-07-05 13:18:54 +04:00
Nick Cao ff35653b14 starfive visionfive2: update kernel to 6.4.0 2023-07-01 17:50:17 +08:00
Space Banana 289a5af77e Additional blocked nvidia kernel modules 2023-06-28 00:55:39 +01:00
kekrbyandnetworkException 8e28b9ee43 apple/t2: init
Co-authored-by: networkException <git@nwex.de>
2023-06-28 00:04:56 +02:00
Lily Foster 1d0b3cf27b treewide: avoid alias usage for intel-vaapi-driver based on nixos version 2023-06-23 07:38:13 -04:00
buttergrillcorn ef7a2674a7 Update default.nix 2023-06-20 15:49:07 +01:00
dependabot[bot] ba74676d67 build(deps): bump cachix/install-nix-action from 21 to 22
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 21 to 22.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v21...v22)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-19 02:56:32 +00:00
bors[bot]andGanga Ram 429f232fe1 Merge #612
612: Add Microchip Icicle-kit board support. r=Mic92 a=codehub8



Co-authored-by: Ganga Ram <Ganga.Ram@tii.ae>
2023-06-15 14:16:07 +00:00
Daniel Siepmann 2d54ea30cf macbook-air-6: remove mba6x_bl kernel module
This does not compile against 6.x Kernel.
This is also no longer necessary for 6.x Kernel.
One can use "acpi_video0" device instead of "mba6x_backlight" device.
2023-06-13 16:54:30 +02:00
bors[bot]andBurgess Chang 2a807ad6e8 Merge #647
647: Add Lenovo Thinkpad X1 Nano Gen1 r=Mic92 a=brsvh



Co-authored-by: Burgess Chang <bsc@brsvh.org>
2023-06-11 02:57:46 +00:00
Burgess Chang a2ca907b42 lenovo-thinkpad-x1-nano-gen1: init
Signed-off-by: Burgess Chang <bsc@brsvh.org>
2023-06-11 01:11:59 +08:00
bors[bot]andJakob Leifhelm 70d5f55fae Merge #645
645: starfive visionfive2: Add firmware update script. r=Mic92 a=leifhelm



Co-authored-by: Jakob Leifhelm <jakob.leifhelm@gmail.com>
2023-06-10 11:20:27 +00:00
bors[bot]andTomo 3ea17585aa Merge #636
636: hp.14-df0023: init r=Mic92 a=tomodachi94



Co-authored-by: Tomo <68489118+Tomodachi94@users.noreply.github.com>
2023-06-10 11:09:25 +00:00
Jakob Leifhelm cc94292391 starfive visionfive2: Add firmware update script. 2023-06-08 20:24:13 +02:00
Tomo 54cc1a6c79 hp.14-df0023: init 2023-06-08 09:44:24 -07:00
e4b34b90f2 Merge #632 #638 #639
632: Framework 12th gen: add keys workaround r=Mic92 a=ggPeti



638: build(deps): bump cachix/install-nix-action from 20 to 21 r=Mic92 a=dependabot[bot]



639: lenovo-thinkpad-x1-6th-gen: swap throttled with thermald r=Mic92 a=dawidd6



Co-authored-by: Peter Ferenczy <ggpeti@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dawid Dziurla <dawidd0811@gmail.com>
2023-06-08 09:42:30 +00:00
bors[bot]andNick Cao e6bf3d33e4 Merge #644
644: starfive visionfive2: u-boot: update to SDK version v3.0.4 r=Mic92 a=NickCao



Co-authored-by: Nick Cao <nickcao@nichi.co>
2023-06-08 09:31:00 +00:00
Nick Cao cacf82c2b1 starfive visionfive2: u-boot: update to SDK version v3.0.4 2023-06-08 10:53:58 +08:00
Dawid Dziurla 468a7a1081 lenovo-thinkpad-x1-6th-gen: swap throttled with thermald 2023-05-31 08:29:51 +02:00
dependabot[bot] 61509d052c build(deps): bump cachix/install-nix-action from 20 to 21
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 20 to 21.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v20...v21)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-29 02:56:39 +00:00
bors[bot]andghostbuster91 4cc688ee71 Merge #633
633: [FocusGen1M2] Disable TPM interrupt due to upstream bug r=Mic92 a=ghostbuster91



Co-authored-by: ghostbuster91 <ghostbuster91@users.noreply.github.com>
2023-05-24 03:40:33 +00:00
bors[bot]andJakob Leifhelm f6792e7c7a Merge #634
634: starfive visionfive2: replace 8GB memory patch with overlay r=Mic92 a=leifhelm



Co-authored-by: Jakob Leifhelm <jakob.leifhelm@gmail.com>
2023-05-24 03:29:39 +00:00
Jakob Leifhelm e2864d99fd starfive visionfive2: replace 8GB memory patch with overlay 2023-05-23 20:31:37 +02:00
ghostbuster91 ee1055d80c [FocusGen1M2] Disable TPM interrupt due to upstream bug 2023-05-23 07:29:46 +02:00
Peter Ferenczy d569ff4fcf Framework 12th gen: add keys workaround 2023-05-21 21:53:56 +03:00
Ganga Ram 2ed58e3fa2 Removed extra overlay for kernel
Signed-off-by: Ganga Ram <Ganga.Ram@tii.ae>
2023-05-17 15:50:16 +04:00
71ce85372a Merge #623 #624 #627
623: Add HP Elitebook 845g9 r=Mic92 a=tesujimath



624: change default pstate mode for AMD cpus r=Mic92 a=aacebedo



627: raspberry-pi."4": update poe hat overlay to work with newer kernel r=Mic92 a=gador



Co-authored-by: Simon Guest <simon.guest@tesujimath.org>
Co-authored-by: Alexandre Acebedo <alexandre@acebedo.fr>
Co-authored-by: Florian Brandes <florian.brandes@posteo.de>
2023-05-15 16:54:26 +00:00
bors[bot]andJörg Thalheim b3a8d308a1 Merge #629
629: samsung/np900x3c: drop deprecated synaptics r=Mic92 a=Mic92



Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
2023-05-15 16:45:29 +00:00
Jörg Thalheim b3b91ca487 samsung/np900x3c: drop deprecated synaptics
libinputs is now preferred.
2023-05-15 18:44:13 +02:00
Simon Guest bbacfd6012 PR review comment 2023-05-15 20:56:48 +12:00
Simon Guest 2c2d22409f Add HP Elitebook 845g9 2023-05-15 20:56:46 +12:00
Alexandre Acebedo c256df3312 cpu/amd/pstate: change the pstate mode to active 2023-05-13 10:59:49 +02:00
bors[bot]andghostbuster91 81cd886719 Merge #622
622: feat: Add focus m2 gen1 r=Mic92 a=ghostbuster91



Co-authored-by: ghostbuster91 <ghostbuster91@users.noreply.github.com>
2023-05-13 08:03:23 +00:00
ghostbuster91 e39036d599 feat: Add focus m2 gen1 2023-05-13 09:33:23 +02:00
Florian Brandes 5febaab6bd raspberry-pi."4": fix build error with poe-hat, because of incompatibility with
compute module

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-05-12 19:47:31 +02:00
Florian Brandes aa85ea337b raspberry-pi."4": fix compatible string
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-05-12 18:03:39 +02:00
Florian Brandes 40a9f0ed77 raspberry-pi."4": add assertion and update some source comments
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-05-12 17:57:39 +02:00
Jörg Thalheim fb13179483 Merge pull request #619 from NixOS/nxp-overlay
nxp-imx8: drop kernel overlay
2023-05-11 21:28:21 +01:00
Florian Brandes 1ffd9949ee raspberry-pi."4": update poe hat overlay to work with newer kernel
fixes #626

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-05-11 21:29:42 +02:00
Jörg Thalheim c84a8f2423 nxp-imx8: drop kernel overlay
With overlays one cannot re-use nixpkgs across different machines,
which is a performance issues. In this instance it's not really needed.
2023-05-05 09:22:26 +02:00
bors[bot]andJörg Thalheim 51559e691f Merge #620
620: nxp boards: also test evaluation in CI r=Mic92 a=Mic92



Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
2023-05-05 06:53:18 +00:00
Jörg Thalheim db08b1f13f tests: fix conflicts with profiles using grub 2023-05-05 08:52:35 +02:00
Jörg Thalheim d626c3f873 add missing nxp boards
This was an overside in https://github.com/NixOS/nixos-hardware/pull/556
2023-05-05 08:52:35 +02:00
bors[bot]andMateusz Majewski a2018d3391 Merge #618
618: hardkernel/odroid-hc4: fix fancontrol on 5.15 kernel r=Mic92 a=metiulekm



Co-authored-by: Mateusz Majewski <metiulekm@gmail.com>
2023-05-05 06:23:03 +00:00
bors[bot]andPaul Jewell 32da382b2c Merge #610
610: Added Lenovo Thinkpad X390 r=Mic92 a=paul-jewell



Co-authored-by: Paul Jewell <paul@teulu.org>
2023-05-05 06:13:18 +00:00
Paul Jewell 31f8d1c364 Added Lenovo Thinkpad x390 2023-05-05 06:59:00 +01:00
Mateusz MajewskiandSandro adab6fd8e9 hardkernel/odroid-hc4: fix fancontrol on 5.15 kernel
Source for the fancontrol config mentions that one of the lines should
be deleted for the 5.15 kernel.

Fixes #616.

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2023-05-03 12:01:43 +02:00
7dc4630467 Merge #613 #615
613: Add config for Dell XPS 15 9520 r=Mic92 a=palfrey



615: add dell precision 3541 r=Mic92 a=anstylian



Co-authored-by: Tom Parker-Shemilt <tom.parkershemilt@doxy.me>
Co-authored-by: Tom Parker-Shemilt <palfrey@tevp.net>
Co-authored-by: angelos <agathangelos.stylianidis@gmail.com>
2023-05-02 06:40:13 +00:00
bors[bot]andIdris Raja e48fc614d1 Merge #617
617: Update README.md r=Mic92 a=idrisr



Co-authored-by: Idris Raja <idris.raja@gmail.com>
2023-05-02 06:27:38 +00:00
Idris Raja 23ac1ecb8f Update README.md
fix bad link
2023-05-01 20:57:22 -05:00
Tom Parker-Shemilt 8792ddc50c Add Dell XPS 9520 to flake and README 2023-04-30 16:38:50 +01:00
angelos 03548beefd add dell precision 3541 to flake.nix 2023-04-30 14:01:13 +03:00
bors[bot]andJakob Leifhelm e4a21ddcb4 Merge #608
608: Add Starfive Visionfive 2 r=Mic92 a=leifhelm



Co-authored-by: Jakob Leifhelm <jakob.leifhelm@gmail.com>
2023-04-30 06:28:15 +00:00
angelos 576903907a add dell precision 3541 2023-04-29 17:54:03 +03:00
Jakob Leifhelm 0cfe255229 starfive visionfive2: update kernel 2023-04-29 16:50:43 +02:00
Jakob Leifhelm b0fd962525 starfive visionfive2: update u-boot 2023-04-29 16:50:06 +02:00
Tom Parker-Shemilt b13c895f11 Add config for Dell XPS 15 9520 2023-04-29 11:18:48 +01:00
Ganga Ram ba8b9209ce Add Microchip Icicle-kit board support.
* Uses Linux kernel released by Microchip
  - https://github.com/linux4microchip/linux.git
  - Ver: v5.15   Tag: linux4microchip+fpga-2023.02
* Uses UBoot released by Microchip
  - Ver: uboot-2022-01 Tag: linux4microchip+fpga-2023.02

To generate NixOS sd image for MICROCHIP icicle-kit refer:
  https://github.com/tiiuae/ghaf.git

Signed-off-by: Ganga Ram <Ganga.Ram@tii.ae>
2023-04-26 22:55:57 +04:00
Jakob Leifhelm 2ce2f3f978 starfive visionfive2: fix flake check 2023-04-23 18:43:25 +02:00
Jakob Leifhelm 16d6b81a47 starfive visionfive2: Fix cross compilation 2023-04-23 18:11:02 +02:00
Jakob Leifhelm f5298eb1d7 starfive visionfive2: Fix kernel on nixos-unstable 2023-04-18 10:40:20 +02:00
Jakob Leifhelm 4fb7708a20 starfive visionfive2: Update spl_tool 2023-04-18 09:19:48 +02:00
Jakob Leifhelm 7b2aec9939 starfive visionfive2: Fix deviceTree name 2023-04-18 09:15:12 +02:00
Jakob Leifhelm 34f96de8c9 starfive-visionfive2: add to README 2023-04-16 23:18:29 +02:00
Jakob Leifhelm 82ae8a31ae starfive-visionfive2: Add README.md 2023-04-16 23:18:29 +02:00
Jakob Leifhelm 0cc1214203 Init starfive visionfive 2 2023-04-16 23:18:18 +02:00
bors[bot]andSteffen Weitz 3006d2860a Merge #598
598: Add settings for AMD Raphael iGPU r=Mic92 a=stffffn



Co-authored-by: Steffen Weitz <weitz.steffen@gmail.com>
2023-04-07 14:01:24 +00:00
bors[bot]andKonrad Borowski e810467b0f Merge #603
603: Load acpi_call module only if tlp is being used r=Mic92 a=xfix



Co-authored-by: Konrad Borowski <konrad@borowski.pw>
2023-04-07 13:50:33 +00:00
bors[bot]andUlrik Strid 148fee3170 Merge #605
605: Lenovo legion 7i 16ithg6: add hidpi settings r=ulrikstrid a=ulrikstrid



Co-authored-by: Ulrik Strid <ulrik.strid@outlook.com>
2023-04-06 11:24:55 +00:00
Ulrik Strid d2f0dce97b Lenovo legion 7i 16ithg6: add hidpi settings 2023-04-05 16:56:09 +02:00
Konrad Borowski d28d2a2494 Load acpi_call module only if tlp is being used
power-profiles-daemon cannot use acpi_call. This avoids taining
the kernel by installing an unnecessary kernel module.
2023-04-03 09:18:09 +02:00
Steffen Weitz 9dbe8dea5f Add condition for kernel version 6.2 and above 2023-03-29 11:32:52 +02:00
a6aa8174fa Merge #597 #599
597: microsoft-surface: upgrade kernel 6.1.6 to 6.1.18 r=Mic92 a=jokogr



599: fix: add missing touch-ft5406 export to raspberry-pi config r=Mic92 a=louib



Co-authored-by: Ioannis Koutras <ioannis.koutras@gmail.com>
Co-authored-by: louib <code@louib.net>
2023-03-29 06:12:10 +00:00
bors[bot]andlouib 0e55a5963e Merge #600
600: fix: remove rpi_backlight driver from rpi4 config r=Mic92 a=louib



Co-authored-by: louib <code@louib.net>
2023-03-29 06:03:31 +00:00
louib 523e6f9faf fix: remove rpi_backlight driver from rpi4 config 2023-03-28 22:16:02 -04:00
louib b7c184da76 fix: add missing touch-ft5406 export to raspberry-pi config 2023-03-27 20:49:46 -04:00
Steffen Weitz 5fc0f23520 Add module import to flake 2023-03-27 21:18:10 +02:00
bors[bot]andFrédéric Christ 82ecc5b88f Merge #595
595: raspberry-pi/4: Add touch support for official 7" display. r=Mic92 a=frederictobiasc



Co-authored-by: Frédéric Christ <frederic.christ@secunet.com>
2023-03-27 19:15:21 +00:00
bors[bot]andlouib b13f2e1bc2 Merge #596
596: feat: add backlight support for rpi4 r=Mic92 a=louib



Co-authored-by: louib <code@louib.net>
2023-03-27 19:06:29 +00:00
Steffen Weitz 5d47553381 Remove unnecessary mkMerge 2023-03-27 10:34:07 +02:00
Steffen Weitz 70a8ff0a25 Add settings for AMD Raphael iGPU 2023-03-26 23:53:18 +02:00
louib 160e7e12d7 feat: add backlight support for rpi4 2023-03-26 15:26:49 -04:00
Ioannis Koutras 39fb4bb20e microsoft-surface: upgrade kernel 6.1.6 to 6.1.18 2023-03-26 20:54:46 +02:00
Frédéric Christ 3023004e99 raspberry-pi/4: Fix comments and indentation. 2023-03-26 20:11:16 +02:00
Frédéric Christ bd6381e513 raspberry-pi/4: Add touch support for official 7" display. 2023-03-26 20:08:36 +02:00
bors[bot]andJörg Thalheim f38f9a4c9b Merge #591
591: drop hidpi comment r=Mic92 a=Mic92



Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
2023-03-25 17:23:28 +00:00
5854eabcd6 Merge #592 #593
592: thinkpad-z: move to hidpi module r=Mic92 a=Mic92



593: lenovo legion 7 slim 15ach6: add hidpi settings r=Mic92 a=rhoriguchi



Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
Co-authored-by: Ryan Horiguchi <ryan.horiguchi@gmail.com>
2023-03-25 17:14:49 +00:00
Ryan Horiguchi a0eda74ee0 lenovo legion 7 slim 15ach6: add hidpi settings 2023-03-25 14:23:33 +01:00
Jörg Thalheim 449ab4e625 thinkpad-z: move to hidpi module 2023-03-25 11:35:40 +01:00
Jörg Thalheim 7daa0f589d drop hidpi comment
this option no longer exists
2023-03-25 11:33:56 +01:00
bors[bot]andK900 648021dcb2 Merge #586
586: treewide: unset hardware.video.hidpi r=K900 a=K900



Co-authored-by: K900 <me@0upti.me>
2023-03-23 19:01:57 +00:00
K900 739fd62a50 treewide: move hidpi settings to another module, make conditional on nixos version 2023-03-23 16:58:35 +03:00
bors[bot]andAlexander Sosedkin a4bc667096 Merge #583
583: OneNetbook 4 updates r=Mic92 a=t184256



Co-authored-by: Alexander Sosedkin <monk@unboiled.info>
2023-03-19 11:09:09 +00:00
bors[bot]andtoastal 25b81ae455 Merge #585
585: init morefine-m600 r=Mic92 a=toastal



Co-authored-by: toastal <toastal@posteo.net>
2023-03-19 10:58:57 +00:00
toastal 98b4788c85 init morefine-m600
The Morefine M600 is an AMD-powered Mini PC

CPU options (all 6000-series mobile)::
• R9-6900HX
• R9-6850H
• R7-6850U
• R7-6800H
• R5-6600U

If bought with RAM + HDD, you would be getting DDR5 RAM @ 4800MHz & an
NVMe drive, however, it can also be purchased “barebone” with the
wireless card also being replacable.
2023-03-19 17:00:37 +07:00
Alexander Sosedkin 2f074d636d onenetbook/4: remove stale iio-sensor-proxy <3.0 branch 2023-03-19 00:57:22 +01:00
Alexander Sosedkin bde6ca292c onenetbook/4: update stylus patch for 6.1 2023-03-19 00:10:04 +01:00
bors[bot]andenc0urage 994584bb26 Merge #582
582: gpd/p2-max: init r=Mic92 a=enc0urage



Co-authored-by: enc0urage <127197575+enc0urage@users.noreply.github.com>
2023-03-17 17:48:17 +00:00
enc0urage 3287cde1d0 gpd/p2-max: init 2023-03-17 07:57:01 +00:00
556101ff85 Merge #580
580: Improve the configuration of asus ga401 r=Mic92 a=LostAttractor



Co-authored-by: ChaosAttractor <46527539+LostAttractor@users.noreply.github.com>
Co-authored-by: ChaosAttractor <lostattractor@gmail.com>
2023-03-09 21:24:59 +00:00
bors[bot]andChaosAttractor 22ef358f5f Merge #581
581: lenovo 16ach6h: add amd cpu pstate r=Mic92 a=LostAttractor



Co-authored-by: ChaosAttractor <46527539+LostAttractor@users.noreply.github.com>
2023-03-09 19:17:21 +00:00
bors[bot]andIvan Nikolaenko 6e303a505a Merge #578
578: nxp: imx8: Fix wrong paths to imx-uboot.nix file r=Mic92 a=unbel13ver



Co-authored-by: Ivan Nikolaenko <ivan.nikolaenko@unikie.com>
2023-03-09 08:22:13 +00:00
bors[bot]andGhislain Vaillant 7ba21e76d4 Merge #579
579: Enable NVIDIA power management for Dell XPS 7590 r=Mic92 a=ghisvail



Co-authored-by: Ghislain Vaillant <ghisvail@users.noreply.github.com>
2023-03-09 08:11:42 +00:00
Ghislain Vaillant e72756d0b4 Enable NVIDIA power management for Dell XPS 7590 2023-03-07 21:08:32 +01:00
Ivan Nikolaenko 826a2714d7 nxp: imx8: Fix wrong paths to imx-uboot.nix file
In addition, adjust code formatting and improve documentation

Signed-off-by: Ivan Nikolaenko <ivan.nikolaenko@unikie.com>
2023-03-07 13:54:38 +02:00
bors[bot]andAlexandre Iooss f6610997b0 Merge #575
575: Add Hardkernel HC4 support r=Mic92 a=erdnaxe



Co-authored-by: Alexandre Iooss <erdnaxe@crans.org>
2023-03-06 09:33:59 +00:00
bors[bot]andK900 9c94083092 Merge #577
577: common/gpu/amd: use modesetting driver by default r=Mic92 a=K900



Co-authored-by: K900 <me@0upti.me>
2023-03-06 09:26:15 +00:00
K900 630a8e3e4e common/gpu/amd: use modesetting driver by default
Follows upstream nixpkgs
2023-03-06 12:08:52 +03:00
bors[bot]anddependabot[bot] 46d00f2b79 Merge #576
576: Bump cachix/install-nix-action from 19 to 20 r=Mic92 a=dependabot[bot]



Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-06 08:43:32 +00:00
dependabot[bot] e38cf02bf7 Bump cachix/install-nix-action from 19 to 20
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 19 to 20.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v19...v20)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-06 02:56:36 +00:00
Alexandre Iooss ae64b45fc4 Add Hardkernel HC4 support 2023-03-05 18:08:24 +01:00
bors[bot]andc3r5b8 d63e86cbed Merge #574
574: Fix disabling Nvidia dGPU r=Mic92 a=c3r5b8



Co-authored-by: c3r5b8 <olespid@gmail.com>
2023-03-04 16:59:08 +00:00
c3r5b8 defc8e4677 Fix disabling Nvidia dGPU 2023-03-04 18:39:37 +02:00
bors[bot]andKiskae 77de4cd09d Merge #571
571: common/gpu/intel*: Migrate to common/gpu/intel/* and add disable r=Mic92 a=Kiskae



Co-authored-by: Kiskae <Kiskae@users.noreply.github.com>
2023-02-28 13:40:39 +00:00
bors[bot]andGhislain Vaillant 0d55271b4f Merge #572
572: dell-xps-15-7590: enable fwupd and deep sleep r=Mic92 a=ghisvail



Co-authored-by: Ghislain Vaillant <ghisvail@gmail.com>
2023-02-28 13:32:33 +00:00
Ghislain Vaillant 9fef72a2af dell-xps-15-7590: enable fwupd and deep sleep
- This device supports firmware updates through `fwupd`.
- Prefer deep sleep over s2idle which is inefficient.
- Remove old cruft in the corresponding readme.
2023-02-28 12:15:25 +01:00
bors[bot]andGhislain Vaillant dcbf93d500 Merge #570
570: Remove override of WiFi module for Dell XPS 15 7590 r=Mic92 a=ghisvail



Co-authored-by: Ghislain Vaillant <ghisvail@users.noreply.github.com>
2023-02-28 08:53:52 +00:00
Kiskae d7a5d6a29a common/gpu/intel*: Migrate to common/gpu/intel/* and add disable 2023-02-27 14:04:53 +01:00
Ghislain Vaillant 4f1565e56d Remove override of WiFi module for Dell XPS 15 7590 2023-02-26 21:02:04 +01:00
bors[bot]andGhislain Vaillant 2a483ad9cd Merge #569
569: Enable thermald for Dell XPS 15 7590 r=Mic92 a=ghisvail



Co-authored-by: Ghislain Vaillant <ghisvail@users.noreply.github.com>
2023-02-26 19:46:35 +00:00
Ghislain Vaillant 4bf15d3dfd Enable thermald for Dell XPS 15 7590 2023-02-26 20:35:47 +01:00
bors[bot]andGhislain Vaillant c8e047a233 Merge #568
568: Add NVIDIA config for Dell XPS 15 7590 r=Mic92 a=ghisvail



Co-authored-by: Ghislain Vaillant <ghisvail@gmail.com>
2023-02-26 19:08:42 +00:00
Ghislain Vaillant c0effe6658 Add profile for Dell XPS 15 7590 NVIDIA 2023-02-26 00:09:37 +01:00
Ghislain Vaillant c37aed2394 Add NVIDIA config for Dell XPS 15 7590 2023-02-25 19:18:27 +01:00
Sandro 2d44015779 Merge pull request #563 from ncfavier/remove-rtw89
t14s,p14s: remove rtw89-firmware
2023-02-24 10:52:06 +01:00
Naïm Favier fb4ff6250e t14s,p14s: remove rtw89-firmware if linux-firmware new enough 2023-02-22 14:02:07 +01:00
bors[bot]andJörg Thalheim d24ea777c5 Merge #559
559: p14s: do not include acpi_backlight on newer kernel versions r=Mic92 a=Mic92



Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
2023-02-20 20:21:32 +00:00
Jörg Thalheim 93030acc16 p14s: do not include acpi_backlight on newer kernel versions 2023-02-20 21:12:29 +01:00
bors[bot]andPavel Atanasov 1f5e2b7a6a Merge #553
553: lenovo/thinkpad/t520: create r=Mic92 a=reo101



Co-authored-by: Pavel Atanasov <pavel.atanasov2001@gmail.com>
Co-authored-by: reo101 <pavel.atanasov2001@gmail.com>
2023-02-20 20:11:51 +00:00
reo101 6f1da80bd0 lenovo/thinkpad/t520: reference in README.md and flake.nix 2023-02-20 18:08:01 +02:00
bors[bot]andIvan Nikolaenko 157e1e4b12 Merge #556
556: Add NXP i.MX8 SOC family support. r=Mic92 a=unbel13ver



Co-authored-by: Ivan Nikolaenko <ivan.nikolaenko@unikie.com>
2023-02-20 16:02:54 +00:00
bors[bot]andpiousdeer 0f900cfae0 Merge #561
561: lenovo/legion/16ach6h: disable thermald r=Mic92 a=piousdeer



Co-authored-by: piousdeer <31318219+piousdeer@users.noreply.github.com>
2023-02-20 15:53:31 +00:00
Ivan Nikolaenko 75b6ec4775 Add NXP i.MX8 SOC family support.
Currently there are two devices supported:
* imx8qm-mek
* imx8qxp-mek

Signed-off-by: Ivan Nikolaenko <ivan.nikolaenko@unikie.com>
2023-02-20 12:19:39 +02:00
bors[bot]andnecrophcodr 26c9dbdc92 Merge #554
554: gpd/win-2: init r=Mic92 a=necrophcodr



Co-authored-by: necrophcodr <nc@scalehost.eu>
2023-02-20 09:40:00 +00:00
necrophcodr 1c319687c1 gpd/win-2: init 2023-02-20 09:40:39 +01:00
piousdeer 576be211f0 lenovo/legion/16ach6h: disable thermald
It's for Intel laptops. 16ach6h is not one of them.
2023-02-19 23:45:40 +07:00
Bernardo Meurer 525177a780 Merge pull request #560 from lovesegfault/no-aliases
raspberry-pi/4: don't use an alias for the kernel pkg
2023-02-19 02:59:03 +00:00
Bernardo Meurer 7c7a8f7082 raspberry-pi/4: don't use an alias for the kernel pkg 2023-02-18 15:55:05 +00:00
bors[bot]anddependabot[bot] 9bbcc37b01 Merge #555
555: Bump cachix/install-nix-action from 18 to 19 r=Mic92 a=dependabot[bot]



Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-18 05:58:34 +00:00
bors[bot]andMartino Fontana 00d1c8da9a Merge #558
558: amdlvk cleanup r=Mic92 a=SuperSamus



Co-authored-by: Martino Fontana <tinozzo123@tutanota.com>
2023-02-18 05:50:27 +00:00
Martino Fontana b4bf2550b3 AMD: don't install OpenCL by enabling amdvlk 2023-02-17 15:30:02 +01:00
Martino Fontana 1156f4d66e AMD: disable amdvlk install by default
Nobody recommends using amdvlk over RADV.
Also don't set environment variable that sets the use of RADV when installing amdvlk
2023-02-17 15:29:55 +01:00
dependabot[bot] 85fb2c41b6 Bump cachix/install-nix-action from 18 to 19
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 18 to 19.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v18...v19)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-13 03:14:50 +00:00
ChaosAttractor 0d8c852503 zephyrus ga401: Enable nvidia powerManagement & modesetting (nvidia-drm) 2023-02-10 14:55:46 +08:00
ChaosAttractor 5c55f2428f zephyrus ga401: Enable asusd services 2023-02-10 14:32:13 +08:00
Pavel Atanasov 51ec9ab517 lenovo/thinkpad/t520: create
Borrow `t420`'s config since the machines only mainly differ in screen size
2023-02-09 20:17:37 +02:00
44ae00e02e Merge #550
550: Add amdvlk and opencl options to amdgpu & Fix proton crash when Dual-Direct GFX enabled for lenovo legion 16ach6h r=Mic92 a=LostAttractor



Co-authored-by: ChaosAttractor <46527539+LostAttractor@users.noreply.github.com>
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2023-02-09 09:06:46 +00:00
Jörg Thalheim 445db26b88 Update lenovo/legion/16ach6h/nvidia/default.nix 2023-02-09 09:04:15 +00:00
bors[bot]andChaosAttractor 299fe76828 Merge #551
551: Fix conflict to https://github.com/NixOS/nixpkgs/commit/2a7130d13a032093f5394ef0961842d1e1928789 r=Mic92 a=LostAttractor



Co-authored-by: ChaosAttractor <lostattractor@gmail.com>
2023-02-09 08:59:02 +00:00
ChaosAttractor b45bd0353a Change lib.mkDefault to lib.mkOverride 990 for hardware.nvidia.prime.offload.enable
Fix conflict to https://github.com/NixOS/nixpkgs/commit/2a7130d13a032093f5394ef0961842d1e1928789
2023-02-09 12:41:39 +08:00
ChaosAttractor 8732ed0a36 16ach6h: add amd cpu pstate 2023-02-08 18:58:59 +08:00
ChaosAttractor b5416e9171 zephyrus ga401: change pc/ssd to pc/laptop/ssd 2023-02-08 18:57:46 +08:00
ChaosAttractor 0b49fc7783 zephyrus ga401: add amd cpu pstate 2023-02-08 18:56:56 +08:00
ChaosAttractor 56ad55261c zephyrus ga401: add amdgpu driver 2023-02-08 18:56:30 +08:00
bors[bot]andWinston R. Milling 16b6928ec6 Merge #549
549: Add Support for Lenovo Y530-15ICH r=Mic92 a=wrmilling



Co-authored-by: Winston R. Milling <Winston@Milli.ng>
2023-02-07 15:50:29 +00:00
Winston R. Milling 48e4621f98 Add flake and readme links 2023-02-07 07:09:22 -06:00
ChaosAttractor be60a34c1a 16ach6h: disable amdvlk and rocm-opencl for nvidia-only mode 2023-01-30 15:23:11 +08:00
ChaosAttractor 5af4dc5d52 Add the option of whether to install the opencl environment and whether to use amdvlk for amdgpu 2023-01-30 15:23:11 +08:00
Winston R. Milling 68136fdd0a Lenovo Y530-15ICH Initial Commit 2023-01-29 14:48:35 -06:00
b7ac0a5602 Merge #544 #545 #546
544: Fix copy-paste typo: "CONFIG_" prefix in structuredExtraConfig patches r=Mic92 a=mexisme



545: Add kernel 6.1.6 to Microsoft Surface profile r=Mic92 a=mexisme



546: lenovo/thinkpad/t440p: force load thinkpad_acpi r=Mic92 a=surfaceflinger



Co-authored-by: mexisme <wildjim+dev@kiwinet.org>
Co-authored-by: surfaceflinger <nat@nekopon.pl>
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2023-01-24 08:59:53 +00:00
Jörg Thalheim d25ac8d999 Update lenovo/thinkpad/t440p/default.nix 2023-01-24 08:54:28 +00:00
bors[bot]andChaosAttractor ba8fc4a279 Merge #547
547: 16ach6h: Add tags for Dual-Direct GFX (DDG) specialisation r=Mic92 a=LostAttractor



Co-authored-by: ChaosAttractor <lostattractor@gmail.com>
2023-01-24 08:52:21 +00:00
Bernardo Meurer 4cff4f40b9 Merge pull request #543 from ipetkov/fix-device-tree-overlays
raspberry-pi/4/dtmerge: fix application of overlays
2023-01-23 13:35:16 -05:00
ChaosAttractor f83f6d1437 16ach6h: Add tags for Dual-Direct GFX (DDG) specialisation 2023-01-24 01:34:55 +08:00
surfaceflinger 759a06ec4a lenovo/thinkpad/t440p: force load thinkpad_acpi
thinkpad_acpi doesn't load automatically on corebooted Lenovo ThinkPads T440p (but works fine if force_loaded). Doesn't affect users with stock firmware.
2023-01-20 21:37:32 +01:00
mexisme 906737f580 Enable STREAMING_MEDIA kernel option 2023-01-19 17:00:17 +13:00
mexisme 27b616b63a Update repo rev and SHA-256 for linux-surface 2023-01-19 14:36:57 +13:00
mexisme 2316f4cb8c Configure MS Surface Go to use kernel 6.1.6 2023-01-19 13:54:46 +13:00
mexisme 863953246f Update to kernel 6.1.6 2023-01-19 13:26:43 +13:00
mexisme ab4c0eedb6 Begin updating to kernel 6.1.6 2023-01-19 13:20:36 +13:00
mexisme 2933836fa5 Typo: "CONFIG_" prefix in structuredExtraConfig patches
- Unintentional typo, due to copy-paste from linux-surface upstream config
2023-01-19 03:11:39 +13:00
mexisme f5fc8fb060 Merge branch 'up/master' into microsoft/surface/6.1.3 2023-01-19 03:10:40 +13:00
mexisme 5c836a9a36 Typo: "CONFIG_" prefix in structuredExtraConfig patches
- Unintentional typo, due to copy-paste from linux-surface upstream config
2023-01-19 03:06:56 +13:00
Ivan Petkov 320866b985 raspberry-pi/4/dtmerge: fix application of overlays
Previously whenever an overlay was found to be incompatible with a base
device tree blob, the entire base dtb would be skipped in favor of
processing the next one. This had the unfortunate effect where overlays
would not fully be applied if any incompatibility was found. For
example, this is an issue with build device trees specific for one
flavor of raspberry pi if the overlay was not compatible _everywhere_.

The solution is to forego the `continue` keyword if an overlay is in
compatible and instead use a compound conditional statement to skip
incompatible overlays but continue trying to apply it to any remaining
dtbs.
2023-01-16 19:57:10 -08:00
bors[bot]anddamianoognissanti 7bd6b87b37 Merge #540
540: Fixed typo r=Mic92 a=damianoognissanti



Co-authored-by: damianoognissanti <97738787+damianoognissanti@users.noreply.github.com>
2023-01-15 17:21:14 +00:00
damianoognissanti c58b1fb5a5 Fixed typo
One line said nixes instead of nixos
2023-01-14 08:34:30 +01:00
bors[bot]andmexisme 88016c96c3 Merge #539
539: microsoft/surface: Tidy-up (update TODO's, run Deadnix and Statix) r=Mic92 a=mexisme



Co-authored-by: mexisme <wildjim+dev@kiwinet.org>
2023-01-11 12:36:09 +00:00
mexisme 62e8ddb93f Deadnix fixes 2023-01-11 12:11:44 +13:00
mexisme 1a2092cf02 Merge remote-tracking branch 'upstream/master' into microsoft-surface/deadnix-statix 2023-01-11 12:10:26 +13:00
mexisme 01d1f9604e Update TODO's 2023-01-11 12:10:06 +13:00
mexisme ce5c29e48f Merge remote-tracking branch 'upstream/master' into microsoft/surface/6.1.3 2023-01-11 12:00:54 +13:00
9335068481 Merge #537
537: microsoft/surface profile -- change dir structure to support easier specialisation by model r=Mic92 a=mexisme



Co-authored-by: mexisme <wildjim+dev@kiwinet.org>
Co-authored-by: mexisme <mexisme@users.noreply.github.com>
2023-01-10 22:47:31 +00:00
mexisme d5c4a26bb1 Merge remote-tracking branch 'upstream/master' into microsoft/surface/6.1.3 2023-01-11 11:47:31 +13:00
mexisme f67688dcf5 Add specialisation for Surface Laptop (AMD) 2023-01-11 11:16:39 +13:00
mexisme 1dc7781973 Merge branch 'microsoft/surface/specialisation/common-files' of github.com:mexisme/nixos-hardware into microsoft/surface/specialisation/common-files 2023-01-11 11:07:56 +13:00
mexisme 6832e87663 Add some doc comments 2023-01-11 11:07:27 +13:00
mexismeandJörg Thalheim 2cd5ae60b1 Use URL to docs, instead of short-form
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2023-01-11 10:48:24 +13:00
mexisme 8e6d03d349 Update OLD-BEHAVIOUR-DEPRECATION.md 2023-01-11 02:32:24 +13:00
mexisme 42ec6296f2 fixup! Update Surface Pro 3 to reference microsoft/surface/surface-pro-intel 2023-01-11 02:25:48 +13:00
mexisme 80e8d29a9c Update Surface Go to depend on other PC modules
- SSD
- Intel Kaby Lake
- Intel GPU
2023-01-11 02:24:06 +13:00
mexisme 7b72154684 Update Surface Pro 3 to reference microsoft/surface/surface-pro-intel 2023-01-11 02:12:39 +13:00
mexisme de3ec80522 Add Surface Pro (Intel) 2023-01-11 02:11:52 +13:00
mexisme 30066d1886 Tidy-up 2023-01-11 02:06:33 +13:00
mexisme 63be2f9854 Update README.md to reference surface-go module 2023-01-11 01:54:53 +13:00
mexisme 5b713dd72e Merge branch 'microsoft/surface/specialisation/common-files' into microsoft/surface/specialisation/surface-go 2023-01-11 01:51:01 +13:00
mexisme ee8fef4149 Use the module assertions option, instead
- Assertion (failure) when trying to use microsoft/surface/default.nix
2023-01-11 01:39:03 +13:00
mexisme 9d4505d4e1 Update README 2023-01-11 01:39:03 +13:00
mexisme f00dee1fdf Remove the "deprecated" module
- It makes more sense to error-out and provide information on how to update.
2023-01-11 00:29:15 +13:00
mexisme 157a74d8a4 "old" --> "deprecated" 2023-01-11 00:29:15 +13:00
mexisme 1e0872458b Merge remote-tracking branch 'upstream/master' into microsoft/surface/specialisation/common-files 2023-01-10 22:29:13 +13:00
mexismeandJörg Thalheim c1580f8d81 Update warning message
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2023-01-10 22:03:38 +13:00
bors[bot]andmexisme df029cfefc Merge #533
533: Update the 6.0.* kernel version to 6.0.17 for Microsoft Surface profile r=Mic92 a=mexisme



Co-authored-by: mexisme <wildjim+dev@kiwinet.org>
2023-01-10 07:47:15 +00:00
mexisme aa5b884f01 Merge branch 'microsoft/surface/specialisation/common-files' into microsoft/surface/specialisation/surface-go 2023-01-10 17:45:41 +13:00
mexisme 5f5a93c535 Merge remote-tracking branch 'upstream/master' into microsoft/surface/specialisation/common-files 2023-01-10 17:45:12 +13:00
mexisme 89e925dbc1 Merge remote-tracking branch 'upstream/master' into microsoft/surface/6.1.3 2023-01-10 17:41:58 +13:00
mexisme 0c474cb9e1 Merge branch 'microsoft/surface/6.0.17' of ssh://github.com/mexisme/nixos-hardware into microsoft/surface/6.0.17 2023-01-10 17:41:15 +13:00
mexisme 12271091e0 Merge remote-tracking branch 'upstream/master' into microsoft/surface/6.0.17 2023-01-10 17:40:24 +13:00
mexisme 663ed7df79 Merge branch 'microsoft/surface/specialisation/common-files' into microsoft/surface/specialisation/surface-go 2023-01-10 17:31:02 +13:00
mexisme 9e1f036688 Fix README 2023-01-10 17:29:15 +13:00
mexisme 9491d40621 README.md 2023-01-10 17:29:15 +13:00
mexisme cd560b1ec3 README.md 2023-01-10 17:29:15 +13:00
mexisme 20cc307602 Update README.md and flake.nix 2023-01-10 17:29:15 +13:00
mexisme c52e0880de Add warning when importing microsoft/surface/ from now on 2023-01-10 17:29:15 +13:00
mexisme cca1f04705 Move the last of the code into ./microsoft/common/old 2023-01-10 17:29:15 +13:00
mexisme 5b27563b02 Extract "surface-control" management into new option-enabled module 2023-01-10 17:29:15 +13:00
mexisme b8f4e97171 Extract IPTSd management into new option-enabled module 2023-01-10 17:29:15 +13:00
mexisme 391211b351 Extract _actually_ common code out of microsoft/surface/default.nix 2023-01-10 17:29:15 +13:00
mexisme 7ff6c2fd67 Doc comment 2023-01-10 17:29:15 +13:00
mexisme bd17dc4706 Move files around...
- "kernel" and "repos.nix" --> "common/"
- "firmware/surface-go/ath10k" --> "surface-go/firmware/ath10k"
- Update where "kernel", "firmware/surface-go" and "repos.nix" can be found
2023-01-10 17:29:13 +13:00
mexisme db569eb9ca Merge branch 'microsoft/surface/specialisation/common-files' into microsoft/surface/specialisation/surface-go 2023-01-10 17:22:07 +13:00
mexisme cca014c8b0 Fix README 2023-01-10 17:19:58 +13:00
mexisme d8df3d756a Update README.md and flake.nix 2023-01-10 17:18:47 +13:00
mexisme 210e621c62 Create model specialisation for MS Surface Go 2023-01-10 17:17:07 +13:00
mexisme 36f3e30fff README.md 2023-01-10 16:57:32 +13:00
mexisme 330cdaa125 README.md 2023-01-10 16:55:23 +13:00
mexisme 6518a93150 Update README.md and flake.nix 2023-01-10 16:35:29 +13:00
mexisme fb5ac77207 Add warning when importing microsoft/surface/ from now on 2023-01-10 16:35:25 +13:00
mexisme ab0c9fe7ce Move the last of the code into ./microsoft/common/old 2023-01-10 16:33:49 +13:00
mexisme f0835cb45c Extract "surface-control" management into new option-enabled module 2023-01-10 16:06:55 +13:00
mexisme 0ce988ea8a Extract IPTSd management into new option-enabled module 2023-01-10 16:06:55 +13:00
mexisme 51122e95a1 Extract _actually_ common code out of microsoft/surface/default.nix 2023-01-10 16:06:55 +13:00
mexisme 5e6d5f2d88 Doc comment 2023-01-10 15:38:47 +13:00
mexisme 03df3d2d53 Move files around...
- "kernel" and "repos.nix" --> "common/"
- "firmware/surface-go/ath10k" --> "surface-go/firmware/ath10k"
- Update where "kernel", "firmware/surface-go" and "repos.nix" can be found
2023-01-10 15:38:47 +13:00
mexisme 51e3be9885 Remove kernel 6.0.11 from MS Surface profile 2023-01-10 12:41:58 +13:00
bors[bot]andJörg Thalheim 48745e081c Merge #535
535: fix evaluation of rpi4 r=Mic92 a=Mic92



Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
2023-01-09 23:32:38 +00:00
Jörg Thalheim cb4f9dca64 fix evaluation of rpi4 2023-01-10 00:31:59 +01:00
mexisme 05bbf0f040 Update the rev. and sha256 of linux-surface repo to match latest "master" 2023-01-10 12:21:51 +13:00
mexisme 321d5ec9f7 Add kernel 6.1.3 2023-01-10 12:21:51 +13:00
mexisme 9020a320f5 Install kernel 6.0.17 by default 2023-01-09 23:45:16 +13:00
mexisme 0ee9d61fa6 Update the rev. and sha256 of linux-surface repo to match latest "master" 2023-01-09 23:44:36 +13:00
mexisme 800786f11d Add Kernel 6.0.17 2023-01-09 23:05:15 +13:00
bors[bot]andfigsoda ca29e25c39 Merge #531
531: asus-zephyrus-ga402: fix mic mute button r=Mic92 a=figsoda



Co-authored-by: figsoda <figsoda@pm.me>
2023-01-02 07:27:44 +00:00
figsoda 6517e0efcb asus-zephyrus-ga402: fix mic mute button 2023-01-01 12:31:25 -05:00
bors[bot]andHiram Tanner 0517e81e8c Merge #530
530: Added configuration for panasonic let's note r=Mic92 a=2gn



Co-authored-by: Hiram Tanner <indianrunner@duck.com>
2023-01-01 09:54:34 +00:00
Hiram TannerandJörg Thalheim c82db46e75 Added configuration for panasonic
Update panasonic/letsnote/cf-lx4/default.nix

Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>

Added profile to flake.nix
2022-12-31 23:30:14 +09:00
bors[bot]andJörg Thalheim 3c03f64efb Merge #529
529: treewide: apply deadnix and statix r=Mic92 a=Mic92



Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
2022-12-31 10:58:34 +00:00
Jörg Thalheim 03c6d15152 treewide: apply deadnix and statix 2022-12-31 11:57:44 +01:00
bors[bot]andmexisme d7dfd13d25 Merge #510
510: Config settings for Dell XPS 13 / 9300 r=Mic92 a=mexisme



Co-authored-by: mexisme <wildjim+dev@kiwinet.org>
2022-12-31 07:30:19 +00:00
mexisme ed291da4ab Update flake.nix and root README.md 2022-12-31 14:23:53 +13:00
mexisme 0cee376703 Support reloading btusb module after resuming 2022-12-31 14:23:53 +13:00
mexisme 97900e1e7e Support reloading i2c-designware module(s) after resuming 2022-12-31 14:23:53 +13:00
mexisme b1582825dd Support for the Dell XPS 13, 9300 model 2022-12-31 14:23:53 +13:00
e2f9c6f736 Merge #525
525: Add LENOVO Yoga 6 13ALC6 82ND r=Mic92 a=me00001



Co-authored-by: suliman <suliman.p2019@gmail.com>
Co-authored-by: me00001 <37930867+me00001@users.noreply.github.com>
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2022-12-29 13:53:34 +00:00
Jörg Thalheim 49485f5569 Update lenovo/yoga/6/13ALC6/default.nix 2022-12-29 13:53:01 +00:00
Jörg Thalheim c1a38081fa Update lenovo/yoga/6/13ALC6/default.nix 2022-12-29 13:52:15 +00:00
suliman 993e6c8726 removo TLP 2022-12-29 16:50:43 +03:00
suliman 114881dd3d Minimum required version is 5.16 based on https://linux-hardware.org/?id=pci:10ec-8852-17aa-4852 2022-12-29 14:42:08 +03:00
me00001andJörg Thalheim a30c4834f4 set a minimum kernel
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2022-12-29 13:23:08 +03:00
suliman 2e8fce47c8 Reusing modules 2022-12-28 23:10:35 +03:00
suliman 485f3bc2f2 Add LENOVO Yoga 6 13ALC6 82ND 2022-12-24 02:38:10 +03:00
bors[bot]andKarolis Stasaitis 9577ab1eaf Merge #518
518: raspberry-pi/4: dtmerge update r=Mic92 a=carlossless



Co-authored-by: Karolis Stasaitis <contact@carlossless.io>
2022-12-21 14:04:41 +00:00
Karolis StasaitisandJörg Thalheim 93b1cdbb77 raspberry-pi/4: dtmerge update
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2022-12-21 14:27:48 +02:00
bors[bot]andChaosAttractor 25010a042c Merge #515
515: Update config of Lenovo legion 16ach6h r=Mic92 a=LostAttractor



Co-authored-by: ChaosAttractor <46527539+LostAttractor@users.noreply.github.com>
2022-12-19 16:37:27 +00:00
ChaosAttractor 8d2e13c847 Merge branch 'master' into lenovo-legion-16ach6h 2022-12-19 23:10:30 +08:00
ChaosAttractor ab165ab191 Add standalone hybrid only and nvidia only modules 2022-12-19 23:10:28 +08:00
bors[bot]ands1341 7a1b9419c9 Merge #519
519: Latitude 7430: init r=Mic92 a=s1341



Co-authored-by: s1341 <github@shmarya.net>
2022-12-19 13:08:22 +00:00
s1341 9c0fa60e49 Latitude 7430: init 2022-12-19 12:41:50 +02:00
ChaosAttractor b53fc0a785 Add specialisation for “DDG" mode is enabled 2022-12-19 14:36:29 +08:00
ChaosAttractor dea6ef85a1 Enable hardware.nvidia.modesetting 2022-12-19 13:02:28 +08:00
ChaosAttractor dc8f1fd6a8 Enable hardware.nvidia.powerManagement
Update default.nix
2022-12-17 18:38:06 +08:00
ChaosAttractorandJörg Thalheim 262146dc76 Override edid of built-in display
Fix the problem that the edid of the built-in display only provided 60hz mode when use Hybrid Graphics

It appears to be a Lenovo firmware issue and i try to fix it. This issue still reproducible on BIOS version GKCN58WW(22/12/16)
Lenovo Legion 5 Pro is a laptop which support a technology called "DDG" that can allow you switch between discrete graphics mode and hybrid mode (optiums).
In discrete graphics mode, the firmware provides the correct edid and anything works fine, the built-in display work well at 165hz.
But if switch to hybrid mode, the firmware provides a different edid, causing the built-in display only can work at 60hz.
So I extracted the edid file of discrete graphics mode and override the edid that built-in display provide to solve this problem.

Co-Authored-By: Jörg Thalheim <Mic92@users.noreply.github.com>
2022-12-17 18:38:06 +08:00
bors[bot]andK900 e462a4baf7 Merge #517
517: cpu/amd/pstate: enable correctly on kernel 6.1+ r=Mic92 a=K900



Co-authored-by: K900 <me@0upti.me>
2022-12-16 22:01:05 +00:00
Jörg Thalheim 9deb37488f Merge pull request #513 from LostAttractor/loadAtStage1
Add a option to add(or disadd) amdgpu to kernelModule
2022-12-16 21:55:05 +00:00
ChaosAttractor 2fcc402c01 Merge branch 'master' into loadAtStage1 2022-12-17 00:06:23 +08:00
ChaosAttractor a1a8723bf9 Add a option to add(or disadd) amdgpu to kernelModule
Add a option to add(or disadd) amdgpu to boot.initrd.kernelModule
2022-12-17 00:04:46 +08:00
K900 b67160bb7f cpu/amd/pstate: enable correctly on kernel 6.1+
There is no separate module now, and a clean option to enable it.
2022-12-16 17:43:40 +03:00
bors[bot]andChaosAttractor 488931efb6 Merge #514
514: Add lib.mkDefault in services.xserver.videoDrivers = [ "amdgpu" ]; r=Mic92 a=LostAttractor



Co-authored-by: ChaosAttractor <46527539+LostAttractor@users.noreply.github.com>
2022-12-16 09:40:12 +00:00
ChaosAttractor b35c93e8a2 Add mkDefault to services.xserver.videoDrivers = [ "amdgpu" ]; 2022-12-16 06:58:12 +08:00
bors[bot]andAlexandre Acebedo 1f60672721 Merge #508
508: Add support for GA402 r=Mic92 a=aacebedo



Co-authored-by: Alexandre Acebedo <alexandre@acebedo.fr>
2022-12-15 12:19:56 +00:00
bors[bot]andmexisme 0fbf27af51 Merge #511
511: Kernel 6.0.11 for Microsoft Surface devices r=Mic92 a=mexisme



Co-authored-by: mexisme <wildjim+dev@kiwinet.org>
2022-12-13 19:29:37 +00:00
mexisme cd76050824 Update for code refactor 2022-12-05 17:51:33 +13:00
mexisme 560e4f2ecf Merge branch 'microsoft/surface/refactor-kernel-code' into microsoft/surface/kernel-6.0.11 2022-12-05 17:44:37 +13:00
mexisme be728899cf Tidy-up 2022-12-05 17:42:40 +13:00
mexisme e84ab22523 Extract the kernel patches out 2022-12-05 17:38:21 +13:00
mexisme e37520e48b Rearrange the kernels to make them self-defining 2022-12-05 17:32:25 +13:00
mexisme f99c9d5b1f Tidy-up 2022-12-05 16:04:11 +13:00
mexisme d2b7a0fb9a Kernel 6.0.11 for MS Surface Devices 2022-12-05 14:40:24 +13:00
mexisme 76c6688e86 Merge branch 'microsoft/surface/refactor-kernel-code' into microsoft/surface/kernel-6.0.11 2022-12-05 13:41:07 +13:00
mexisme b01a6d58df Remove obsolete file 2022-12-05 13:38:14 +13:00
mexisme 87597ab307 Remove obsolete files 2022-12-05 13:37:20 +13:00
mexisme 33d17074a3 Merge branch 'microsoft/surface/refactor-kernel-code' into microsoft/surface/kernel-6.0.11 2022-12-05 13:36:23 +13:00
mexisme 52dd282ee3 Merge branch 'up/master' into microsoft/surface/refactor-kernel-code 2022-12-05 12:18:27 +13:00
mexisme 3ad53f12b1 Merge branch 'up/master' into microsoft/surface/kernel-6.0.11 2022-12-05 12:00:56 +13:00
bors[bot]andChristoph Charles 9d87bc030a Merge #509
509: surface/kernel: 5.16.11 -> 5.19.17 r=Mic92 a=christophcharles



Co-authored-by: Christoph Charles <23055925+christophcharles@users.noreply.github.com>
2022-12-04 17:28:39 +00:00
Christoph Charles 250d6991c9 surface/kernel: 5.16.11 -> 5.19.17 2022-12-04 17:34:44 +01:00
Alexandre Acebedo f17316259f fixup! Add support for GA402 2022-12-03 17:41:33 +01:00
Alexandre Acebedo 56566dc47f fixup! Add support for GA402 2022-12-03 17:38:26 +01:00
Alexandre Acebedo e18b759b1b Add support for GA402 2022-12-03 17:19:05 +01:00
bors[bot]and4JX 7883883d13 Merge #506
506: Add Lenovo Legion 5 Pro Gen 6 r=Mic92 a=4JX



Co-authored-by: 4JX <79868816+4JX@users.noreply.github.com>
2022-11-28 15:56:34 +00:00
mexisme 87adbffa11 Fix-ups 2022-11-29 00:00:31 +13:00
mexisme a51973c994 Add linux-surface patches for 5.19.2 2022-11-28 23:43:50 +13:00
mexisme d93d29bdc9 Add-back linux-surface/linux-surface repo, for easy access to the kernel patches 2022-11-28 23:42:41 +13:00
mexisme 5d0ade6958 Add-back linux-surface/linux-surface repo, for easy access to the kernel patches 2022-11-28 23:21:34 +13:00
mexisme 50ce82cc84 Fix for unexpected recursion error
Might be related to how these packages access "pkgs" ?
2022-11-28 22:26:47 +13:00
mexisme 3de7b6e0c5 Use the newly refactored code 2022-11-28 20:37:07 +13:00
mexisme 158f86bb32 DRY the MS Surface kernel module 2022-11-28 20:37:07 +13:00
mexisme 35e317a280 Use new repos.linux-surface-kernel function 2022-11-28 20:37:07 +13:00
mexisme b32b188154 Convert the repos.linux-surface-kernel set to a function 2022-11-28 20:37:07 +13:00
4JX b441875a50 Apply suggestion 2022-11-24 16:39:20 +01:00
4JX 776287c483 Add some data about the device used 2022-11-24 00:12:24 +01:00
4JX 56bb7c93b3 Add Lenovo Legion 5 Pro Gen 6 2022-11-23 20:47:27 +01:00
bors[bot]andTristan Daniël Maat 0099253ad0 Merge #502
502: common/gpu/nvidia*: Migrate to common/gpu/nvidia/* and add non-prime r=Mic92 a=TLATER



Co-authored-by: Tristan Daniël Maat <tristan.maat@codethink.co.uk>
2022-11-22 19:43:54 +00:00
bors[bot]anddasNessie 1108c1b861 Merge #505
505: Add Ethernet Support on Framework r=Mic92 a=dasnessie



Co-authored-by: dasNessie <mail@dasnessie.de>
2022-11-20 19:51:13 +00:00
dasNessie bf212c4ef5 Add Ethernet Support on Framework
Add Ethernet Expansion Card support for the framework laptop.
Due to automatic USB device suspension,
the Ethernet Expansion Card was not working.
Adding a udev rule to only suspend the card after 20 seconds
fixes the problem.
The framework support confirmed via email
that all current Ethernet Expansion Cards share the same Product ID.
2022-11-19 14:33:56 +01:00
bors[bot]andmatthewcroughan e0452b33ab Merge #501
501: Add support for ssd to Lenovo ThinkPad T480 r=Mic92 a=MatthewCroughan



Co-authored-by: matthewcroughan <matt@croughan.sh>
2022-11-13 10:22:26 +00:00
Tristan Daniël Maat cdd049a353 treewide: Migrate to new nvidia modules 2022-11-13 01:55:13 +00:00
Tristan Daniël Maat 7e60458d86 common/gpu/nvidia*: Migrate to common/gpu/nvidia/* and add non-prime
Fixes #338
2022-11-13 01:41:03 +00:00
matthewcroughan 435a9c6526 Add support for ssd to Lenovo ThinkPad T480 2022-11-11 13:43:35 +00:00
bors[bot]andQuinn Dougherty 062c3cca46 Merge #500
500: Latitude 3340: init r=Mic92 a=Mic92



Co-authored-by: Quinn Dougherty <quinnd@riseup.net>
2022-11-11 09:05:55 +00:00
Quinn Dougherty d43d5ad52a Latitude 3340: init 2022-11-11 10:04:17 +01:00
bors[bot]andYureka 11a42a580d Merge #499
499: kobol/helios4: update kernel patches r=Mic92 a=yu-re-ka



Co-authored-by: Yureka <yuka@yuka.dev>
2022-11-10 12:52:37 +00:00
Yureka 17fbd802fb kobol/helios4: update kernel patches 2022-11-10 13:30:29 +01:00
bors[bot]andAidan Pinard 909f025947 Merge #498
498: Changed asus battery script to work with multiple battery names. r=Mic92 a=jeiang



Co-authored-by: Aidan Pinard <aidan@aidanpinard.co>
2022-11-09 14:46:16 +00:00
Aidan Pinard 191d3ca91d Changed asus battery script to work with multiple battery names.
Signed-off-by: Aidan Pinard <aidan@aidanpinard.co>
2022-11-09 08:47:07 -04:00
bors[bot]andDaniel Reimer f6483e0def Merge #496
496: Adds Lenovo Thinkpad X1 10th-gen r=Mic92 a=pigsinablanket



Co-authored-by: Daniel Reimer <daniel.k.reimer97@gmail.com>
2022-11-06 20:53:28 +00:00
Daniel Reimer 7b063efe67 add lenovo/thinkpad/x1/10th-gen 2022-11-05 22:15:29 -07:00
Jörg Thalheim 6b35a59c19 Merge pull request #495 from Madouura/pr/visionfive
starfive/visionfive/v1: Make sd-image more flake-friendly
2022-11-04 19:09:38 +01:00
Madoura ca3a7fca02 starfive/visionfive/v1: Make README.MD formatting more readable 2022-11-04 11:56:02 -05:00
Madoura 6c2ae977a7 starfive/visionfive/v1: Make sd-image more flake-friendly 2022-11-04 11:55:16 -05:00
bors[bot]andmatthewcroughan 18934557ee Merge #488
488: raspberry-pi/4: add pcie_brcmstb and reset-raspberrypi to kernelParams r=Mic92 a=MatthewCroughan



Co-authored-by: matthewcroughan <matt@croughan.sh>
2022-11-01 06:15:20 +00:00
bors[bot]andArchit Gupta d5bacd34f5 Merge #491
491: framework: Add iio in order to enable brightness control r=Mic92 a=accelbread



Co-authored-by: Archit Gupta <accelbread@gmail.com>
2022-10-31 13:00:53 +00:00
Archit Gupta e79d0fc184 framework: Add iio in order to enable brightness control
Enabling iio makes the framework's brightness controls available to desktop
environments like Gnome.
2022-10-29 23:22:25 -07:00
bors[bot]andmatthewcroughan 419dcc0ec7 Merge #489
489: .github/PULL_REQUEST_TEMPLATE.md: init r=Mic92 a=MatthewCroughan



Co-authored-by: matthewcroughan <matt@croughan.sh>
2022-10-27 12:25:49 +00:00
matthewcroughan 379773671e .github/PULL_REQUEST_TEMPLATE.md: init 2022-10-27 13:25:13 +01:00
bors[bot]andMayNiklas dfd9128433 Merge #487
487: add thinkpad x1 yoga 7th-gen r=Mic92 a=MayNiklas



Co-authored-by: MayNiklas <info@niklas-steffen.de>
2022-10-27 06:10:28 +00:00
bors[bot]andZane van Iperen e0edd2122f Merge #486
486: apple/macbook-pro: add support for 14,1 r=Mic92 a=vs49688



Co-authored-by: Zane van Iperen <zane@zanevaniperen.com>
2022-10-27 06:03:38 +00:00
Jörg Thalheim d6945f0ca1 macbook-14-1: also add to README 2022-10-27 08:01:47 +02:00
matthewcroughanandSamuel Dionne-Riel c9c1a5294e raspberry-pi/4: add pcie_brcmstb and reset-raspberrypi to kernelParams
This is required for things like USB Boot to work correctly

Co-authored-by: Samuel Dionne-Riel <samuel@dionne-riel.com>
2022-10-27 03:24:07 +01:00
MayNiklas 2c27afc7ed add lenovo/thinkpad/x1/yoga/7th-gen 2022-10-22 15:35:24 +02:00
Zane van Iperen ba12233257 apple/macbook-pro/14-1: fix service script paths
Doesn't require Nix to keep around the entire nixos-hardware repo.
2022-10-22 17:37:58 +10:00
Zane van Iperen 99ed0bc663 apple/macbook-pro: add support for 14,1
Extracted from my system configs. There's still a few issues with this
machine:

1. Audio is a lost cause. Will probably need to bribe an Apple or Cirrus
   engineer for the datasheet.
2. The thunderbolt module will oops upon system resume, and subsequently
   refuse to work until next reboot.
3. The d3cold state needs to be disabled on the NVME controller for it
   to wake up.
4. The Bluetooth UART (/dev/ttyS0) is created and then deleted by udev
   in early boot. I am yet to figure out why. Hack around it by
   reloading the 8250_dw module, causing it to be re-created.
2022-10-21 00:29:37 +10:00
Jörg Thalheim 0e65936300 Merge pull request #484 from NixOS/dependabot/github_actions/cachix/install-nix-action-18
build(deps): bump cachix/install-nix-action from 17 to 18
2022-10-17 08:26:33 +02:00
dependabot[bot] 17eef273bd build(deps): bump cachix/install-nix-action from 17 to 18
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 17 to 18.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v17...v18)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-17 02:03:11 +00:00
bors[bot]andDavide Dapelo 674d05f9ae Merge #482
482: Add support for ssd to Lenovo ThinkPad T480s r=Mic92 a=dav-dap



Co-authored-by: Davide Dapelo <dav.dap83@gmail.com>
2022-10-15 13:05:31 +00:00
Davide Dapelo 821c9f1d35 Add support for ssd to Lenovo ThinkPad T480s 2022-10-15 13:54:18 +01:00
bors[bot]andEdgar B c8c54d8f0a Merge #481
481: 15arh05: fix tlp scaling governor, add acpi_call r=Mic92 a=Guekka



Co-authored-by: Edgar B <39066502+Guekka@users.noreply.github.com>
2022-10-14 08:00:22 +00:00
Edgar B d3e383e974 15arh05: add acpi_call
This can be used by tools like shaansubbaiah/powercontrol to enable fast charging
2022-10-14 05:38:50 +00:00
Edgar B 322dc8db3e 15arh05: fix tlp scaling governor 2022-10-14 05:36:13 +00:00
bors[bot]andMadoura d92ed98c09 Merge #480
480: starfive/visionfive/v1: Fix README indentation r=Mic92 a=Madouura



Co-authored-by: Madoura <madouura@gmail.com>
2022-10-13 08:20:08 +00:00
Madoura 7ab8eab291 starfive/visionfive/v1: Fix README indentation 2022-10-09 21:44:16 -05:00
bors[bot]andMichael Eden 236ba4df71 Merge #478
478: raspberrypi/4: allow pi libs to detect pi 4 r=Mic92 a=illegalprime



Co-authored-by: Michael Eden <themichaeleden@gmail.com>
2022-10-09 13:16:11 +00:00
bors[bot]andMadoura 85ed160024 Merge #479
479: starfive/visionfive/v1: init r=Mic92 a=Madouura



Co-authored-by: Madoura <madouura@gmail.com>
2022-10-09 13:07:50 +00:00
Madoura 68e08aa56b starfive/visionfive/v1: init 2022-10-08 14:43:06 -05:00
Madoura c156c31e1d readme: add starfive visionfive v1 2022-10-08 10:26:44 -05:00
Madoura 2c14c0f861 flake: add starfive-visionfive-v1 2022-10-08 04:10:18 -05:00
Michael Eden 18c0cbb6b4 raspberrypi/4: allow pi libs to detect pi 4 2022-10-07 10:59:54 -04:00
Jörg Thalheim 47fd702894 Merge pull request #477 from nbraud/gpd/pocket-3
gpd/pocket-3: init
2022-10-06 09:10:00 +02:00
nicoo d5de1c72cf Update README & flake.nix 2022-10-05 19:23:38 +02:00
nicoo 1c535dc049 gpd/pocket-3: Only workaround hidpi module bug on NixOS < 22.11
Assumes NixOS/nixpkgs#194594 gets merged.
2022-10-05 16:45:51 +02:00
nicoo de2ea2beee Add GPD Pocket 3 module to nixos-hardware 2022-10-05 16:45:51 +02:00
411 changed files with 8957 additions and 1093 deletions

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
###### 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
+4 -2
View File
@@ -2,12 +2,14 @@ name: "Test"
on: on:
pull_request: pull_request:
push: push:
branches:
- master
jobs: jobs:
tests: tests:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: cachix/install-nix-action@v17 - uses: cachix/install-nix-action@v26
with: with:
nix_path: nixpkgs=channel:nixos-unstable nix_path: nixpkgs=channel:nixos-unstable
- name: Show nixpkgs version - name: Show nixpkgs version
+16
View File
@@ -0,0 +1,16 @@
queue_rules:
- name: default
merge_conditions:
- check-success=tests
defaults:
actions:
queue:
allow_merging_configuration_change: true
method: rebase
pull_request_rules:
- name: merge using the merge queue
conditions:
- base=master
- label~=merge-queue|dependencies
actions:
queue: {}
+5
View File
@@ -4,5 +4,10 @@ dell/xps/13-9380 @kalbasit
lenovo/thinkpad/x230 @makefu @yegortimoshenko lenovo/thinkpad/x230 @makefu @yegortimoshenko
lenovo/thinkpad/x250 @Mic92 lenovo/thinkpad/x250 @Mic92
pcengines/apu @yegortimoshenko pcengines/apu @yegortimoshenko
pine64/pinebook-pro @tomfitzhenry
pine64/rockpro64 @tomfitzhenry
pine64/star64 @fgaz
purism/librem/13v3 @yegortimoshenko purism/librem/13v3 @yegortimoshenko
system76/darp6 @khumba system76/darp6 @khumba
framework @emiller88
tuxedo/pulse/15/gen2 @trueNAHO
+218 -131
View File
@@ -69,134 +69,221 @@ See [CONTRIBUTING.md](./CONTRIBUTING.md).
See code for all available configurations. See code for all available configurations.
| Model | Path | | Model | Path |
| ------------------------------------------------------------------- | -------------------------------------------------- | |------------------------------------------------------------------------|---------------------------------------------------------|
| [Acer Aspire 4810T](acer/aspire/4810t) | `<nixos-hardware/acer/aspire/4810t>` | | [Acer Aspire 4810T](acer/aspire/4810t) | `<nixos-hardware/acer/aspire/4810t>` |
| [Airis N990](airis/n990) | `<nixos-hardware/airis/n990>` | | [Airis N990](airis/n990) | `<nixos-hardware/airis/n990>` |
| [Apple MacBook Air 3,X](apple/macbook-air/3) | `<nixos-hardware/apple/macbook-air/3>` | | [Apple MacBook Air 3,X](apple/macbook-air/3) | `<nixos-hardware/apple/macbook-air/3>` |
| [Apple MacBook Air 4,X](apple/macbook-air/4) | `<nixos-hardware/apple/macbook-air/4>` | | [Apple MacBook Air 4,X](apple/macbook-air/4) | `<nixos-hardware/apple/macbook-air/4>` |
| [Apple MacBook Air 6,X](apple/macbook-air/6) | `<nixos-hardware/apple/macbook-air/6>` | | [Apple MacBook Air 6,X](apple/macbook-air/6) | `<nixos-hardware/apple/macbook-air/6>` |
| [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/10-1) | `<nixos-hardware/apple/macbook-pro/10-1>` |
| [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/11-5) | `<nixos-hardware/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/12-1) | `<nixos-hardware/apple/macbook-pro/12-1>` |
| [Asus ROG Strix G733QS](asus/rog-strix/g733qs) | `<nixos-hardware/asus/rog-strix/g733qs>` | | [Apple MacBook Pro 14,1](apple/macbook-pro/14-1) | `<nixos-hardware/apple/macbook-pro/14-1>` |
| [Asus ROG Zephyrus G14 GA401](asus/zephyrus/ga401) | `<nixos-hardware/asus/zephyrus/ga401>` | | [Apple Macs with a T2 Chip](apple/t2) | `<nixos-hardware/apple/t2>` |
| [Asus ROG Zephyrus G15 GA503](asus/zephyrus/ga503) | `<nixos-hardware/asus/zephyrus/ga503>` | | [Asus ROG Ally RC71L (2023)](asus/ally/rc71l) | `<nixos-hardware/asus/ally/rc71l>` |
| [Asus TUF FX504GD](asus/fx504gd) | `<nixos-hardware/asus/fx504gd>` | | [Asus ROG Strix G513IM](asus/rog-strix/g513im) | `<nixos-hardware/asus/rog-strix/g513im>` |
| [BeagleBoard PocketBeagle](beagleboard/pocketbeagle) | `<nixos-hardware/beagleboard/pocketbeagle>` | | [Asus ROG Strix G733QS](asus/rog-strix/g733qs) | `<nixos-hardware/asus/rog-strix/g733qs>` |
| [Dell G3 3779](dell/g3/3779) | `<nixos-hardware/dell/g3/3779>` | | [Asus ROG Zephyrus G14 GA401](asus/zephyrus/ga401) | `<nixos-hardware/asus/zephyrus/ga401>` |
| [Dell Inspiron 5509](dell/inspiron/5509) | `<nixos-hardware/dell/inspiron/5509>` | | [Asus ROG Zephyrus G14 GA402](asus/zephyrus/ga402) | `<nixos-hardware/asus/zephyrus/ga402>` |
| [Dell Inspiron 5515](dell/inspiron/5515) | `<nixos-hardware/dell/inspiron/5515>` | | [Asus ROG Zephyrus G14 GA402X* (2023)](asus/zephyrus/ga402x/amdgpu) | `<nixos-hardware/asus/zephyrus/ga402x/amdgpu>` |
| [Dell Inspiron 7405](dell/inspiron/7405) | `<nixos-hardware/dell/inspiron/7405>` | | [Asus ROG Zephyrus G14 GA402X* (2023)](asus/zephyrus/ga402x/nvidia) | `<nixos-hardware/asus/zephyrus/ga402x/nvidia>` |
| [Dell Latitude 3480](dell/latitude/3480) | `<nixos-hardware/dell/latitude/3480>` | | [Asus ROG Zephyrus G15 GA502](asus/zephyrus/ga502) | `<nixos-hardware/asus/zephyrus/ga502>` |
| [Dell Latitude 5520](dell/latitude/5520) | `<nixos-hardware/dell/latitude/5520>` | | [Asus ROG Zephyrus G15 GA503](asus/zephyrus/ga503) | `<nixos-hardware/asus/zephyrus/ga503>` |
| [Dell Latitude 7490](dell/latitude/7490) | `<nixos-hardware/dell/latitude/7490>` | | [Asus ROG Zephyrus M16 GU603H](asus/zephyrus/gu603h) | `<nixos-hardware/asus/zephyrus/gu603h>` |
| [Dell Poweredge R7515](dell/poweredge/r7515) | `<nixos-hardware/dell/poweredge/r7515>` | | [Asus TUF FX504GD](asus/fx504gd) | `<nixos-hardware/asus/fx504gd>` |
| [Dell Precision 5530](dell/precision/5530) | `<nixos-hardware/dell/precision/5530>` | | [Asus TUF FA507RM](asus/fa507rm) | `<nixos-hardware/asus/fa507rm>` |
| [Dell XPS 13 7390](dell/xps/13-7390) | `<nixos-hardware/dell/xps/13-7390>` | | [BeagleBoard PocketBeagle](beagleboard/pocketbeagle) | `<nixos-hardware/beagleboard/pocketbeagle>` |
| [Dell XPS 13 9310](dell/xps/13-9310) | `<nixos-hardware/dell/xps/13-9310>` | | [Deciso DEC series](deciso/dec) | `<nixos-hardware/deciso/dec>` |
| [Dell XPS 13 9343](dell/xps/13-9343) | `<nixos-hardware/dell/xps/13-9343>` | | [Dell G3 3779](dell/g3/3779) | `<nixos-hardware/dell/g3/3779>` |
| [Dell XPS 13 9350](dell/xps/13-9350) | `<nixos-hardware/dell/xps/13-9350>` | | [Dell Inspiron 14 5420](dell/inspiron/14-5420) | `<nixos-hardawre/dell/inspiron/14-5420>` |
| [Dell XPS 13 9360](dell/xps/13-9360) | `<nixos-hardware/dell/xps/13-9360>` | | [Dell Inspiron 5509](dell/inspiron/5509) | `<nixos-hardware/dell/inspiron/5509>` |
| [Dell XPS 13 9370](dell/xps/13-9370) | `<nixos-hardware/dell/xps/13-9370>` | | [Dell Inspiron 5515](dell/inspiron/5515) | `<nixos-hardware/dell/inspiron/5515>` |
| [Dell XPS 13 9380](dell/xps/13-9380) | `<nixos-hardware/dell/xps/13-9380>` | | [Dell Inspiron 7405](dell/inspiron/7405) | `<nixos-hardware/dell/inspiron/7405>` |
| [Dell XPS 15 7590](dell/xps/15-7590) | `<nixos-hardware/dell/xps/15-7590>` | | [Dell Latitude 3340](dell/latitude/3340) | `<nixos-hardware/dell/latitude/3340>` |
| [Dell XPS 15 9500, nvidia](dell/xps/15-9500/nvidia) | `<nixos-hardware/dell/xps/15-9500/nvidia>` | | [Dell Latitude 3480](dell/latitude/3480) | `<nixos-hardware/dell/latitude/3480>` |
| [Dell XPS 15 9500](dell/xps/15-9500) | `<nixos-hardware/dell/xps/15-9500>` | | [Dell Latitude 5520](dell/latitude/5520) | `<nixos-hardware/dell/latitude/5520>` |
| [Dell XPS 15 9550, nvidia](dell/xps/15-9550/nvidia) | `<nixos-hardware/dell/xps/15-9550/nvidia>` | | [Dell Latitude 7280](dell/latitude/7280) | `<nixos-hardware/dell/latitude/7280>` |
| [Dell XPS 15 9550](dell/xps/15-9550) | `<nixos-hardware/dell/xps/15-9550>` | | [Dell Latitude 7390](dell/latitude/7390) | `<nixos-hardware/dell/latitude/7390>` |
| [Dell XPS 15 9560, intel only](dell/xps/15-9560/intel) | `<nixos-hardware/dell/xps/15-9560/intel>` | | [Dell Latitude 7430](dell/latitude/7430) | `<nixos-hardware/dell/latitude/7430>` |
| [Dell XPS 15 9560, nvidia only](dell/xps/15-9560/nvidia) | `<nixos-hardware/dell/xps/15-9560/nvidia>` | | [Dell Latitude 7490](dell/latitude/7490) | `<nixos-hardware/dell/latitude/7490>` |
| [Dell XPS 15 9560](dell/xps/15-9560) | `<nixos-hardware/dell/xps/15-9560>` | | [Dell Poweredge R7515](dell/poweredge/r7515) | `<nixos-hardware/dell/poweredge/r7515>` |
| [Dell XPS 17 9700, intel](dell/xps/17-9700/intel) | `<nixos-hardware/dell/xps/17-9700/intel` | | [Dell Precision 3541](dell/precision/3541) | `<nixos-hardware/dell/precision/3541>` |
| [Dell XPS 17 9700, nvidia](dell/xps/17-9700/nvidia) | `<nixos-hardware/dell/xps/17-9700/nvidia>` | | [Dell Precision 5530](dell/precision/5530) | `<nixos-hardware/dell/precision/5530>` |
| [Dell XPS 17 9710, intel only](dell/xps/17-9710/intel) | `<nixos-hardware/dell/xps/17-9710/intel>` | | [Dell XPS 13 7390](dell/xps/13-7390) | `<nixos-hardware/dell/xps/13-7390>` |
| [Dell XPS E7240](dell/e7240) | `<nixos-hardware/dell/e7240>` | | [Dell XPS 13 9300](dell/xps/13-9300) | `<nixos-hardware/dell/xps/13-9300>` |
| [Framework](framework) | `<nixos-hardware/framework>` | | [Dell XPS 13 9310](dell/xps/13-9310) | `<nixos-hardware/dell/xps/13-9310>` |
| [Framework 12th Gen Intel Core](framework/12th-gen-intel) | `<nixos-hardware/framework/12th-gen-intel>` | | [Dell XPS 13 9333](dell/xps/13-9333) | `<nixos-hardware/dell/xps/13-9333>` |
| [FriendlyARM NanoPC-T4](friendlyarm/nanopc-t4) | `<nixos-hardware/friendlyarm/nanopc-t4>` | | [Dell XPS 13 9343](dell/xps/13-9343) | `<nixos-hardware/dell/xps/13-9343>` |
| [GPD MicroPC](gpd/micropc) | `<nixos-hardware/gpd/micropc>` | | [Dell XPS 13 9350](dell/xps/13-9350) | `<nixos-hardware/dell/xps/13-9350>` |
| [Google Pixelbook](google/pixelbook) | `<nixos-hardware/google/pixelbook>` | | [Dell XPS 13 9360](dell/xps/13-9360) | `<nixos-hardware/dell/xps/13-9360>` |
| [HP Elitebook 2560p](hp/elitebook/2560p) | `<nixos-hardware/hp/elitebook/2560p>` | | [Dell XPS 13 9370](dell/xps/13-9370) | `<nixos-hardware/dell/xps/13-9370>` |
| [Intel NUC 8i7BEH](intel/nuc/8i7beh/) | `<nixos-hardware/intel/nuc/8i7beh>` | | [Dell XPS 13 9380](dell/xps/13-9380) | `<nixos-hardware/dell/xps/13-9380>` |
| [Lenovo IdeaPad Gaming 3 15arh05](lenovo/ideapad/15arh05) | `<nixos-hardware/lenovo/ideapad/15arh05>` | | [Dell XPS 15 7590, nvidia](dell/xps/15-7590/nvidia) | `<nixos-hardware/dell/xps/15-7590/nvidia>` |
| [Lenovo IdeaPad Z510](lenovo/ideapad/z510) | `<nixos-hardware/lenovo/ideapad/z510>` | | [Dell XPS 15 7590](dell/xps/15-7590) | `<nixos-hardware/dell/xps/15-7590>` |
| [Lenovo Legion 5 15arh05h](lenovo/legion/15arh05h) | `<nixos-hardware/lenovo/legion/15arh05h>` | | [Dell XPS 15 9500, nvidia](dell/xps/15-9500/nvidia) | `<nixos-hardware/dell/xps/15-9500/nvidia>` |
| [Lenovo Legion 7 Slim 15ach6](lenovo/legion/15ach6) | `<nixos-hardware/lenovo/legion/15ach6>` | | [Dell XPS 15 9500](dell/xps/15-9500) | `<nixos-hardware/dell/xps/15-9500>` |
| [Lenovo ThinkPad E14 (AMD)](lenovo/thinkpad/e14/amd) | `<nixos-hardware/lenovo/thinkpad/e14/amd>` | | [Dell XPS 15 9510, nvidia](dell/xps/15-9510/nvidia) | `<nixos-hardware/dell/xps/15-9510/nvidia>` |
| [Lenovo ThinkPad E14 (Intel)](lenovo/thinkpad/e14/intel) | `<nixos-hardware/lenovo/thinkpad/e14/intel>` | | [Dell XPS 15 9510](dell/xps/15-9510) | `<nixos-hardware/dell/xps/15-9510>` |
| [Lenovo ThinkPad E470](lenovo/thinkpad/e470) | `<nixos-hardware/lenovo/thinkpad/e470>` | | [Dell XPS 15 9520, nvidia](dell/xps/15-9520/nvidia) | `<nixos-hardware/dell/xps/15-9520/nvidia>` |
| [Lenovo ThinkPad E495](lenovo/thinkpad/e495) | `<nixos-hardware/lenovo/thinkpad/e495>` | | [Dell XPS 15 9520](dell/xps/15-9520) | `<nixos-hardware/dell/xps/15-9520>` |
| [Lenovo ThinkPad L13 Yoga](lenovo/thinkpad/l13/yoga) | `<nixos-hardware/lenovo/thinkpad/l13/yoga>` | | [Dell XPS 15 9550, nvidia](dell/xps/15-9550/nvidia) | `<nixos-hardware/dell/xps/15-9550/nvidia>` |
| [Lenovo ThinkPad L13](lenovo/thinkpad/l13) | `<nixos-hardware/lenovo/thinkpad/l13>` | | [Dell XPS 15 9550](dell/xps/15-9550) | `<nixos-hardware/dell/xps/15-9550>` |
| [Lenovo ThinkPad L14 (AMD)](lenovo/thinkpad/l14/amd) | `<nixos-hardware/lenovo/thinkpad/l14/amd>` | | [Dell XPS 15 9560, intel only](dell/xps/15-9560/intel) | `<nixos-hardware/dell/xps/15-9560/intel>` |
| [Lenovo ThinkPad L14 (Intel)](lenovo/thinkpad/l14/intel) | `<nixos-hardware/lenovo/thinkpad/l14/intel>` | | [Dell XPS 15 9560, nvidia only](dell/xps/15-9560/nvidia) | `<nixos-hardware/dell/xps/15-9560/nvidia>` |
| [Lenovo ThinkPad P1 Gen 3](lenovo/thinkpad/p1/3th-gen) | `<nixos-hardware/lenovo/thinkpad/p1/3th-gen>` | | [Dell XPS 15 9560](dell/xps/15-9560) | `<nixos-hardware/dell/xps/15-9560>` |
| [Lenovo ThinkPad P14s AMD Gen 2](lenovo/thinkpad/p14s/amd/gen2) | `<nixos-hardware/lenovo/thinkpad/p14s/amd/gen2>` | | [Dell XPS 15 9570, intel only](dell/xps/15-9570/intel) | `<nixos-hardware/dell/xps/15-9570/intel>` |
| [Lenovo ThinkPad P16s AMD Gen 1](lenovo/thinkpad/p16s/amd/gen1) | `<nixos-hardware/lenovo/thinkpad/p16s/amd/gen1>` | | [Dell XPS 15 9570, nvidia](dell/xps/15-9570/nvidia) | `<nixos-hardware/dell/xps/15-9570/nvidia>` |
| [Lenovo ThinkPad P1](lenovo/thinkpad/p1) | `<nixos-hardware/lenovo/thinkpad/p1>` | | [Dell XPS 15 9570](dell/xps/15-9570) | `<nixos-hardware/dell/xps/15-9570>` |
| [Lenovo ThinkPad P50](lenovo/thinkpad/p50) | `<nixos-hardware/lenovo/thinkpad/p50>` | | [Dell XPS 17 9700, intel](dell/xps/17-9700/intel) | `<nixos-hardware/dell/xps/17-9700/intel` |
| [Lenovo ThinkPad P51](lenovo/thinkpad/p51) | `<nixos-hardware/lenovo/thinkpad/p51>` | | [Dell XPS 17 9700, nvidia](dell/xps/17-9700/nvidia) | `<nixos-hardware/dell/xps/17-9700/nvidia>` |
| [Lenovo ThinkPad P52](lenovo/thinkpad/p52) | `<nixos-hardware/lenovo/thinkpad/p52>` | | [Dell XPS 17 9710, intel only](dell/xps/17-9710/intel) | `<nixos-hardware/dell/xps/17-9710/intel>` |
| [Lenovo ThinkPad P53](lenovo/thinkpad/p53) | `<nixos-hardware/lenovo/thinkpad/p53>` | | [Dell XPS E7240](dell/e7240) | `<nixos-hardware/dell/e7240>` |
| [Lenovo ThinkPad T14 AMD Gen 1](lenovo/thinkpad/t14/amd/gen1) | `<nixos-hardware/lenovo/thinkpad/t14/amd/gen1>` | | [Framework 11th Gen Intel Core](framework/13-inch/11th-gen-intel) | `<nixos-hardware/framework/13-inch/11th-gen-intel>` |
| [Lenovo ThinkPad T14 AMD Gen 2](lenovo/thinkpad/t14/amd/gen2) | `<nixos-hardware/lenovo/thinkpad/t14/amd/gen2>` | | [Framework 12th Gen Intel Core](framework/13-inch/12th-gen-intel) | `<nixos-hardware/framework/13-inch/12th-gen-intel>` |
| [Lenovo ThinkPad T14 AMD Gen 3](lenovo/thinkpad/t14/amd/gen3) | `<nixos-hardware/lenovo/thinkpad/t14/amd/gen3>` | | [Framework 13th Gen Intel Core](framework/13-inch/13th-gen-intel) | `<nixos-hardware/framework/13-inch/13th-gen-intel>` |
| [Lenovo ThinkPad T14](lenovo/thinkpad/t14) | `<nixos-hardware/lenovo/thinkpad/t14>` | | [Framework 13 AMD Ryzen 7040 Series](framework/13-inch/7040-amd) | `<nixos-hardware/framework/13-inch/7040-amd>` |
| [Lenovo ThinkPad T14s AMD Gen 1](lenovo/thinkpad/t14s/amd/gen1) | `<nixos-hardware/lenovo/thinkpad/t14s/amd/gen1>` | | [FriendlyARM NanoPC-T4](friendlyarm/nanopc-t4) | `<nixos-hardware/friendlyarm/nanopc-t4>` |
| [Lenovo ThinkPad T14s](lenovo/thinkpad/t14s) | `<nixos-hardware/lenovo/thinkpad/t14s>` | | [FriendlyARM NanoPi R5s](friendlyarm/nanopi-r5s) | `<nixos-hardware/friendlyarm/nanopi-r5s>` |
| [Lenovo ThinkPad T410](lenovo/thinkpad/t410) | `<nixos-hardware/lenovo/thinkpad/t410>` | | [Focus M2 Gen 1](focus/m2/gen1) | `<nixos-hardware/focus/m2/gen1>` |
| [Lenovo ThinkPad T420](lenovo/thinkpad/t420) | `<nixos-hardware/lenovo/thinkpad/t420>` | | [Gigabyte B550](gigabyte/b550) | `<nixos-hardware/gigabyte/b550>` |
| [Lenovo ThinkPad T430](lenovo/thinkpad/t430) | `<nixos-hardware/lenovo/thinkpad/t430>` | | [GPD MicroPC](gpd/micropc) | `<nixos-hardware/gpd/micropc>` |
| [Lenovo ThinkPad T440p](lenovo/thinkpad/t440p) | `<nixos-hardware/lenovo/thinkpad/t440p>` | | [GPD P2 Max](gpd/p2-max) | `<nixos-hardware/gpd/p2-max>` |
| [Lenovo ThinkPad T440s](lenovo/thinkpad/t440s) | `<nixos-hardware/lenovo/thinkpad/t440s>` | | [GPD Pocket 3](gpd/pocket-3) | `<nixos-hardware/gpd/pocket-3>` |
| [Lenovo ThinkPad T450s](lenovo/thinkpad/t450s) | `<nixos-hardware/lenovo/thinkpad/t450s>` | | [GPD WIN 2](gpd/win-2) | `<nixos-hardware/gpd/win-2>` |
| [Lenovo ThinkPad T460](lenovo/thinkpad/t460) | `<nixos-hardware/lenovo/thinkpad/t460>` | | [GPD WIN Max 2 2023](gpd/win-max-2/2023) | `<nixos-hardware/gpd/win-max-2/2023>` |
| [Lenovo ThinkPad T460p](lenovo/thinkpad/t460p) | `<nixos-hardware/lenovo/thinkpad/t460p>` | | [Google Pixelbook](google/pixelbook) | `<nixos-hardware/google/pixelbook>` |
| [Lenovo ThinkPad T460s](lenovo/thinkpad/t460s) | `<nixos-hardware/lenovo/thinkpad/t460s>` | | [HP Elitebook 2560p](hp/elitebook/2560p) | `<nixos-hardware/hp/elitebook/2560p>` |
| [Lenovo ThinkPad T470s](lenovo/thinkpad/t470s) | `<nixos-hardware/lenovo/thinkpad/t470s>` | | [HP Elitebook 845g7](hp/elitebook/845/g7) | `<nixos-hardware/hp/elitebook/845/g7>` |
| [Lenovo ThinkPad T480](lenovo/thinkpad/t480) | `<nixos-hardware/lenovo/thinkpad/t480>` | | [HP Elitebook 845g8](hp/elitebook/845/g8) | `<nixos-hardware/hp/elitebook/845/g8>` |
| [Lenovo ThinkPad T480s](lenovo/thinkpad/t480s) | `<nixos-hardware/lenovo/thinkpad/t480s>` | | [HP Elitebook 845g9](hp/elitebook/845/g9) | `<nixos-hardware/hp/elitebook/845/g9>` |
| [Lenovo ThinkPad T490](lenovo/thinkpad/t490) | `<nixos-hardware/lenovo/thinkpad/t490>` | | [HP Notebook 14-df0023](hp/notebook/14-df0023) | `<nixos-hardware/hp/notebook/14-df0023>` |
| [Lenovo ThinkPad T495](lenovo/thinkpad/t495) | `<nixos-hardware/lenovo/thinkpad/t495>` | | [i.MX8QuadMax Multisensory Enablement Kit](nxp/imx8qm-mek/) | `<nixos-hardware/nxp/imx8qm-mek>` |
| [Lenovo ThinkPad T550](lenovo/thinkpad/t550) | `<nixos-hardware/lenovo/thinkpad/t550>` | | [Intel NUC 8i7BEH](intel/nuc/8i7beh/) | `<nixos-hardware/intel/nuc/8i7beh>` |
| [Lenovo ThinkPad T590](lenovo/thinkpad/t590) | `<nixos-hardware/lenovo/thinkpad/t590>` | | [Lenovo IdeaPad Gaming 3 15arh05](lenovo/ideapad/15arh05) | `<nixos-hardware/lenovo/ideapad/15arh05>` |
| [Lenovo ThinkPad X1 Yoga](lenovo/thinkpad/x1/yoga) | `<nixos-hardware/lenovo/thinkpad/x1/yoga>` | | [Lenovo IdeaPad Z510](lenovo/ideapad/z510) | `<nixos-hardware/lenovo/ideapad/z510>` |
| [Lenovo ThinkPad X1 (6th Gen)](lenovo/thinkpad/x1/6th-gen) | `<nixos-hardware/lenovo/thinkpad/x1/6th-gen>` | | [Lenovo IdeaPad Slim 5](lenovo/ideapad/slim-5) | `<nixos-hardware/lenovo/ideapad/slim-5>` |
| [Lenovo ThinkPad X1 (7th Gen)](lenovo/thinkpad/x1/7th-gen) | `<nixos-hardware/lenovo/thinkpad/x1/7th-gen>` | | [Lenovo IdeaPad S145 15api](lenovo/ideapad/s145-15api) | `<nixos-hardware/lenovo/ideapad/s145-15api>` |
| [Lenovo ThinkPad X1 (9th Gen)](lenovo/thinkpad/x1/9th-gen) | `<nixos-hardware/lenovo/thinkpad/x1/9th-gen>` | | [Lenovo Legion 5 15arh05h](lenovo/legion/15arh05h) | `<nixos-hardware/lenovo/legion/15arh05h>` |
| [Lenovo ThinkPad X1 Extreme Gen 2](lenovo/thinkpad/x1-extreme/gen2) | `<nixos-hardware/lenovo/thinkpad/x1-extreme/gen2>` | | [Lenovo Legion 7 Slim 15ach6](lenovo/legion/15ach6) | `<nixos-hardware/lenovo/legion/15ach6>` |
| [Lenovo ThinkPad X1 Extreme Gen 4](lenovo/thinkpad/x1-extreme/gen4) | `<nixos-hardware/lenovo/thinkpad/x1-extreme/gen4>` | | [Lenovo Legion 5 Pro 16ach6h](lenovo/legion/16ach6h) | `<nixos-hardware/lenovo/legion/16ach6h>` |
| [Lenovo ThinkPad X13 Yoga](lenovo/thinkpad/x13/yoga) | `<nixos-hardware/lenovo/thinkpad/x13/yoga>` | | [Lenovo Legion 5 Pro 16ach6h (Hybrid)](lenovo/legion/16ach6h/hybrid) | `<nixos-hardware/lenovo/legion/16ach6h/hybrid>` |
| [Lenovo ThinkPad X13](lenovo/thinkpad/x13) | `<nixos-hardware/lenovo/thinkpad/x13>` | | [Lenovo Legion 5 Pro 16ach6h (Nvidia)](lenovo/legion/16ach6h/nvidia) | `<nixos-hardware/lenovo/legion/16ach6h/nvidia>` |
| [Lenovo ThinkPad X140e](lenovo/thinkpad/x140e) | `<nixos-hardware/lenovo/thinkpad/x140e>` | | [Lenovo Legion 7 16achg6 (Hybrid)](lenovo/legion/16achg6/hybrid) | `<nixos-hardware/lenovo/legion/16achg6/hybrid>` |
| [Lenovo ThinkPad X200s](lenovo/thinkpad/x200s) | `<nixos-hardware/lenovo/thinkpad/x200s>` | | [Lenovo Legion 7 16achg6 (Nvidia)](lenovo/legion/16achg6/nvidia) | `<nixos-hardware/lenovo/legion/16achg6/nvidia>` |
| [Lenovo ThinkPad X220](lenovo/thinkpad/x220) | `<nixos-hardware/lenovo/thinkpad/x220>` | | [Lenovo Legion 7i Pro 16irx8h (Intel)](lenovo/legion/16irx8h) | `<nixos-hardware/lenovo/legion/16irx8h>` |
| [Lenovo ThinkPad X230](lenovo/thinkpad/x230) | `<nixos-hardware/lenovo/thinkpad/x230>` | | [Lenovo Legion Slim 7 Gen 7 (AMD)](lenovo/legion/16arha7/) | `<nixos-hardware/lenovo/legion/16arha7>` |
| [Lenovo ThinkPad X250](lenovo/thinkpad/x250) | `<nixos-hardware/lenovo/thinkpad/x250>` | | [Lenovo Legion Y530 15ICH](lenovo/legion/15ich) | `<nixos-hardware/lenovo/legion/15ich>` |
| [Lenovo ThinkPad X260](lenovo/thinkpad/x260) | `<nixos-hardware/lenovo/thinkpad/x260>` | | [Lenovo ThinkPad E14 (AMD)](lenovo/thinkpad/e14/amd) | `<nixos-hardware/lenovo/thinkpad/e14/amd>` |
| [Lenovo ThinkPad X270](lenovo/thinkpad/x270) | `<nixos-hardware/lenovo/thinkpad/x270>` | | [Lenovo ThinkPad E14 (Intel)](lenovo/thinkpad/e14/intel) | `<nixos-hardware/lenovo/thinkpad/e14/intel>` |
| [Lenovo ThinkPad X280](lenovo/thinkpad/x280) | `<nixos-hardware/lenovo/thinkpad/x280>` | | [Lenovo ThinkPad E470](lenovo/thinkpad/e470) | `<nixos-hardware/lenovo/thinkpad/e470>` |
| [Lenovo ThinkPad Z Series](lenovo/thinkpad/z) | `<nixos-hardware/lenovo/thinkpad/z>` | | [Lenovo ThinkPad E495](lenovo/thinkpad/e495) | `<nixos-hardware/lenovo/thinkpad/e495>` |
| [Lenovo ThinkPad Z13](lenovo/thinkpad/z/z13) | `<nixos-hardware/lenovo/thinkpad/z/z13>` | | [Lenovo ThinkPad L13 Yoga](lenovo/thinkpad/l13/yoga) | `<nixos-hardware/lenovo/thinkpad/l13/yoga>` |
| [MSI GS60 2QE](msi/gs60) | `<nixos-hardware/msi/gs60>` | | [Lenovo ThinkPad L13](lenovo/thinkpad/l13) | `<nixos-hardware/lenovo/thinkpad/l13>` |
| [MSI GL62/CX62](msi/gl62) | `<nixos-hardware/msi/gl62>` | | [Lenovo ThinkPad L14 (AMD)](lenovo/thinkpad/l14/amd) | `<nixos-hardware/lenovo/thinkpad/l14/amd>` |
| [Microsoft Surface Pro 3](microsoft/surface-pro/3) | `<nixos-hardware/microsoft/surface-pro/3>` | | [Lenovo ThinkPad L14 (Intel)](lenovo/thinkpad/l14/intel) | `<nixos-hardware/lenovo/thinkpad/l14/intel>` |
| [Microsoft Surface Range](microsoft/surface) | `<nixos-hardware/microsoft/surface>` | | [Lenovo ThinkPad P1 Gen 3](lenovo/thinkpad/p1/3th-gen) | `<nixos-hardware/lenovo/thinkpad/p1/3th-gen>` |
| [Omen en00015p](omen/en00015p) | `<nixos-hardware/omen/en00015p>` | | [Lenovo ThinkPad P14s AMD Gen 2](lenovo/thinkpad/p14s/amd/gen2) | `<nixos-hardware/lenovo/thinkpad/p14s/amd/gen2>` |
| [One-Netbook OneNetbook 4](onenetbook/4) | `<nixos-hardware/onenetbook/4>` | | [Lenovo ThinkPad P16s AMD Gen 1](lenovo/thinkpad/p16s/amd/gen1) | `<nixos-hardware/lenovo/thinkpad/p16s/amd/gen1>` |
| [PC Engines APU](pcengines/apu) | `<nixos-hardware/pcengines/apu>` | | [Lenovo ThinkPad P1](lenovo/thinkpad/p1) | `<nixos-hardware/lenovo/thinkpad/p1>` |
| [PINE64 Pinebook Pro](pine64/pinebook-pro/) | `<nixos-hardware/pine64/pinebook-pro>` | | [Lenovo ThinkPad P50](lenovo/thinkpad/p50) | `<nixos-hardware/lenovo/thinkpad/p50>` |
| [Purism Librem 13v3](purism/librem/13v3) | `<nixos-hardware/purism/librem/13v3>` | | [Lenovo ThinkPad P51](lenovo/thinkpad/p51) | `<nixos-hardware/lenovo/thinkpad/p51>` |
| [Purism Librem 15v3](purism/librem/13v3) | `<nixos-hardware/purism/librem/15v3>` | | [Lenovo ThinkPad P52](lenovo/thinkpad/p52) | `<nixos-hardware/lenovo/thinkpad/p52>` |
| [Raspberry Pi 2](raspberry-pi/2) | `<nixos-hardware/raspberry-pi/2>` | | [Lenovo ThinkPad P53](lenovo/thinkpad/p53) | `<nixos-hardware/lenovo/thinkpad/p53>` |
| [Raspberry Pi 4](raspberry-pi/4) | `<nixos-hardware/raspberry-pi/4>` | | [Lenovo ThinkPad T14 AMD Gen 1](lenovo/thinkpad/t14/amd/gen1) | `<nixos-hardware/lenovo/thinkpad/t14/amd/gen1>` |
| [Samsung Series 9 NP900X3C](samsung/np900x3c) | `<nixos-hardware/samsung/np900x3c>` | | [Lenovo ThinkPad T14 AMD Gen 2](lenovo/thinkpad/t14/amd/gen2) | `<nixos-hardware/lenovo/thinkpad/t14/amd/gen2>` |
| [Supermicro A1SRi-2758F](supermicro/a1sri-2758f) | `<nixos-hardware/supermicro/a1sri-2758f>` | | [Lenovo ThinkPad T14 AMD Gen 3](lenovo/thinkpad/t14/amd/gen3) | `<nixos-hardware/lenovo/thinkpad/t14/amd/gen3>` |
| [Supermicro M11SDV-8C-LN4F](supermicro/m11sdv-8c-ln4f) | `<nixes-hardware/supermicro/m11sdv-8c-ln4f>` | | [Lenovo ThinkPad T14](lenovo/thinkpad/t14) | `<nixos-hardware/lenovo/thinkpad/t14>` |
| [Supermicro X10SLL-F](supermicro/x10sll-f) | `<nixos-hardware/supermicro/x10sll-f>` | | [Lenovo ThinkPad T14s AMD Gen 1](lenovo/thinkpad/t14s/amd/gen1) | `<nixos-hardware/lenovo/thinkpad/t14s/amd/gen1>` |
| [Supermicro X12SCZ-TLN4F](supermicro/x12scz-tln4f) | `<nixos-hardware/supermicro/x12scz-tln4f>` | | [Lenovo ThinkPad T14s](lenovo/thinkpad/t14s) | `<nixos-hardware/lenovo/thinkpad/t14s>` |
| [System76 (generic)](system76) | `<nixos-hardware/system76>` | | [Lenovo ThinkPad T410](lenovo/thinkpad/t410) | `<nixos-hardware/lenovo/thinkpad/t410>` |
| [System76 Darter Pro 6](system76/darp6) | `<nixos-hardware/system76/darp6>` | | [Lenovo ThinkPad T420](lenovo/thinkpad/t420) | `<nixos-hardware/lenovo/thinkpad/t420>` |
| [Toshiba Chromebook 2 `swanky`](toshiba/swanky) | `<nixos-hardware/toshiba/swanky>` | | [Lenovo ThinkPad T430](lenovo/thinkpad/t430) | `<nixos-hardware/lenovo/thinkpad/t430>` |
| [Tuxedo InfinityBook v4](tuxedo/infinitybook/v4) | `<nixos-hardware/tuxedo/infinitybook/v4>` | | [Lenovo ThinkPad T440p](lenovo/thinkpad/t440p) | `<nixos-hardware/lenovo/thinkpad/t440p>` |
| [Lenovo ThinkPad T440s](lenovo/thinkpad/t440s) | `<nixos-hardware/lenovo/thinkpad/t440s>` |
| [Lenovo ThinkPad T450s](lenovo/thinkpad/t450s) | `<nixos-hardware/lenovo/thinkpad/t450s>` |
| [Lenovo ThinkPad T460](lenovo/thinkpad/t460) | `<nixos-hardware/lenovo/thinkpad/t460>` |
| [Lenovo ThinkPad T460p](lenovo/thinkpad/t460p) | `<nixos-hardware/lenovo/thinkpad/t460p>` |
| [Lenovo ThinkPad T460s](lenovo/thinkpad/t460s) | `<nixos-hardware/lenovo/thinkpad/t460s>` |
| [Lenovo ThinkPad T470s](lenovo/thinkpad/t470s) | `<nixos-hardware/lenovo/thinkpad/t470s>` |
| [Lenovo ThinkPad T480](lenovo/thinkpad/t480) | `<nixos-hardware/lenovo/thinkpad/t480>` |
| [Lenovo ThinkPad T480s](lenovo/thinkpad/t480s) | `<nixos-hardware/lenovo/thinkpad/t480s>` |
| [Lenovo ThinkPad T490](lenovo/thinkpad/t490) | `<nixos-hardware/lenovo/thinkpad/t490>` |
| [Lenovo ThinkPad T495](lenovo/thinkpad/t495) | `<nixos-hardware/lenovo/thinkpad/t495>` |
| [Lenovo ThinkPad T520](lenovo/thinkpad/t520) | `<nixos-hardware/lenovo/thinkpad/t520>` |
| [Lenovo ThinkPad T550](lenovo/thinkpad/t550) | `<nixos-hardware/lenovo/thinkpad/t550>` |
| [Lenovo ThinkPad T590](lenovo/thinkpad/t590) | `<nixos-hardware/lenovo/thinkpad/t590>` |
| [Lenovo ThinkPad W520](lenovo/thinkpad/w520) | `<nixos-hardware/lenovo/thinkpad/w520>` |
| [Lenovo ThinkPad X1 Yoga](lenovo/thinkpad/x1/yoga) | `<nixos-hardware/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 (6th Gen)](lenovo/thinkpad/x1/6th-gen) | `<nixos-hardware/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 (9th Gen)](lenovo/thinkpad/x1/9th-gen) | `<nixos-hardware/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 (11th Gen)](lenovo/thinkpad/x1/11th-gen) | `<nixos-hardware/lenovo/thinkpad/x1/11th-gen>` |
| [Lenovo ThinkPad X1 Extreme Gen 2](lenovo/thinkpad/x1-extreme/gen2) | `<nixos-hardware/lenovo/thinkpad/x1-extreme/gen2>` |
| [Lenovo ThinkPad X1 Extreme Gen 4](lenovo/thinkpad/x1-extreme/gen4) | `<nixos-hardware/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 X13 Yoga](lenovo/thinkpad/x13/yoga) | `<nixos-hardware/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 (Intel)](lenovo/thinkpad/x13/intel) | `<nixos-hardware/lenovo/thinkpad/x13/intel>` |
| [Lenovo ThinkPad X13 (AMD)](lenovo/thinkpad/x13/amd) | `<nixos-hardware/lenovo/thinkpad/x13/amd>` |
| [Lenovo ThinkPad X140e](lenovo/thinkpad/x140e) | `<nixos-hardware/lenovo/thinkpad/x140e>` |
| [Lenovo ThinkPad X200s](lenovo/thinkpad/x200s) | `<nixos-hardware/lenovo/thinkpad/x200s>` |
| [Lenovo ThinkPad X220](lenovo/thinkpad/x220) | `<nixos-hardware/lenovo/thinkpad/x220>` |
| [Lenovo ThinkPad X230](lenovo/thinkpad/x230) | `<nixos-hardware/lenovo/thinkpad/x230>` |
| [Lenovo ThinkPad X250](lenovo/thinkpad/x250) | `<nixos-hardware/lenovo/thinkpad/x250>` |
| [Lenovo ThinkPad X260](lenovo/thinkpad/x260) | `<nixos-hardware/lenovo/thinkpad/x260>` |
| [Lenovo ThinkPad X270](lenovo/thinkpad/x270) | `<nixos-hardware/lenovo/thinkpad/x270>` |
| [Lenovo ThinkPad X280](lenovo/thinkpad/x280) | `<nixos-hardware/lenovo/thinkpad/x280>` |
| [Lenovo ThinkPad X390](lenovo/thinkpad/x390) | `<nixos-hardware/lenovo/thinkpad/x390>` |
| [Lenovo ThinkPad Z Series](lenovo/thinkpad/z) | `<nixos-hardware/lenovo/thinkpad/z>` |
| [Lenovo ThinkPad Z13](lenovo/thinkpad/z/z13) | `<nixos-hardware/lenovo/thinkpad/z/z13>` |
| [LENOVO Yoga 6 13ALC6 82ND](lenovo/yoga/6/13ALC6) | `<nixos-hardware/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 Slim 7 Pro-X 14ARH7 82ND](lenovo/yoga/7/14ARH7/nvidia) | `<nixos-hardware/lenovo/yoga/7/14ARH7/nvidia>` |
| [LENOVO Yoga 7 Slim Gen8](lenovo/yoga/7/slim/gen8) | `<nixos-hardware/lenovo/yoga/7/slim/gen8>` |
| [MSI B550-A PRO](msi/b550-a-pro) | `<nixos-hardware/msi/b550-a-pro>` |
| [MSI B350 TOMAHAWK](msi/b350-tomahawk) | `<nixos-hardware/msi/b350-tomahawk>` |
| [MSI GS60 2QE](msi/gs60) | `<nixos-hardware/msi/gs60>` |
| [MSI GL62/CX62](msi/gl62) | `<nixos-hardware/msi/gl62>` |
| [Microchip Icicle Kit](microchip/icicle-kit) | `<nixos-hardware/microchip/icicle-kit>` |
| [Microsoft Surface Go](microsoft/surface/surface-go) | `<nixos-hardware/microsoft/surface/surface-go>` |
| [Microsoft Surface Pro (Intel)](microsoft/surface/surface-pro-intel) | `<nixos-hardware/microsoft/surface/surface-pro-intel>` |
| [Microsoft Surface Laptop (AMD)](microsoft/surface/surface-laptop-amd) | `<nixos-hardware/microsoft/surface/surface-laptop-amd>` |
| [Microsoft Surface Range (Common Modules)](microsoft/surface/common) | `<nixos-hardware/microsoft/surface/common>` |
| [Microsoft Surface Pro 3](microsoft/surface-pro/3) | `<nixos-hardware/microsoft/surface-pro/3>` |
| [Morefine M600](morefine/m600) | `<nixos-hardware/morefine/m600>` |
| [NXP iMX8 MPlus Evaluation Kit](nxp/imx8mp-evk) | `<nixos-hardware/nxp/imx8mp-evk>` |
| [NXP iMX8 MQuad Evaluation Kit](nxp/imx8mq-evk) | `<nixos-hardware/nxp/imx8mq-evk>` |
| [Hardkernel Odroid HC4](hardkernel/odroid-hc4/default.nix) | `<nixos-hardware/hardkernel/odroid-hc4>` |
| [Hardkernel Odroid H3](hardkernel/odroid-h3/default.nix) | `<nixos-hardware/hardkernel/odroid-h3>` |
| [Omen 15-en0010ca](omen/15-en0010ca) | `<nixos-hardware/omen/15-en0010ca>` |
| [Omen 16-n0005ne](omen/16-n0005ne) | `<nixos-hardware/omen/16-n0005ne>` |
| [Omen 15-en1007sa](omen/15-en1007sa) | `<nixos-hardware/omen/15-en1007sa>` |
| [Omen 15-en0002np](omen/15-en0002np) | `<nixos-hardware/omen/15-en0002np>` |
| [One-Netbook OneNetbook 4](onenetbook/4) | `<nixos-hardware/onenetbook/4>` |
| [Panasonic Let's Note CF-LX4](panasonic/letsnote/cf-lx4) | `<nixos-hardware/panasonic/letsnote/cf-lx4>` |
| [PC Engines APU](pcengines/apu) | `<nixos-hardware/pcengines/apu>` |
| [PINE64 Pinebook Pro](pine64/pinebook-pro/) | `<nixos-hardware/pine64/pinebook-pro>` |
| [PINE64 RockPro64](pine64/rockpro64/) | `<nixos-hardware/pine64/rockpro64>` |
| [PINE64 STAR64](pine64/star64/) | `<nixos-hardware/pine64/star64>` |
| [Protectli VP4670](protectli/vp4670/) | `<nixos-hardware/protectli/vp4670>` |
| [Purism Librem 13v3](purism/librem/13v3) | `<nixos-hardware/purism/librem/13v3>` |
| [Purism Librem 15v3](purism/librem/13v3) | `<nixos-hardware/purism/librem/15v3>` |
| [Purism Librem 5r4](purism/librem/5r4) | `<nixos-hardware/purism/librem/5r4>` |
| [Raspberry Pi 2](raspberry-pi/2) | `<nixos-hardware/raspberry-pi/2>` |
| [Raspberry Pi 4](raspberry-pi/4) | `<nixos-hardware/raspberry-pi/4>` |
| [Samsung Series 9 NP900X3C](samsung/np900x3c) | `<nixos-hardware/samsung/np900x3c>` |
| [StarFive VisionFive v1](starfive/visionfive/v1) | `<nixos-hardware/starfive/visionfive/v1>` |
| [StarFive VisionFive 2](starfive/visionfive/v2) | `<nixos-hardware/starfive/visionfive/v2>` |
| [Supermicro A1SRi-2758F](supermicro/a1sri-2758f) | `<nixos-hardware/supermicro/a1sri-2758f>` |
| [Supermicro M11SDV-8C-LN4F](supermicro/m11sdv-8c-ln4f) | `<nixos-hardware/supermicro/m11sdv-8c-ln4f>` |
| [Supermicro X10SLL-F](supermicro/x10sll-f) | `<nixos-hardware/supermicro/x10sll-f>` |
| [Supermicro X12SCZ-TLN4F](supermicro/x12scz-tln4f) | `<nixos-hardware/supermicro/x12scz-tln4f>` |
| [System76 (generic)](system76) | `<nixos-hardware/system76>` |
| [System76 Darter Pro 6](system76/darp6) | `<nixos-hardware/system76/darp6>` |
| [Toshiba Chromebook 2 `swanky`](toshiba/swanky) | `<nixos-hardware/toshiba/swanky>` |
| [Tuxedo InfinityBook v4](tuxedo/infinitybook/v4) | `<nixos-hardware/tuxedo/infinitybook/v4>` |
| [TUXEDO InfinityBook Pro 14 - Gen7](tuxedo/infinitybook/pro14/gen7) | `<nixos-hardware/tuxedo/infinitybook/pro14/gen7>` |
| [TUXEDO Pulse 15 - Gen2](tuxedo/pulse/15/gen2) | `<nixos-hardware/tuxedo/pulse/15/gen2>` |
+1 -1
View File
@@ -1,4 +1,4 @@
{ lib, pkgs, ... }: { pkgs, ... }:
{ {
imports = [ ../../common/pc/laptop ]; imports = [ ../../common/pc/laptop ];
+1 -5
View File
@@ -1,18 +1,14 @@
{ config, lib, ... }: { lib, ... }:
{ {
imports = [ ../. ]; imports = [ ../. ];
boot = { boot = {
extraModulePackages = with config.boot.kernelPackages; [ mba6x_bl ];
kernelModules = [ "mba6x_bl" ];
# Divides power consumption by two. # Divides power consumption by two.
kernelParams = [ "acpi_osi=" ]; kernelParams = [ "acpi_osi=" ];
}; };
services.xserver.deviceSection = lib.mkDefault '' services.xserver.deviceSection = lib.mkDefault ''
Option "Backlight" "mba6x_backlight"
Option "TearFree" "true" Option "TearFree" "true"
''; '';
} }
-2
View File
@@ -1,5 +1,3 @@
{ lib, pkgs, ... }:
{ {
imports = [ imports = [
../. ../.
+2 -2
View File
@@ -1,8 +1,8 @@
{ lib, config, pkgs, ... }: { lib, config, ... }:
let let
kernelPackages = config.boot.kernelPackages; inherit (config.boot) kernelPackages;
in in
+17
View File
@@ -0,0 +1,17 @@
# MacBook Pro 14,1
## Audio
Audio is a lost cause. Bribe an Apple or Cirrus engineer for the datasheet. ;)
## Thunderbolt
The thunderbolt module will oops upon system resume, and subsequently refuse to work until next reboot.
## Suspend/Resume
The d3cold state needs to be disabled on the NVME controller for it to wake up.
## Bluetooth
The Bluetooth UART (/dev/ttyS0) is created and then deleted by udev in early boot.
Hack around it by reloading the 8250_dw module, causing it to be re-created.
+38
View File
@@ -0,0 +1,38 @@
#!/usr/bin/env bash
set -euo pipefail
##
# For some reason /dev/ttyS0 is created, and then removed by udev. We need this
# for bluetooth, and the only way to get it again is to reload 8502_dw. Do so.
##
##
# /sys/devices/pci0000:00/0000:00:1e.0/driver -> intel-lpss
# /sys/bus/pci/devices/0000:00:1e.0
# /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:8a/BCM2E7C:00
##
# udevadm info --query=all --path=/sys/bus/serial/devices/serial0-0
# P: /devices/pci0000:00/0000:00:1e.0/dw-apb-uart.2/serial0/serial0-0
# M: serial0-0
# R: 0
# U: serial
# E: DEVPATH=/devices/pci0000:00/0000:00:1e.0/dw-apb-uart.2/serial0/serial0-0
# E: SUBSYSTEM=serial
# E: MODALIAS=acpi:BCM2E7C:APPLE-UART-BLTH:
# E: USEC_INITIALIZED=12406199
# E: PATH=/nix/store/56jhf2k9q31gwvhjxmm2akkkhi4a8nz1-udev-path/bin:/nix/store/56jhf2k9q31gwvhjxmm2akkkhi4a8nz1-udev-path/sbin
# E: ID_VENDOR_FROM_DATABASE=Broadcom
if [[ ! -e "/sys/devices/pci0000:00/0000:00:1e.0/dw-apb-uart.2/tty/ttyS0" ]]; then
if [[ -e /sys/module/8250_dw ]]; then
rmmod 8250_dw
fi
modprobe 8250_dw
fi
exec btattach --protocol=h4 --bredr=/dev/ttyS0 --speed=3000000
+51
View File
@@ -0,0 +1,51 @@
{ config, lib, pkgs, ... }:
{
imports = [
../.
../../../common/pc/laptop/ssd
];
##
# Make the keyboard work in stage1
# https://www.kernelconfig.io/config_keyboard_applespi
##
boot.initrd.kernelModules = [ "applespi" "spi_pxa2xx_platform" "intel_lpss_pci" "applesmc" ];
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "6.0") pkgs.linuxPackages_latest;
##
# Disable d3cold on the NVME controller so the machine can actually
# wake up.
# 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" ];
};
##
# For some reason /dev/ttyS0 is created, and then removed by udev. We need this
# for bluetooth, and the only way to get it again is to reload 8502_dw. Luckily,
# nothing else uses it.
##
systemd.services.btattach-bcm2e7c = lib.mkIf config.hardware.bluetooth.enable {
before = [ "bluetooth.target" ];
# Hacky, as it's a different device, but this always comes after ttyS0
after = [ "sys-devices-platform-serial8250-tty-ttyS1.device" ];
path = [ pkgs.bash pkgs.kmod pkgs.bluez ];
serviceConfig.Type = "simple";
serviceConfig.ExecStart = "${./btfix.sh}";
wantedBy = [ "multi-user.target" ];
};
}
+18
View File
@@ -0,0 +1,18 @@
#!/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"
+36
View File
@@ -0,0 +1,36 @@
# 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.
## Unlocking Internal iGPU
The `apple-set-os-loader-installer` module serves as an installer for the [`apple-set-os-loader`](https://github.com/Redecorating/apple_set_os-loader). This tool is designed to unlock the internal integrated GPU (iGPU) on certain MacBooks. See https://wiki.t2linux.org/guides/hybrid-graphics/ for more details.
### What it Does:
Upon activation, this module performs the following:
- Renames the existing `BOOTX64.EFI` file to `bootx64_original.efi`.
- Installs the `apple-set-os-loader` hook in its place as `bootx64.efi`.
- Before the system boots the hook unlocks the iGPU and subsequently calls the original `bootx64_original.efi`.
- Enables the iGPU by default.
### How to Implement:
1. Add this into your `configuration.nix`:
```
hardware.apple-t2.enableAppleSetOsLoader = true;
```
2. **Rebuild your system**:
```
sudo nixos-rebuild switch
```
> **Note**: Always ensure compatibility and make backups of your data before making any system changes.
+109
View File
@@ -0,0 +1,109 @@
{ config, lib, pkgs, ... }:
let
audioFiles = pkgs.fetchFromGitHub {
owner = "kekrby";
repo = "t2-better-audio";
rev = "e46839a28963e2f7d364020518b9dac98236bcae";
hash = "sha256-x7K0qa++P1e1vuCGxnsFxL1d9+nwMtZUJ6Kd9e27TFs=";
};
audioFilesUdevRules = pkgs.runCommand "audio-files-udev-rules" {} ''
mkdir -p $out/lib/udev/rules.d
cp ${audioFiles}/files/*.rules $out/lib/udev/rules.d
substituteInPlace $out/lib/udev/rules.d/*.rules --replace "/usr/bin/sed" "${pkgs.gnused}/bin/sed"
'';
overrideAudioFiles = package: pluginsPath:
package.overrideAttrs (new: old: {
preConfigurePhases = old.preConfigurePhases or [ ] ++ [ "postPatchPhase" ];
postPatchPhase = ''
cp -r ${audioFiles}/files/{profile-sets,paths} ${pluginsPath}/alsa/mixer/
'';
});
pipewirePackage = overrideAudioFiles pkgs.pipewire "spa/plugins/";
apple-set-os-loader-installer = pkgs.stdenv.mkDerivation {
name = "apple-set-os-loader-installer-1.0";
src = pkgs.fetchFromGitHub {
owner = "Redecorating";
repo = "apple_set_os-loader";
rev = "r33.9856dc4";
sha256 = "hvwqfoF989PfDRrwU0BMi69nFjPeOmSaD6vR6jIRK2Y=";
};
buildInputs = [ pkgs.gnu-efi ];
buildPhase = ''
substituteInPlace Makefile --replace "/usr" '$(GNU_EFI)'
export GNU_EFI=${pkgs.gnu-efi}
make
'';
installPhase = ''
install -D bootx64_silent.efi $out/bootx64.efi
'';
};
t2Cfg = config.hardware.apple-t2;
in
{
options = {
hardware.apple-t2.enableAppleSetOsLoader = lib.mkOption {
default = false;
type = lib.types.bool;
description = "Whether to enable the appleSetOsLoader activation script.";
};
};
config = {
# For keyboard and touchbar
boot.kernelPackages = pkgs.linuxPackagesFor (pkgs.callPackage ./pkgs/linux-t2.nix { });
boot.initrd.kernelModules = [ "apple-bce" ];
# For audio
boot.kernelParams = [ "pcie_ports=compat" "intel_iommu=on" "iommu=pt" ];
services.udev.packages = [ audioFilesUdevRules ];
hardware.pulseaudio.package = overrideAudioFiles pkgs.pulseaudio "src/modules/";
services.pipewire.package = pipewirePackage;
services.pipewire.wireplumber.package = pkgs.wireplumber.override {
pipewire = pipewirePackage;
};
# Make sure post-resume.service exists
powerManagement.enable = true;
systemd.services.fix-keyboard-backlight-and-touchbar = {
path = [ pkgs.kmod ];
serviceConfig.ExecStart = ''${pkgs.systemd}/bin/systemd-inhibit --what=sleep --why="fixing keyboard backlight and touchbar must finish before sleep" --mode=delay ${./fix-keyboard-backlight-and-touchbar.sh}'';
serviceConfig.Type = "oneshot";
description = "reload touchbar driver and restart upower";
wantedBy = [ "display-manager.service" "post-resume.target" ];
after = [ "post-resume.target" ];
};
# Activation script to install apple-set-os-loader in order to unlock the iGPU
system.activationScripts.appleSetOsLoader = lib.optionalString t2Cfg.enableAppleSetOsLoader ''
if [[ -e /boot/efi/efi/boot/bootx64_original.efi ]]; then
true # It's already installed, no action required
elif [[ -e /boot/efi/efi/boot/bootx64.efi ]]; then
# Copy the new bootloader to a temporary location
cp ${apple-set-os-loader-installer}/bootx64.efi /boot/efi/efi/boot/bootx64_temp.efi
# Rename the original bootloader
mv /boot/efi/efi/boot/bootx64.efi /boot/efi/efi/boot/bootx64_original.efi
# Move the new bootloader to the final destination
mv /boot/efi/efi/boot/bootx64_temp.efi /boot/efi/efi/boot/bootx64.efi
else
echo "Error: /boot/efi/efi/boot/bootx64.efi is missing" >&2
fi
'';
# Enable the iGPU by default if present
environment.etc."modprobe.d/apple-gmux.conf".text = lib.optionalString t2Cfg.enableAppleSetOsLoader ''
options apple-gmux force_igd=y
'';
};
}
+28
View File
@@ -0,0 +1,28 @@
#!/bin/sh
set -eux
unload () {
if modprobe -r "$1" 2>&1;
then echo ok
else echo fail
fi
}
wait_unload() {
while sleep 1; do
output="$(unload "$1")"
case "$output" in
*is\ in\ use*) :;;
*ok*) return 0;;
*) echo "modprobe said: $output"; echo giving up; return 1;
esac
done
}
wait_unload apple_touchbar
modprobe apple_touchbar
# After suspend, the inode for the backlight device has changed. This service
# simply restarts upower to inform it of that change.
systemctl restart upower.service
+53
View File
@@ -0,0 +1,53 @@
{ lib, buildLinux, fetchFromGitHub, fetchzip, runCommand
, ... } @ args:
let
patchRepo = fetchFromGitHub {
owner = "t2linux";
repo = "linux-t2-patches";
rev = "46dd873d1d9d12b26916790045008a91a95d0c11";
hash = "sha256-YGUGuzsAJFtZYjIW9d2XU4eGKNvMKCaWXqgqJn5TdeY=";
};
version = "6.5";
majorVersion = with lib; (elemAt (take 1 (splitVersion version)) 0);
in
buildLinux (args // {
inherit version;
pname = "linux-t2";
# Snippet from nixpkgs
modDirVersion = with lib; "${concatStringsSep "." (take 3 (splitVersion "${version}.0"))}";
src = runCommand "patched-source" {} ''
cp -r ${fetchzip {
url = "mirror://kernel/linux/kernel/v${majorVersion}.x/linux-${version}.tar.xz";
hash = "sha256-qJmVSju69WcvDIbgrbtMyCi+OXUNTzNX2G+/0zwsPR4=";
}} $out
chmod -R u+w $out
cd $out
while read -r patch; do
echo "Applying patch $patch";
patch -p1 < $patch;
done < <(find ${patchRepo} -type f -name "*.patch" | sort)
'';
structuredExtraConfig = with lib.kernel; {
APPLE_BCE = module;
APPLE_GMUX = module;
BRCMFMAC = module;
BT_BCM = module;
BT_HCIBCM4377 = module;
BT_HCIUART_BCM = yes;
BT_HCIUART = module;
HID_APPLE_IBRIDGE = module;
HID_APPLE = module;
HID_APPLE_MAGIC_BACKLIGHT = module;
HID_APPLE_TOUCHBAR = module;
HID_SENSOR_ALS = module;
SND_PCM = module;
STAGING = yes;
};
kernelPatches = [];
} // (args.argsOverride or {}))
+10
View File
@@ -0,0 +1,10 @@
# [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
+15
View File
@@ -0,0 +1,15 @@
{ pkgs, lib, ... }:
{
imports = [
../../../common/cpu/amd
../../../common/cpu/amd/pstate.nix
../../../common/gpu/amd
../../../common/pc/laptop
../../../common/pc/laptop/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);
}
+2 -2
View File
@@ -1,7 +1,7 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
let let
p = pkgs.writeScriptBin "charge-upto" '' p = pkgs.writeScriptBin "charge-upto" ''
echo ''${0:-100} > /sys/class/power_supply/BAT0/charge_control_end_threshold echo ''${0:-100} > /sys/class/power_supply/BAT?/charge_control_end_threshold
''; '';
cfg = config.hardware.asus.battery; cfg = config.hardware.asus.battery;
in in
@@ -30,7 +30,7 @@ in
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";
Restart = "on-failure"; Restart = "on-failure";
ExecStart = "${pkgs.runtimeShell} -c 'echo ${toString cfg.chargeUpto} > /sys/class/power_supply/BAT0/charge_control_end_threshold'"; ExecStart = "${pkgs.runtimeShell} -c 'echo ${toString cfg.chargeUpto} > /sys/class/power_supply/BAT?/charge_control_end_threshold'";
}; };
}; };
}; };
+15
View File
@@ -0,0 +1,15 @@
{ ... }:
{
imports = [
../../common/cpu/amd
../../common/gpu/nvidia/prime.nix
../../common/pc/laptop
../../common/pc/ssd
];
hardware.nvidia.prime = {
amdgpuBusId = "PCI:5:0:0";
nvidiaBusId = "PCI:1:0:0";
};
}
+16
View File
@@ -0,0 +1,16 @@
{
imports = [
../../../common/cpu/amd
../../../common/cpu/amd/pstate.nix
../../../common/gpu/nvidia
../../../common/gpu/nvidia/prime.nix
../../../common/pc/laptop
../../../common/pc/ssd
../../battery.nix
];
hardware.nvidia.prime = {
amdgpuBusId = "PCI:05:00:0";
nvidiaBusId = "PCI:01:00:0";
};
}
+2 -3
View File
@@ -1,8 +1,8 @@
{ config, pkgs, lib, ... }: { pkgs, lib, ... }:
{ {
imports = [ imports = [
../../../common/cpu/amd/pstate.nix ../../../common/cpu/amd/pstate.nix
../../../common/gpu/nvidia.nix ../../../common/gpu/nvidia/prime.nix
../../../common/pc/laptop ../../../common/pc/laptop
../../../common/pc/ssd ../../../common/pc/ssd
../../battery.nix ../../battery.nix
@@ -22,7 +22,6 @@
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.12") (lib.mkDefault pkgs.linuxPackages_latest); boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.12") (lib.mkDefault pkgs.linuxPackages_latest);
hardware.nvidia.prime = { hardware.nvidia.prime = {
offload.enable = lib.mkDefault true;
amdgpuBusId = "PCI:5:0:0"; amdgpuBusId = "PCI:5:0:0";
nvidiaBusId = "PCI:1:0:1"; nvidiaBusId = "PCI:1:0:1";
}; };
+26 -11
View File
@@ -1,21 +1,36 @@
{ ... }: { lib, ... }:
{ {
imports = [ imports = [
../../../common/cpu/amd ../../../common/cpu/amd
../../../common/gpu/nvidia.nix ../../../common/cpu/amd/pstate.nix
../../../common/gpu/amd
../../../common/gpu/nvidia/prime.nix
../../../common/pc/laptop ../../../common/pc/laptop
../../../common/pc/ssd ../../../common/pc/laptop/ssd
]; ];
hardware.nvidia.prime = { hardware.nvidia = {
amdgpuBusId = "PCI:4:0:0"; # Enable DRM kernel mode setting
nvidiaBusId = "PCI:1:0:0"; # This will also cause "PCI-Express Runtime D3 Power Management" to be enabled by default
modesetting.enable = lib.mkDefault true;
dynamicBoost.enable = lib.mkDefault true;
prime = {
amdgpuBusId = "PCI:4:0:0";
nvidiaBusId = "PCI:1:0:0";
};
}; };
# fixes mic mute button services = {
services.udev.extraHwdb = '' asusd.enable = lib.mkDefault true;
evdev:name:*:dmi:bvn*:bvr*:bd*:svnASUS*:pn*:*
KEYBOARD_KEY_ff31007c=f20 udev.extraHwdb = ''
''; evdev:name:*:dmi:bvn*:bvr*:bd*:svnASUS*:pn*:*
KEYBOARD_KEY_ff31007c=f20 # fixes mic mute button
KEYBOARD_KEY_ff3100b2=home # Set fn+LeftArrow as Home
KEYBOARD_KEY_ff3100b3=end # Set fn+RightArrow as End
'';
};
} }
+32
View File
@@ -0,0 +1,32 @@
{ lib, config, ... }:
{
imports = [
../../../common/cpu/amd
../../../common/cpu/amd/pstate.nix
../../../common/gpu/amd
../../../common/pc/laptop
../../../common/pc/laptop/ssd
];
services = {
asusd.enable = lib.mkDefault true;
# fixes mic mute button
udev.extraHwdb = ''
evdev:name:*:dmi:bvn*:bvr*:bd*:svnASUS*:pn*:*
KEYBOARD_KEY_ff31007c=f20
'';
};
boot = {
kernelParams = [ "pcie_aspm.policy=powersupersave" ];
};
assertions = [
{
assertion = (lib.versionAtLeast config.boot.kernelPackages.kernel.version "6.2");
message = "The ga402 requires kernel version >=6.2 to ensure that fans are correctly managed. Please upgrade nixpkgs for this system.";
}
];
}
+58
View File
@@ -0,0 +1,58 @@
{ config,
lib,
pkgs,
...
}:
let
inherit (lib) mkDefault mkEnableOption mkIf mkMerge;
cfg = config.hardware.asus.zephyrus.ga402x;
in {
imports = [
../shared.nix
];
options.hardware.asus.zephyrus.ga402x.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 [
{
# AMD RX680
services.xserver.videoDrivers = mkDefault [ "amdgpu" ];
hardware = {
amdgpu.loadInInitrd = true;
opengl.extraPackages = with pkgs; [
vaapiVdpau
libvdpau-va-gl
];
};
}
(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"
];
})
];
}
+15
View File
@@ -0,0 +1,15 @@
## When using from a Flake, you can access these via imports of the attr key, e.g:
#
# imports = [
# nixos-hardware.nixosModules.asus-zephyrus-ga402x.amdgpu
# ];
#
## or:
# imports = [
# nixos-hardware.nixosModules.asus-zephyrus-ga402x.nvidia
# ];
{
amdgpu = import ./amdgpu;
nvidia = import ./nvidia;
}
+55
View File
@@ -0,0 +1,55 @@
{ lib,
pkgs,
...
}:
let
inherit (lib) mkDefault;
in {
imports = [
../shared.nix
## "prime.nix" loads this, aleady:
# ../../../common/gpu/nvidia
../../../../common/gpu/nvidia/prime.nix
];
# NVIDIA GeForce RTX 4060 Mobile
boot = {
blacklistedKernelModules = [ "nouveau" ];
};
# Also in nvidia/default.nix
services.xserver.videoDrivers = mkDefault [ "nvidia" ];
hardware = {
## Enable the Nvidia card, as well as Prime and Offload:
amdgpu.loadInInitrd = true;
opengl.extraPackages = with pkgs; [
# Also in nvidia/default.nix
vaapiVdpau
libvdpau-va-gl
];
nvidia = {
modesetting.enable = true;
nvidiaSettings = true;
prime = {
offload = {
enable = true;
enableOffloadCmd = true;
};
amdgpuBusId = "PCI:101:0:0";
nvidiaBusId = "PCI:1:0:0";
};
powerManagement = {
# This is unreliable on the 4060; works a few times, then hangs:
# enable = true;
# finegrained = true
};
};
};
}
+76
View File
@@ -0,0 +1,76 @@
{ config,
pkgs,
lib,
...
}:
let
inherit (lib) mkDefault mkIf mkMerge version versionOlder;
in {
imports = [
../../../common/cpu/amd
# Better power-savings from AMD PState:
../../../common/cpu/amd/pstate.nix
../../../common/gpu/amd
../../../common/pc/laptop
../../../common/pc/laptop/acpi_call.nix
../../../common/pc/ssd
];
config = mkMerge [
{
# Configure basic system settings:
boot = {
kernelModules = [ "kvm-amd" ];
kernelParams = [
"mem_sleep_default=deep"
"pcie_aspm.policy=powersupersave"
];
};
services = {
asusd = {
enable = mkDefault true;
enableUserService = mkDefault true;
};
supergfxd.enable = true;
udev = {
extraHwdb = ''
# Fixes mic mute button
evdev:name:*:dmi:bvn*:bvr*:bd*:svnASUS*:pn*:*
KEYBOARD_KEY_ff31007c=f20
'';
extraRules = ''
# Disable auto-suspend for the ASUS N-KEY Device, i.e. USB Keyboard
# Otherwise, it will tend to take 1-2 key-presses to wake-up after suspending
ACTION=="add", SUBSYSTEM=="usb", TEST=="power/autosuspend", ATTR{idVendor}=="0b05", ATTR{idProduct}=="19b6", ATTR{power/autosuspend}="-1"
'';
};
};
}
(mkIf (versionOlder version "23.11") {
# See https://asus-linux.org/wiki/nixos/ for info about some problems
# detecting the dGPU:
systemd.services.supergfxd.path = [ pkgs.pciutils ];
})
(mkIf (config.networking.wireless.iwd.enable && config.networking.wireless.scanOnLowSignal) {
# Meditek doesn't seem to be quite sensitive enough on the default roaming settings:
# https://wiki.archlinux.org/title/Wpa_supplicant#Roaming
# 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;
};
};
})
];
}
+21
View File
@@ -0,0 +1,21 @@
{ ... }:
{
imports = [
../../../common/cpu/amd
../../../common/gpu/nvidia/prime.nix
../../../common/pc/laptop
../../../common/pc/ssd
];
hardware.nvidia.prime = {
amdgpuBusId = "PCI:6:0:0";
nvidiaBusId = "PCI:1:0:0";
};
# fixes mic mute button
services.udev.extraHwdb = ''
evdev:name:*:dmi:bvn*:bvr*:bd*:svnASUS*:pn*:*
KEYBOARD_KEY_ff31007c=f20
'';
}
+1 -1
View File
@@ -3,7 +3,7 @@
{ {
imports = [ imports = [
../../../common/cpu/amd ../../../common/cpu/amd
../../../common/gpu/nvidia.nix ../../../common/gpu/nvidia/prime.nix
../../../common/pc/laptop ../../../common/pc/laptop
../../../common/pc/ssd ../../../common/pc/ssd
]; ];
+15
View File
@@ -0,0 +1,15 @@
{ ... }:
{
imports = [
../../../common/cpu/intel
../../../common/gpu/nvidia/prime.nix
../../../common/pc/laptop
../../../common/pc/ssd
];
hardware.nvidia.prime = {
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
};
}
-2
View File
@@ -1,2 +0,0 @@
cut_body_after = "" # don't include text from the PR body in the merge commit message
status = [ "tests" ]
+27 -5
View File
@@ -1,10 +1,32 @@
{ lib, config, ... }: { { lib, config, ... }:
let
kver = config.boot.kernelPackages.kernel.version;
in
{
# Enables the amd cpu scaling https://www.kernel.org/doc/html/latest/admin-guide/pm/amd-pstate.html # Enables the amd cpu scaling https://www.kernel.org/doc/html/latest/admin-guide/pm/amd-pstate.html
# On recent AMD CPUs this can be more energy efficient. # On recent AMD CPUs this can be more energy efficient.
imports = [ ./. ]; imports = [ ./. ];
boot = lib.mkIf (lib.versionAtLeast config.boot.kernelPackages.kernel.version "5.17") { boot = lib.mkMerge [
kernelParams = [ "initcall_blacklist=acpi_cpufreq_init" ]; (lib.mkIf
kernelModules = [ "amd-pstate" ]; (
}; (lib.versionAtLeast kver "5.17")
&& (lib.versionOlder kver "6.1")
)
{
kernelParams = [ "initcall_blacklist=acpi_cpufreq_init" ];
kernelModules = [ "amd-pstate" ];
})
(lib.mkIf
(
(lib.versionAtLeast kver "6.1")
&& (lib.versionOlder kver "6.3")
)
{
kernelParams = [ "amd_pstate=passive" ];
})
(lib.mkIf (lib.versionAtLeast kver "6.3") {
kernelParams = [ "amd_pstate=active" ];
})
];
} }
+19
View File
@@ -0,0 +1,19 @@
{ lib, pkgs, config, ... }:
{
# Sets the kernel version to the latest kernel to make the usage of the iGPU possible if your kernel version is too old
# Disables scatter/gather which was introduced with kernel version 6.2
# It produces completely white or flashing screens when enabled while using the iGPU of Ryzen 7000-series CPUs (Raphael)
imports = [ ../. ];
boot = lib.mkMerge [
(lib.mkIf (lib.versionOlder pkgs.linux.version "6.1") {
kernelPackages = pkgs.linuxPackages_latest;
})
(lib.mkIf (lib.versionAtLeast config.boot.kernelPackages.kernel.version "6.2") {
kernelParams = ["amdgpu.sg_display=0"];
})
];
}
+7
View File
@@ -0,0 +1,7 @@
{
imports = [ ../. ];
boot.kernelParams = [
"i915.enable_guc=2"
];
}
+1 -1
View File
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: { config, lib, ... }:
{ {
hardware.cpu.intel.updateMicrocode = hardware.cpu.intel.updateMicrocode =
+1 -3
View File
@@ -1,8 +1,6 @@
{ config, lib, pkgs, ... }:
{ {
imports = [ imports = [
./cpu-only.nix ./cpu-only.nix
../../gpu/intel.nix ../../gpu/intel
]; ];
} }
@@ -0,0 +1,7 @@
{
imports = [ ../. ];
boot.kernelParams = [
"i915.enable_guc=2"
];
}
+7
View File
@@ -0,0 +1,7 @@
{
imports = [ ../. ];
boot.kernelParams = [
"i915.enable_guc=2"
];
}
+41 -18
View File
@@ -1,23 +1,46 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
boot.initrd.kernelModules = [ "amdgpu" ]; options.hardware.amdgpu.loadInInitrd = lib.mkEnableOption (lib.mdDoc
services.xserver.videoDrivers = [ "amdgpu" ]; "loading `amdgpu` kernelModule at stage 1. (Add `amdgpu` to `boot.initrd.kernelModules`)"
) // {
hardware.opengl.extraPackages = with pkgs; [ default = true;
rocm-opencl-icd };
rocm-opencl-runtime options.hardware.amdgpu.amdvlk = lib.mkEnableOption (lib.mdDoc
amdvlk "use amdvlk drivers instead mesa radv drivers"
]; );
options.hardware.amdgpu.opencl = lib.mkEnableOption (lib.mdDoc
hardware.opengl.extraPackages32 = with pkgs; [ "rocm opencl runtime (Install rocmPackages.clr and rocmPackages.clr.icd)"
driversi686Linux.amdvlk ) // {
]; default = true;
hardware.opengl = {
driSupport = lib.mkDefault true;
driSupport32Bit = lib.mkDefault true;
}; };
environment.variables.AMD_VULKAN_ICD = lib.mkDefault "RADV"; config = lib.mkMerge [
} {
services.xserver.videoDrivers = lib.mkDefault [ "modesetting" ];
hardware.opengl = {
driSupport = lib.mkDefault true;
driSupport32Bit = lib.mkDefault true;
};
}
(lib.mkIf config.hardware.amdgpu.loadInInitrd {
boot.initrd.kernelModules = [ "amdgpu" ];
})
(lib.mkIf config.hardware.amdgpu.amdvlk {
hardware.opengl.extraPackages = with pkgs; [
amdvlk
];
hardware.opengl.extraPackages32 = with pkgs; [
driversi686Linux.amdvlk
];
})
(lib.mkIf config.hardware.amdgpu.opencl {
hardware.opengl.extraPackages =
if pkgs ? rocmPackages.clr
then with pkgs.rocmPackages; [ clr clr.icd ]
else with pkgs; [ rocm-opencl-icd rocm-opencl-runtime ];
})
];
}
+6 -10
View File
@@ -1,15 +1,11 @@
{ config, lib, pkgs, ... }:
{ {
boot.initrd.kernelModules = [ "i915" ]; imports = [ ./intel ];
environment.variables = { warnings = [
VDPAU_DRIVER = lib.mkIf config.hardware.opengl.enable (lib.mkDefault "va_gl"); ''
}; DEPRECATED: The <nixos-hardware/common/gpu/intel.nix> module has been deprecated.
hardware.opengl.extraPackages = with pkgs; [ Switch to using <nixos-hardware/common/gpu/intel> instead.
vaapiIntel ''
libvdpau-va-gl
intel-media-driver
]; ];
} }
+15
View File
@@ -0,0 +1,15 @@
{ config, lib, pkgs, ... }:
{
boot.initrd.kernelModules = [ "i915" ];
environment.variables = {
VDPAU_DRIVER = lib.mkIf config.hardware.opengl.enable (lib.mkDefault "va_gl");
};
hardware.opengl.extraPackages = with pkgs; [
(if (lib.versionOlder (lib.versions.majorMinor lib.version) "23.11") then vaapiIntel else intel-vaapi-driver)
libvdpau-va-gl
intel-media-driver
];
}
+7
View File
@@ -0,0 +1,7 @@
{ lib, ... }:
{
boot.blacklistedKernelModules = lib.mkDefault [ "i915" ];
# KMS will load the module, regardless of blacklisting
boot.kernelParams = lib.mkDefault [ "i915.modeset=0" ];
}
+8 -6
View File
@@ -1,9 +1,11 @@
{ lib, pkgs, ... }:
{ {
# This runs only intel/amdgpu igpus and nvidia dgpus do not drain power. imports = [ ./nvidia/disable.nix ];
##### disable nvidia, very nice battery life. warnings = [
hardware.nvidiaOptimus.disable = lib.mkDefault true; ''
boot.blacklistedKernelModules = lib.mkDefault [ "nouveau" "nvidia" ]; DEPRECATED: The <nixos-hardware/common/gpu/nvidia-disable.nix> module has been deprecated.
Switch to using <nixos-hardware/common/gpu/nvidia/disable.nix> instead.
''
];
} }
+7 -21
View File
@@ -1,26 +1,12 @@
{ lib, pkgs, ... }:
# This creates a new 'nvidia-offload' program that runs the application passed to it on the GPU
# As per https://nixos.wiki/wiki/Nvidia
let
nvidia-offload = pkgs.writeShellScriptBin "nvidia-offload" ''
export __NV_PRIME_RENDER_OFFLOAD=1
export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export __VK_LAYER_NV_optimus=NVIDIA_only
exec "$@"
'';
in
{ {
services.xserver.videoDrivers = lib.mkDefault [ "nvidia" ]; imports = [ ./nvidia/prime.nix ];
environment.systemPackages = [ nvidia-offload ];
hardware.nvidia.prime = { warnings = [
offload.enable = lib.mkDefault true; ''
# Hardware should specify the bus ID for intel/nvidia devices DEPRECATED: The <nixos-hardware/common/gpu/nvidia.nix> module has been deprecated.
};
hardware.opengl.extraPackages = with pkgs; [ Switch to using <nixos-hardware/common/gpu/nvidia/prime.nix> instead if you use prime offloading.
vaapiVdpau If you are using this without prime, consider switching to <nixos-hardware/common/gpu/nvidia> instead.
''
]; ];
} }
+8
View File
@@ -0,0 +1,8 @@
{ lib, pkgs, ... }:
{
services.xserver.videoDrivers = lib.mkDefault [ "nvidia" ];
hardware.opengl.extraPackages = with pkgs; [
vaapiVdpau
];
}
+26
View File
@@ -0,0 +1,26 @@
{ ... }:
{
# This runs only intel/amdgpu igpus and nvidia dgpus do not drain power.
##### disable nvidia, very nice battery life.
boot.extraModprobeConfig = ''
blacklist nouveau
options nouveau modeset=0
'';
services.udev.extraRules = ''
# Remove NVIDIA USB xHCI Host Controller devices, if present
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c0330", ATTR{power/control}="auto", ATTR{remove}="1"
# Remove NVIDIA USB Type-C UCSI devices, if present
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c8000", ATTR{power/control}="auto", ATTR{remove}="1"
# Remove NVIDIA Audio devices, if present
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x040300", ATTR{power/control}="auto", ATTR{remove}="1"
# Remove NVIDIA VGA/3D controller devices
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x03[0-9]*", ATTR{power/control}="auto", ATTR{remove}="1"
'';
boot.blacklistedKernelModules = [ "nouveau" "nvidia" "nvidia_drm" "nvidia_modeset" ];
}
+13
View File
@@ -0,0 +1,13 @@
{ lib, config, ... }:
{
imports = [ ./. ];
hardware.nvidia.prime = {
offload = {
enable = lib.mkOverride 990 true;
enableOffloadCmd = lib.mkIf config.hardware.nvidia.prime.offload.enable true; # Provides `nvidia-offload` command.
};
# Hardware should specify the bus ID for intel/nvidia devices
};
}
+12
View File
@@ -0,0 +1,12 @@
{ lib, pkgs, ... }:
let
# This option is removed from NixOS 23.05 and up
nixosVersion = lib.versions.majorMinor lib.version;
config = if lib.versionOlder nixosVersion "23.05" then {
hardware.video.hidpi.enable = lib.mkDefault true;
} else {
# Just set the console font, don't mess with the font settings
console.font = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-v32n.psf.gz";
console.earlySetup = lib.mkDefault true;
};
in config
+1 -1
View File
@@ -5,5 +5,5 @@
"ath3k" "ath3k"
]; ];
services.xserver.libinput.enable = lib.mkDefault true; services.xserver.libinput.enable = lib.mkDefault config.services.xserver.enable;
} }
-2
View File
@@ -1,3 +1 @@
{ lib, ... }:
{} {}
+2 -2
View File
@@ -1,9 +1,9 @@
# acpi_call makes tlp work for newer thinkpads # acpi_call makes tlp work for newer thinkpads
{ config, ... }: { config, lib, ... }:
{ {
boot = { boot = lib.mkIf config.services.tlp.enable {
kernelModules = [ "acpi_call" ]; kernelModules = [ "acpi_call" ];
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ]; extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
}; };
+3
View File
@@ -0,0 +1,3 @@
{
boot.kernelParams = [ "console=ttyS0,115200n8" ];
}
-2
View File
@@ -1,5 +1,3 @@
{ lib, pkgs, ... }:
{ {
imports = [ imports = [
../../common/cpu/intel ../../common/cpu/intel
+2 -2
View File
@@ -1,9 +1,9 @@
{ lib, pkgs, ... }: { lib, ... }:
{ {
imports = [ imports = [
../../../common/cpu/intel ../../../common/cpu/intel
../../../common/gpu/nvidia.nix ../../../common/gpu/nvidia/prime.nix
../../../common/pc/laptop ../../../common/pc/laptop
../../../common/pc/laptop/ssd ../../../common/pc/laptop/ssd
]; ];
+13
View File
@@ -0,0 +1,13 @@
# Dell Inspiron 14 5420
### Hardware
- CPU: Intel® Core™ i7-1260P Processor
- GPU: Intel® Iris® Xe Graphics
### Other Info
`fwupd` is used to receive firmware updates from vendors. This device is in its [supported devices list](https://fwupd.org/lvfs/devices/)
`thermald` is used to achieve better thermal behaviour
##### TLP
TLP is a battery power optimizer for laptops. It is enabled by default, however, since it conflicts with power-profiles-daemon which is GNOME's power management system, TLP will not be installed with if power-profiles-daemon or a recent version of GNOME is present.
+22
View File
@@ -0,0 +1,22 @@
{ lib, ... }:
{
imports = [
../../../common/cpu/intel
../../../common/pc/laptop
../../../common/pc/ssd
];
hardware = {
enableRedistributableFirmware = lib.mkDefault true;
};
services = {
fwupd = {
enable = lib.mkDefault true;
};
thermald = {
enable = lib.mkDefault true;
};
};
}
+1
View File
@@ -2,6 +2,7 @@
{ {
imports = [ imports = [
../../../common/cpu/intel ../../../common/cpu/intel
../../../common/gpu/intel
../../../common/pc/laptop ../../../common/pc/laptop
../../../common/pc/ssd ../../../common/pc/ssd
]; ];
+4
View File
@@ -29,5 +29,9 @@
# https://bbs.archlinux.org/viewtopic.php?id=266108 says linux >= 5.12 required # https://bbs.archlinux.org/viewtopic.php?id=266108 says linux >= 5.12 required
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.12") pkgs.linuxPackages_latest; boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.12") pkgs.linuxPackages_latest;
# sometimes boots to a black screen, and pressing alt+sysrq+k makes the
# display manager start
# fixed by early kernel modesetting
boot.initrd.kernelModules = [ "amdgpu" ];
} }
+9
View File
@@ -0,0 +1,9 @@
{ ... }:
{
imports = [
../../../common/cpu/intel
../../../common/pc/laptop
../../../common/pc/laptop/ssd
];
}
+1 -1
View File
@@ -1,4 +1,4 @@
{ lib, pkgs, ... }: { lib, ... }:
{ {
imports = [ imports = [
+1 -1
View File
@@ -1,4 +1,4 @@
{ lib, pkgs, ... }: { lib, ... }:
{ {
imports = [ imports = [
+9
View File
@@ -0,0 +1,9 @@
{ lib, ... }:
{
imports = [
../../../common/cpu/intel
../../../common/pc/laptop
../../../common/pc/laptop/ssd
];
}
+8
View File
@@ -0,0 +1,8 @@
{ lib, ... }:
{
imports = [
../../../common/cpu/intel
../../../common/pc/laptop
];
}
+21
View File
@@ -0,0 +1,21 @@
{ lib, ... }:
{
imports = [
../../../common/cpu/intel
../../../common/pc/laptop
../../../common/pc/laptop/ssd
];
boot.kernelParams = [
# needed for Intel Iris Xe
"i915.force_probe=46a8"
"i915.enable_guc=3"
"i915.fastboot=1"
# needed for keyboard
"i8042.dumbkbd=1"
"i8042.nopnp=1"
];
services.xserver.videoDrivers = lib.mkDefault [ "intel" ];
}
+1 -1
View File
@@ -1,4 +1,4 @@
{ lib, pkgs, ... }: { lib, ... }:
{ {
imports = [ imports = [
+28
View File
@@ -0,0 +1,28 @@
{ lib, ... }:
{
imports = [
./intel
];
# Boot loader
boot.kernelParams = [
# fix lspci hanging with nouveau
# source https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1803179/comments/149
"acpi_rev_override=1"
"acpi_osi=Linux"
"nouveau.modeset=0"
"pcie_aspm=force"
"drm.vblankoffdelay=1"
"nouveau.runpm=0"
"mem_sleep_default=deep"
# fix flicker
# source https://wiki.archlinux.org/index.php/Intel_graphics#Screen_flickering
"i915.enable_psr=0"
];
boot.kernelModules = lib.mkDefault [ "kvm-intel" ];
# Recommended in NixOS/nixos-hardware#127
services.thermald.enable = lib.mkDefault true;
}
+7
View File
@@ -0,0 +1,7 @@
{
imports = [
../../../../common/cpu/intel
../../../../common/pc/laptop
../../../../common/gpu/nvidia/disable.nix
];
}
-2
View File
@@ -1,5 +1,3 @@
{ lib, pkgs, ... }:
{ {
imports = [ imports = [
../../../common/cpu/intel ../../../common/cpu/intel
+1 -7
View File
@@ -17,10 +17,4 @@ to your <code>configuration.nix</code> if you cannot wake from "Sleep". See refe
== Firmware upgrades == == Firmware upgrades ==
Note that this device is supported by [https://fwupd.org/ fwupd]. Note that this device is supported by [https://fwupd.org/ fwupd].
To perform firmware upgrades just activate the service To perform updates, simply use <code>fwupdmgr</code>.
<code>
services.fwupd.enable = true;
</code>
Then use <code>fwupdmgr</code> to perform updates.
+5 -1
View File
@@ -13,5 +13,9 @@
# - https://github.com/NixOS/nixos-hardware/issues/173 # - https://github.com/NixOS/nixos-hardware/issues/173
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.6") pkgs.linuxPackages_latest; boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.6") pkgs.linuxPackages_latest;
services.thermald.enable = true; # Cooling management
services.thermald.enable = lib.mkDefault true;
# Allows for updating firmware via `fwupdmgr`.
services.fwupd.enable = lib.mkDefault true;
} }
+20
View File
@@ -0,0 +1,20 @@
= Dell XPS 13 9300 =
== Firmware upgrades ==
Note that this device is supported by [https://fwupd.org/ fwupd].
To perform firmware upgrades just activate the service
<code>
services.fwupd.enable = true;
</code>
Then use <code>fwupdmgr</code> to perform updates.
== Battery drain when sleeping ==
The laptop uses the S2 sleep mode by default instead of S3, which leads to
draining a lot of battery during sleep.
See https://wiki.archlinux.org/index.php/Dell_XPS_13_(9300)#Power_Management
and https://bugzilla.kernel.org/show_bug.cgi?id=199689#c3 for reference
+33
View File
@@ -0,0 +1,33 @@
{ lib, ... }:
let
inherit (lib) mkDefault;
in {
imports = [
../../../common/cpu/intel
../../../common/gpu/intel
../../../common/pc/laptop
../../../common/pc/laptop/acpi_call.nix
../../../common/pc/ssd
../sleep-resume/i2c-designware
];
# Force S3 sleep mode. See README.wiki for details.
boot.kernelParams = [ "mem_sleep_default=deep" ];
# Touchpad goes over i2c, and the psmouse module interferes with it
boot.blacklistedKernelModules = [ "psmouse" ];
# Includes the Wi-Fi and Bluetooth firmware for the QCA6390.
hardware.enableRedistributableFirmware = mkDefault true;
# Allows for updating firmware via `fwupdmgr`.
services.fwupd.enable = mkDefault true;
# This will save you money and possibly your life!
services.thermald.enable = mkDefault true;
# Reloads i2c-designware module after suspend
services.sleep-resume.i2c-designware.enable = mkDefault true;
}
+6
View File
@@ -16,6 +16,12 @@
# Without this we get errors in dmesg on boot and hangs when shutting down. # Without this we get errors in dmesg on boot and hangs when shutting down.
boot.blacklistedKernelModules = [ "psmouse" ]; boot.blacklistedKernelModules = [ "psmouse" ];
# enable finger print sensor.
# this has to be configured with `sudo fprintd-enroll <username>`.
services.fprintd.enable = true;
services.fprintd.tod.enable = true;
services.fprintd.tod.driver = pkgs.libfprint-2-tod1-goodix;
# Allows for updating firmware via `fwupdmgr`. # Allows for updating firmware via `fwupdmgr`.
services.fwupd.enable = true; services.fwupd.enable = true;
} }
+9
View File
@@ -0,0 +1,9 @@
= Dell XPS 13 9300 =
== SSD ==
In the <code>default.nix</code> file, I imported
<code>../../../common/pc/ssd</code> because my laptop has currently an SSD, but
I'm not sure if it was the case when I bought it or if I installed it later.
The main updates allow the touchpad to work.
+12
View File
@@ -0,0 +1,12 @@
{
imports = [
../../../common/cpu/intel
../../../common/pc/laptop
../../../common/pc/ssd
];
# Required to allow the touchpad to work
boot.kernelParams = [ "i8042.nopnp=1" ];
boot.blacklistedKernelModules = [ "i2c_hid" "i2c_hid_acpi" ];
boot.kernelModules = [ "synaptics_i2c"];
}
-2
View File
@@ -1,5 +1,3 @@
{ lib, pkgs, ... }:
{ {
imports = [ imports = [
../../../common/cpu/intel/kaby-lake ../../../common/cpu/intel/kaby-lake
+1 -1
View File
@@ -1,4 +1,4 @@
{ lib, pkgs, ... }: { lib, ... }:
{ {
imports = [ imports = [
-2
View File
@@ -1,5 +1,3 @@
{ lib, pkgs, ... }:
{ {
imports = [ imports = [
../../../common/cpu/intel ../../../common/cpu/intel
+11 -22
View File
@@ -21,27 +21,6 @@ These settings are needed both for booting the final install, and installer itse
* ''Disable Intel hardware RAID and use AHCI instead.'' Intel doesn't seem to provide a working linux driver for this. (If you just have SSD it's pointless and just slows things down needlessly anyways.) * ''Disable Intel hardware RAID and use AHCI instead.'' Intel doesn't seem to provide a working linux driver for this. (If you just have SSD it's pointless and just slows things down needlessly anyways.)
=== Wifi ===
~~Wifi does not work with kernels older than 5.1 (firmware not present) or newer~~ (https://bbs.archlinux.org/viewtopic.php?id=247705)
Update: The 48.ucode causes the Killer wifi card to crash. The iwlfwifi-cc-a0-46.ucode works perfectly.
default.nix contains an overlay that removes the offending ucode from the linux-firmware bundle.
To use it one also needs to enable unfree firmware in their own configuration (<code>hardware.enableRedistributableFirmware = true;</code>)
```
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.grub = {
device = "nodev";
efiSupport = true;
efiInstallAsRemovable = true;
};
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_5_1;
```
Disable the `canTouchEfiVariables` after a boot or two to prevent NVRAM wearout.
=== After installation === === After installation ===
* ''Add systemd-boot to UEFI boot list.'' The (uneditable anyways) settings mapping drive UUIDs to HD* work fine. * ''Add systemd-boot to UEFI boot list.'' The (uneditable anyways) settings mapping drive UUIDs to HD* work fine.
@@ -50,5 +29,15 @@ Disable the `canTouchEfiVariables` after a boot or two to prevent NVRAM wearout.
* ''Update BIOS.'' According to Reddit, this helps with battery life. * ''Update BIOS.'' According to Reddit, this helps with battery life.
=== Troubleshooting === == Firmware updates ==
This device is supported by [https://fwupd.org/ fwupd].
You may use <code>fwupdmgr</code> to perform firmware updates.
== Power management ==
Deep sleep is preferred to the default S2 sleep mode, in order to reduce battery draining during suspend.
See https://wiki.archlinux.org/title/Dell_XPS_15_(7590)
+8 -27
View File
@@ -1,4 +1,5 @@
{ lib, ... }: { lib, ... }:
{ {
imports = [ imports = [
../../../common/cpu/intel ../../../common/cpu/intel
@@ -6,15 +7,8 @@
../../../common/pc/ssd ../../../common/pc/ssd
]; ];
# Set to true for just the first run, then disable it. # Force S3 sleep mode. See README.wiki for details.
# boot.loader.efi.canTouchEfiVariables = lib.mkDefault true; boot.kernelParams = [ "mem_sleep_default=deep" ];
# Load GPU drivers.
# hardware.bumblebee.enable = lib.mkDefault true;
# High DPI for X users. 175 "looks reasonable" but I didn't do the actual DPI
# calculation.
# services.xserver.dpi = lib.mkDefault 175;
# Earlier font-size setup # Earlier font-size setup
console.earlySetup = true; console.earlySetup = true;
@@ -22,22 +16,9 @@
# Prevent small EFI partiion from filling up # Prevent small EFI partiion from filling up
boot.loader.grub.configurationLimit = 10; boot.loader.grub.configurationLimit = 10;
# The 48.ucode causes the Killer wifi card to crash. # Enable firmware updates via `fwupdmgr`.
# The iwlfwifi-cc-a0-46.ucode works perfectly services.fwupd.enable = lib.mkDefault true;
nixpkgs.overlays = [
(self: super: { # This will save you money and possibly your life!
firmwareLinuxNonfree = super.firmwareLinuxNonfree.overrideAttrs (old: { services.thermald.enable = lib.mkDefault true;
src = super.fetchgit {
url =
"https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git";
rev = "bf13a71b18af229b4c900b321ef1f8443028ded8";
sha256 = "1dcaqdqyffxiadx420pg20157wqidz0c0ca5mrgyfxgrbh6a4mdj";
};
postInstall = ''
rm $out/lib/firmware/iwlwifi-cc-a0-48.ucode
'';
outputHash = "0dq48i1cr8f0qx3nyq50l9w9915vhgpwmwiw3b4yhisbc3afyay4";
});
})
];
} }
+25
View File
@@ -0,0 +1,25 @@
{lib, ...}:
{
imports = [
../.
../../../../common/gpu/nvidia/prime.nix
];
hardware.nvidia = {
powerManagement = {
# Enable NVIDIA power management.
enable = lib.mkDefault true;
# Enable dynamic power management.
finegrained = lib.mkDefault true;
};
prime = {
# Bus ID of the Intel GPU.
intelBusId = lib.mkDefault "PCI:0:2:0";
# Bus ID of the NVIDIA GPU.
nvidiaBusId = lib.mkDefault "PCI:1:0:0";
};
};
}
+2 -2
View File
@@ -1,8 +1,8 @@
{ lib, pkgs, ... }: { lib, ... }:
{ {
imports = [ imports = [
../default.nix ../default.nix
../../../../common/gpu/nvidia.nix ../../../../common/gpu/nvidia/prime.nix
]; ];
hardware.nvidia.prime = { hardware.nvidia.prime = {
+22
View File
@@ -0,0 +1,22 @@
= Dell XPS 15 9510 =
== Tested Hardware ==
* CPU: 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
* RAM: 32 GB
* HDD: 1 TiB SSD
* Screen: 15" FHD+ (1920✕1200)
* Graphics: NVIDIA Corporation GA107M [GeForce RTX 3050 Ti Mobile] (rev a1), with Intel Corporation TigerLake-H GT1 [UHD Graphics] (rev 01).
* Input: Trackpad.
== Notes ==
Also tested with Dell WD19S Thunderbolt Dock.
== NVIDIA Offload ==
In order to run a program on the NVIDIA gpu, you can use the `nvidia-offload` function, for example:
```
nvidia-offload `nix-shell -p glxinfo --run 'glxgears'`
```
This is a short bash script that sets the proper environment variables and calls your command.
+16
View File
@@ -0,0 +1,16 @@
{ lib, ... }: {
imports = [
../../../common/cpu/intel
../../../common/pc/laptop
../../../common/pc/laptop/ssd
];
# This will save you money and possibly your life!
services.thermald.enable = lib.mkDefault true;
# WiFi speed is slow and crashes by default (https://bugzilla.kernel.org/show_bug.cgi?id=213381)
# Tuning based on iwlwifi reference(https://wiki.archlinux.org/title/Network_configuration/Wireless#iwlwifi)
boot.extraModprobeConfig = ''
options iwlwifi 11n_disable=8
'';
}
+29
View File
@@ -0,0 +1,29 @@
{ lib, pkgs, ... }: {
imports = [ ../../../../common/gpu/nvidia/prime.nix ];
#D-Bus service to check the availability of dual-GPU
services.switcherooControl.enable = lib.mkDefault true;
hardware = {
nvidia = {
prime = {
# Bus ID of the Intel GPU.
intelBusId = lib.mkDefault "PCI:0:2:0";
# Bus ID of the NVIDIA GPU.
nvidiaBusId = lib.mkDefault "PCI:1:0:0";
};
powerManagement = {
# Enable NVIDIA power management.
enable = lib.mkDefault true;
# Enable dynamic power management.
finegrained = lib.mkDefault true;
};
};
opengl = {
enable = lib.mkDefault true;
driSupport32Bit = lib.mkDefault true;
extraPackages = with pkgs; [ intel-media-driver intel-compute-runtime ];
};
};
}
+22
View File
@@ -0,0 +1,22 @@
= Dell XPS 15 9520 =
== Tested Hardware ==
* CPU: Intel(R) Core(TM) i7-12700H CPU
* RAM: 32 GB
* HDD: 1 TiB SSD
* Screen: 15" 4k (3840✕2160)
* Graphics: NVIDIA Corporation GA107M [GeForce RTX 3050 Ti Mobile], with Intel Graphics too.
* Input: Touchscreen and trackpad.
== Notes ==
Also tested with Dell WD19TB Thunderbolt Dock.
== NVIDIA Offload ==
In order to run a program on the NVIDIA gpu, you can use the `nvidia-offload` function, for example:
```
nvidia-offload `nix-shell -p glxinfo --run 'glxgears'`
```
This is a short bash script that sets the proper environment variables and calls your command.
+18
View File
@@ -0,0 +1,18 @@
{ lib, ... }:
{
imports = [
../../../common/cpu/intel
../../../common/pc/laptop
../../../common/pc/laptop/ssd
];
# This will save you money and possibly your life!
services.thermald.enable = lib.mkDefault true;
# WiFi speed is slow and crashes by default (https://bugzilla.kernel.org/show_bug.cgi?id=213381)
# disable_11ax - required until ax driver support is fixed
# power_save - works well on this card
boot.extraModprobeConfig = ''
options iwlwifi power_save=1 disable_11ax=1
'';
}
+15
View File
@@ -0,0 +1,15 @@
{ lib, ... }:
{
imports = [
../default.nix
../../../../common/gpu/nvidia/prime.nix
];
hardware.nvidia.prime = {
# Bus ID of the Intel GPU.
intelBusId = lib.mkDefault "PCI:0:2:0";
# Bus ID of the NVIDIA GPU.
nvidiaBusId = lib.mkDefault "PCI:1:0:0";
};
}
+1 -1
View File
@@ -5,7 +5,7 @@
../../../common/cpu/intel ../../../common/cpu/intel
../../../common/pc/laptop ../../../common/pc/laptop
# To just use Intel integrated graphics with Intel's open source driver # To just use Intel integrated graphics with Intel's open source driver
# ../../../common/gpu/nvidia-disable # ../../../common/gpu/nvidia/disable.nix
]; ];
# TODO: boot loader # TODO: boot loader
+2 -2
View File
@@ -1,8 +1,8 @@
{ lib, pkgs, ... }: { lib, ... }:
{ {
imports = [ imports = [
../default.nix ../default.nix
../../../../common/gpu/nvidia.nix ../../../../common/gpu/nvidia/prime.nix
]; ];
hardware.nvidia.prime = { hardware.nvidia.prime = {
+23 -2
View File
@@ -14,6 +14,8 @@
Not much tweaking of NixOS itself was needed. But we currently cannot automate the firmware setup, so this must be done by hand. Not much tweaking of NixOS itself was needed. But we currently cannot automate the firmware setup, so this must be done by hand.
== Installation ==
=== Before installation === === Before installation ===
These settings are needed both for booting the final install, and installer itself. Therefore, they must be done first. These settings are needed both for booting the final install, and installer itself. Therefore, they must be done first.
@@ -29,13 +31,23 @@ These settings are needed both for booting the final install, and installer itse
=== Optional === === Optional ===
* ''Disable C-States.'' This is a processor idling thing. It seems to cause random crashes (Blank screen, no normal panic debug dump). Unfortunately, without it, the computer cannot be suspended. On the other hand, it doesn't seem to affect acpi's estimation of battery life when the computer is running with minimal load, but I haven't tested battery life in practice. I list it as optional as there's a tradeoff, and the crashes are rare enough one can probably get through installation just fine. * ''Disable C-States.'' This is a processor idling thing. It seems to cause random crashes (Blank screen, no normal panic debug dump). Unfortunately, without it, the computer cannot be suspended. On the other hand, it doesn't seem to affect acpi's estimation of battery life when the computer is running with minimal load, but I haven't tested battery life in practice. I list it as optional as there's a tradeoff, and the crashes are rare enough one can probably get through installation just fine. This does not seem to be a problem on recent firmware/kernel versions.
* ''Update BIOS.'' According to Reddit, this helps with battery life. * ''Update BIOS.'' According to Reddit, this helps with battery life.
* ''Update Intel's Thunderbolt firmware.'' Without this, the Thunderbolt port will only work as power source, and not transfer data. * ''Update Intel's Thunderbolt firmware.'' Without this, the Thunderbolt port will only work as power source, and not transfer data.
=== Troubleshooting === == Optional Functionality ==
* ''Fan control'' This laptop supports Dell's own libsmbios: https://github.com/dell/libsmbios to set fan modes, as well as other bios settings. Simply add the `libsmbios` package to your environment.
* ''TPM 2.0 LUKS Decryption'' If using the experimental systemd initrd, the TPM can easily be used to decrypt the root partition at boot. Simply use `systemd-cryptenroll` with desired options.
* ''Firmware Upgrades'' `services.fwupd` and your desired front-end can be used to update almost all of the firmware on this system. Something curious is the BIOS offered through fwupd/lvfs is much newer than the one available on Dell's website.
* ''Secure Boot'' This works. There is more than one way to enable it. Tested with https://github.com/nix-community/lanzaboote v0.3.0
== Troubleshooting ==
==== rcu_sched freezing problems ==== ==== rcu_sched freezing problems ====
@@ -52,3 +64,12 @@ boot.kernelParams = [ "acpi_rev_override=1" "pcie_aspm=off" "nouveau.modeset=0"
``` ```
Some more detail about the problem can be found here: https://bbs.archlinux.org/viewtopic.php?id=223056 Some more detail about the problem can be found here: https://bbs.archlinux.org/viewtopic.php?id=223056
==== TPM 2.0 Intermittent ====
* The TPM was very unreliable, sometimes not showing up to the system. Updating to the latest TPM firmware fixed the problem. I could not seem to do this through `fwupd` so used the latest exe from the Dell website. Loading the exe through a command prompt on a Windows installer was adequate.
== Broken Functionality ==
* ''Fingerprint Reader'': Can be enabled with `services.fprintd.enable`, and can read your fingerprint. Fingerprint authentication is extremely reliable to the point it is not worth using.
+24 -9
View File
@@ -1,12 +1,27 @@
{ lib, pkgs, ... }:
{ {
imports = [ imports = [
../../../common/cpu/intel ../../../common/cpu/intel
../../../common/cpu/intel/kaby-lake
../../../common/pc/laptop ../../../common/pc/laptop
./xps-common.nix ./xps-common.nix
# FIXME: remove this when bumblebee works again
../../../common/gpu/nvidia/disable.nix
]; ];
/* Bumblebee seems to fail to evaluate:
(stack trace truncated; use '--show-trace' to show the full trace)
error: assertion '(useSettings -> (! libsOnly))' failed
at /home/joerg/git/nixpkgs/pkgs/os-specific/linux/nvidia-x11/generic.nix:61:1:
60|
61| assert useSettings -> !libsOnly;
| ^
62| assert !libsOnly -> kernel != null;
# This configuration makes intel default and optionaly applications could run nvidia with optirun. # This configuration makes intel default and optionaly applications could run nvidia with optirun.
# To Optimize for your use case import intel or nvidia only configuration instead # To Optimize for your use case import intel or nvidia only configuration instead
# xps-9560/intel # xps-9560/intel
@@ -14,11 +29,11 @@
# xps-9560/nvidia # xps-9560/nvidia
##### bumblebee working, needs reboot to take affect and to use it run: optirun "<application>" ##### bumblebee working, needs reboot to take affect and to use it run: optirun "<application>"
services.xserver.videoDrivers = lib.mkDefault [ "intel" "nvidia" ]; services.xserver.videoDrivers = [ "intel" "nvidia" ];
boot.blacklistedKernelModules = lib.mkDefault [ "nouveau" "bbswitch" ]; boot.blacklistedKernelModules = [ "nouveau" "bbswitch" ];
boot.extraModulePackages = lib.mkDefault [ pkgs.linuxPackages.nvidia_x11 ]; boot.extraModulePackages = [ config.boot.kernelPackages.nvidia_x11 ];
hardware.bumblebee.enable = lib.mkDefault true; hardware.bumblebee.enable = lib.mkDefault true;
hardware.bumblebee.pmMethod = lib.mkDefault "none"; hardware.bumblebee.pmMethod = lib.mkDefault "none";
*/
} }
+2 -3
View File
@@ -1,10 +1,9 @@
{ lib, pkgs, ... }:
{ {
imports = [ imports = [
../../../../common/cpu/intel ../../../../common/cpu/intel
../../../../common/cpu/intel/kaby-lake
../../../../common/pc/laptop ../../../../common/pc/laptop
../../../../common/gpu/nvidia-disable.nix ../../../../common/gpu/nvidia/disable.nix
../xps-common.nix ../xps-common.nix
]; ];
} }
+4 -4
View File
@@ -1,9 +1,9 @@
{ lib, pkgs, ... }: { ... }:
{ {
imports = [ imports = [
../../../../common/cpu/intel ../../../../common/cpu/intel
../../../../common/gpu/nvidia.nix ../../../../common/gpu/nvidia/prime.nix
../../../../common/pc/laptop ../../../../common/pc/laptop
../xps-common.nix ../xps-common.nix
]; ];
@@ -14,9 +14,9 @@
##### disable intel, run nvidia only and as default ##### disable intel, run nvidia only and as default
hardware.nvidia.prime = { hardware.nvidia.prime = {
# Bus ID of the Intel GPU. # Bus ID of the Intel GPU.
intelBusId = lib.mkDefault "PCI:0:2:0"; intelBusId = "PCI:0:2:0";
# Bus ID of the NVIDIA GPU. # Bus ID of the NVIDIA GPU.
nvidiaBusId = lib.mkDefault "PCI:1:0:0"; nvidiaBusId = "PCI:1:0:0";
}; };
} }
+2 -1
View File
@@ -1,7 +1,8 @@
{ lib, ... }: { lib, ... }:
{ {
boot.kernelParams = lib.mkDefault [ "acpi_rev_override" ]; # Solution to rcu_sched freezing
boot.kernelParams = [ "acpi_rev_override" ];
# This will save you money and possibly your life! # This will save you money and possibly your life!
services.thermald.enable = lib.mkDefault true; services.thermald.enable = lib.mkDefault true;
+30
View File
@@ -0,0 +1,30 @@
= Dell XPS 15 9570 =
== Tested Hardware ==
* CPU: Intel(R) Core(TM) i7-8750H CPU @ 4.10GHz
* RAM: 32 GB
* HDD: 512 GiB SSD
* Screen: 15.6" FHD(1920x1080) non-touchscreen
* Graphics: NVIDIA Corporation GTX1050 Ti Mobile 4GB GDDR5, with Intel Graphics too.
* Input: trackpad, bluetooth mouse and keyboard
== Firmware Configuration ==
Not much tweaking of NixOS itself was needed. But we currently cannot automate the firmware setup, so this must be done by hand.
== Installation ==
=== Before installation ===
These settings are needed both for booting the final install, and installer itself. Therefore, they must be done first.
* ''Disable Secure Boot (but keep UEFI Boot).'' Thankfully doing so is as easy as changing any other simple setting.
* ''Disable Intel hardware RAID and use AHCI instead.'' Intel doesn't seem to provide a working linux driver for this. (If you just have SSD it's pointless and just slows things down needlessly anyways.)
=== After installation ===
* ''Add systemd-boot to UEFI boot list.'' The (uneditable anyways) settings mapping drive UUIDs to HD* work fine.
+12
View File
@@ -0,0 +1,12 @@
{ lib, ... }:
{
imports = [
../../../common/cpu/intel
../../../common/cpu/intel/kaby-lake
../../../common/pc/laptop
./xps-common.nix
];
# Includes the Wi-Fi and Bluetooth firmware
hardware.enableRedistributableFirmware = lib.mkDefault true;
}
+8
View File
@@ -0,0 +1,8 @@
{
imports = [
../../../../common/cpu/intel
../../../../common/pc/laptop
../../../../common/gpu/nvidia/disable.nix
../xps-common.nix
];
}
Loaded 100 of 411 files, more files were not shown because too many files have changed in this diff. Show more