Compare commits

...
398 Commits
Author SHA1 Message Date
bors[bot] 7d92415c59 Try #477: 2022-10-05 16:15:39 +00:00
Jörg Thalheim 2b61d6502a Merge pull request #475 from NixOS/x1e-acpi-call
lenovo/thinkpad/x1-extreme: remove acpi_call
2022-10-05 18:00:31 +02:00
Jörg Thalheim baa69ed32c Merge pull request #476 from con-f-use/patch-1
framework-12th-gen-intel: workaround iGPU hangs
2022-10-05 17:59:07 +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
con-f-use 32ee2e6070 framework-12th-gen-intel: workaround iGPU hangs 2022-10-05 11:40:14 +02:00
K900 1788d8f74e lenovo/thinkpad/x1-extreme: remove acpi_call
It's deprecated and doesn't work correctly anyway. Recent firmwares can power the GPU off if it drops off the bus, which can be forced with udev rules.
2022-10-02 12:50:42 +03:00
bors[bot]andJörg Thalheim 3024c67a2e Merge #474
474: Add contributing docs for bors r=Mic92 a=Mic92



Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
2022-10-01 12:52:09 +00:00
Jörg Thalheim a2dab346f9 CONTRIBUTING.md: mention bors 2022-10-01 14:51:28 +02:00
Jörg Thalheim 55826e8997 Merge pull request #472 from NixOS/ci
add bors configuration
2022-10-01 14:48:21 +02:00
Jörg Thalheim 3a5dd128e4 add bors configuration 2022-09-29 23:42:38 +02:00
Sandro 12f905b731 Merge pull request #471 from NixOS/fix-eval 2022-09-29 14:01:58 +02:00
Jörg Thalheim 5c0995a012 thinkpad-z: fix eval 2022-09-29 13:32:55 +02:00
Sandro 203dd7d7b9 Merge pull request #470 from wrmilling/master 2022-09-28 19:43:59 +02:00
Winston R. Milling 9b98a70d46 Update disused function to runCommand
runCommandNoCC is deprecated.
2022-09-28 10:44:52 -05:00
Jörg Thalheim 2a7f39aac2 Merge pull request #467 from yu-re-ka/helios4
kobol/helios4: init
2022-09-28 11:03:08 +02:00
Jörg Thalheim 73f0058327 Merge pull request #468 from t184256/fix-runcommandnocc
onenetbook/4: stop using runCommandNoCC
2022-09-28 11:01:52 +02:00
Jörg Thalheim 8503c4c843 Merge pull request #469 from dev-null-undefined/master
Fixed utillinux package renaming
2022-09-28 11:01:40 +02:00
ThreshMain 2aa0939a65 Fixed utillinux package renaming 2022-09-28 01:57:22 +02:00
Alexander Sosedkin cc5d502030 onenetbook/4: stop using runCommandNoCC 2022-09-25 13:56:03 +02:00
Yureka 3774a528de kobol/helios4: init 2022-09-22 22:32:49 +02:00
Jörg Thalheim a0df6cd6e1 Merge pull request #462 from flosse/p16s
Add lenovo/thinkpad/p16s/amd/gen1
2022-09-15 10:12:37 +02:00
Jörg Thalheim f29ce8dd25 Merge pull request #464 from CalebJohn/t14amdgen3
Add thinkpad t14 amd gen3
2022-09-15 10:12:12 +02:00
CalebJohn 7aac946a06 Add thinkpad t14 amd gen3 to flake 2022-09-14 11:47:23 -07:00
Markus Kohlhase 1cf3862265 Add lenovo/thinkpad/p16s/amd/gen1 2022-09-14 13:44:17 +02:00
Jörg Thalheim 93580fca10 Merge pull request #465 from NixOS/ci
tests/run: enable experimental nix-command
2022-09-14 07:27:51 +02:00
Jörg Thalheim b71c3b7be7 Merge pull request #461 from ricci/framework-12th-gen-intel
Add support for Framework laptop, 12th gen Intel Core edition
2022-09-14 07:26:02 +02:00
Jörg Thalheim c4cb6735ba Merge pull request #460 from Guekka/ideapad-15arh05
add lenovo ideapad 5 15arh05
2022-09-14 07:25:28 +02:00
Celso Miranda bfbc3a181d Add support for Omen en00015p laptop (#457) 2022-09-14 06:25:11 +01:00
Jörg Thalheim 02bc52617a Merge pull request #455 from Weathercold/master
inspiron-7405: init
2022-09-14 07:24:46 +02:00
Jörg Thalheim e55c862c77 contributing: document how to run a single test 2022-09-14 07:24:15 +02:00
Jörg Thalheim 667b40e827 tests/run: enable experimental nix-command 2022-09-14 07:19:16 +02:00
Jörg Thalheim c34f36ac94 Merge pull request #459 from Weathercold/contrib-rewrite
CONTRIBUTING.md: rewrite
2022-09-14 07:14:54 +02:00
Jörg Thalheim 6686829e31 Merge pull request #463 from NixOS/t14s-amd-deep-sleep
tinkpad t14s amd: enable deep sleep
2022-09-14 07:10:49 +02:00
CalebJohn f6f318b52a Add thinkpad t14 amd gen3 2022-09-13 16:36:19 -07:00
Domen Kožar 305bbc2442 tinkpad t14s amd: enable deep sleep 2022-09-13 12:16:46 +01:00
Robert Ricci 3aaf1fe6ee Add framework-12th-gen-intel to flake.nix 2022-09-12 22:49:26 -06:00
Robert Ricci f0b864738d Set options specific to the 12th gen Framework
It requires a newer kernel than the 11th gen, and has some 'media keys'
that require different handling
2022-09-12 19:22:04 -06:00
Robert Ricci 3918f03d0d Initial support for Framework 12th Gen Intel Core
This commit simply replicates the base Framework, future commits will
specialize for this version
2022-09-12 11:53:42 -06:00
Guekka 1f9058d65d add lenovo ideapad 5 15arh05 2022-09-12 13:50:33 +02:00
Weathercold 3040e3422d CONTRIBUTING.md: rewrite 2022-09-10 01:08:51 -04:00
Weathercold bb36cedc0a README.md: fix dead links, align table 2022-09-09 23:45:57 -04:00
Weathercold 3ed1ae8ef7 inspiron-7405: init 2022-09-09 23:45:13 -04:00
Jörg Thalheim 1fec8fda86 Merge pull request #456 from rehno-lindeque/macbook-pro-11-5-updates
apple/macbook-pro/11-5: various tweaks and documentation
2022-09-09 11:16:07 +02:00
Rehno Lindeque 33642d338f apple/macbook-pro/11-5: add a note about switching between integrated and discrete graphics 2022-09-07 17:10:58 +00:00
Rehno Lindeque a4345da27e apple/macbook-pro/11-5: driver choice should be optional since si_support is experimental 2022-09-07 16:53:00 +00:00
Rehno Lindeque fd68d65507 apple/macbook-pro/11-5: add to top-level README 2022-09-07 15:45:43 +00:00
Rehno Lindeque 821ddbaf1c apple/macbook-pro/11-5: make enableRedistributableFirmware an optional default (uniformity with other configs) 2022-09-07 15:41:28 +00:00
Rehno Lindeque 1d10001701 apple/macbook-pro/11-5: Links to hardware probes 2022-09-07 15:37:40 +00:00
Rehno Lindeque a930f43803 apple/macbook-pro/11-5: document amdgpu driver choice 2022-09-07 15:36:38 +00:00
Rehno Lindeque c38ec64187 apple/macbook-pro/11-5: Use the newer amdgpu driver 2022-09-07 15:32:33 +00:00
Rehno Lindeque a318b2ebfa apple/macbook-pro/11-5: explicitly turn on redistributable firmware 2022-09-06 18:49:29 +00:00
Jörg Thalheim 504b32caf8 Merge pull request #454 from NixOS/SuperSandro2000-patch-1
Quote URL literal
2022-09-06 12:09:47 +02:00
Sandro dcb1052383 Quote URL literal 2022-09-04 19:59:03 +02:00
Jörg Thalheim 7866333317 Merge pull request #447 from aciceri/thinkpad-x1-g7
Removed unnecesary quirks and added `throttled` service
2022-09-02 05:22:28 +01:00
Jörg Thalheim 57164fc634 Merge pull request #452 from marijanp/z-series
lenovo/z: add Lenovo Thinkpad Z(13)
2022-09-02 05:22:11 +01:00
Jörg Thalheim 9e14a0b99c Merge pull request #448 from snpschaaf/add-t590
added lenovo thinkpad T590
2022-09-02 05:21:22 +01:00
Marijan Petričevićandtoastal fb635bfba0 lenovo/z: add Lenovo Thinkpad Z(13)
Co-authored-by: toastal <toastal@posteo.net>
2022-09-01 12:04:22 +02:00
Philippe Schaaf 7ffa41766a added lenovo thinkpad T590
Copied from T550 and T490 config.
Omit the pulseaudio profile from T490 config for now.

Signed-off-by: Philippe Schaaf <philippe.schaaf@secunet.com>
2022-08-18 08:54:15 +02:00
Andrea Ciceri adbeb1a5d6 Enable throttled for Thinkpad X1 gen 7 too
Even if this device is currently not mentioned upstream between the
devices that need this I stressed my machine (using `s-tui`) with and
without and I can confirm that it incremented the average CPU frequency
during the stress test (from 1.8/2GHz to around 3GHz).
2022-08-17 16:41:12 +02:00
Andrea Ciceri 2284621815 Quirks no more needed 2022-08-17 14:45:50 +02:00
Jörg Thalheim 12620020f7 Merge pull request #440 from carlossless/raspberry-pi-4-i2c-frequency
raspberry-pi-4: add i2c clock-frequency option
2022-08-13 17:11:59 +01:00
Karolis Stasaitis 51e4bdf379 raspberry-pi-4: add i2c clock-frequency option 2022-08-13 12:39:46 +02:00
Jörg Thalheim 78f56d8ec2 Merge pull request #446 from tomfitzhenry/pine64-remove-unused-blob
pine64-pinebook-pro: remove unused firmware blob
2022-08-12 09:03:31 +01:00
Jörg Thalheim 4387a4b5b0 Merge pull request #445 from tomfitzhenry/pbp-no-freq-override
pine64-pinebook-pro: remove inappropriate overriding of min_freq
2022-08-12 09:02:29 +01:00
Jörg Thalheim c0d4d3b325 Merge pull request #444 from tomfitzhenry/pbp-no-brightness-keys
pine64-pinebook-pro: remove superfluous bright/sleep keys
2022-08-12 09:01:07 +01:00
Tom Fitzhenry 128bfab1ff pine64-pinebook-pro: remove unused firmware blob
brcmfmac43456-sdio.clm_blob became unused as of https://github.com/NixOS/nixos-hardware/commit/3849fd959843be8f40651d38a46eb14af17f3918#diff-29a21aa2e853dac8828dabac348f6b5449c9ebe6192b6ba4bd7e118f90734fe6 (see that 'clm_blob' is removed)

Rather, this file exists in the src repo: https://github.com/nix-community/rkwifibt/blob/ef8e000ddde8be5ae9a82a5e58e7278d5ca4b150/clm_blob/broadcom/AP6256/brcmfmac43456-sdio.clm_blob
2022-08-11 20:46:37 +10:00
Tom Fitzhenry 45f23f335e pine64-pinebook-pro: remove inappropriate overriding of min_freq
Power management should be left to a power management daemon (e.g. gnome-power-manager) or for users to set/override themselves.

I use governor 'schedutil', which is big.LITTLE aware, and thus can sensibly downclock, but min_freq prevents that.
2022-08-10 23:09:16 +10:00
Jörg Thalheim 3975d5158f Merge pull request #441 from AndrewKvalheim/dell/xps/13-9350
Add Dell XPS 13 9350
2022-08-09 08:41:56 +01:00
Jörg Thalheim f064a4e411 Merge pull request #442 from carlossless/raspberry-pi-4-poe-hats
raspberry-pi-4: add poe-plus-hat, update poe-hat, use dtmerge instead of fdtoverlay
2022-08-09 08:40:31 +01:00
Tom Fitzhenry 18575b969c pine64-pinebook-pro: remove superfluous bright/sleep keys
Upstream udev has had that since 2020: https://github.com/systemd/systemd/commit/f25e30dec4958ba3ab972b823210fcbc9dd231da
2022-08-09 06:04:43 +10:00
Karolis Stasaitis f217e0c09a use dtmerge from nativeBuildInputs 2022-08-08 19:07:05 +02:00
Karolis Stasaitis bfc438a275 misplaced semicolon 2022-08-08 19:06:06 +02:00
Karolis Stasaitis f410badac5 added missing semicolon 2022-08-08 18:46:26 +02:00
Karolis Stasaitis 3f0991b531 export a single function from apply-overlays-dtmerge 2022-08-08 18:41:30 +02:00
Karolis Stasaitisandj-k 245d8f9f97 apply review suggestions from @06kellyjac
Co-authored-by: j-k <dev@j-k.io>
2022-08-08 18:27:49 +02:00
Karolis Stasaitis 128dad1c8d raspberry-pi-4: add poe-plus-hat, update poe-hat, use dtmerge instead of ftoverlay 2022-08-07 13:40:17 +02:00
Andrew Kvalheim bb846f8ed9 Add Dell XPS 13 9350
Reviewed on a Dell XPS 13 Developer Edition 9350.

No Skylake-specific configuration is necessary:

  - RC6 sleep is automatically detected configured by default, and
    `i915.enable_rc6` no longer exists.

  - Frame buffer compression (FBC) is automatically detected and enabled
    by default, so `i915.enable_fbc` is unnecessary.

  - Panel self refresh (PSR) is automatically detected and enabled by
    default, so `i915.enable_psr` is unnecessary.

Wireless card detection log:

    iwlwifi 0000:3a:00.0: Detected Intel(R) Dual Band Wireless AC 8260, REV=0x204

Touchpad detection log:

    psmouse serio1: synaptics: queried max coordinates: x [..5666], y [..4734]
    psmouse serio1: synaptics: queried min coordinates: x [1276..], y [1118..]
    psmouse serio1: synaptics: Your touchpad (PNP: DLL0704 PNP0f13) says it can support a different bus. If i2c-hid and hid-rmi are not used, you might want to try setting psmouse.synaptics_intertouch to 1 and report this to linux-input@vger.kernel.org.
    psmouse serio1: synaptics: Advanced gesture mode init failed: -5
    psmouse serio1: synaptics: Unable to initialize device.
    input: DLL0704:01 06CB:76AE Mouse as /devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-8/i2c-DLL0704:01/0018:06CB:76AE.0004/input/input26
    input: DLL0704:01 06CB:76AE Touchpad as /devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-8/i2c-DLL0704:01/0018:06CB:76AE.0004/input/input27
    hid-multitouch 0018:06CB:76AE.0004: input,hidraw3: I2C HID v1.00 Mouse [DLL0704:01 06CB:76AE] on i2c-DLL0704:01
    psmouse serio1: Failed to enable mouse on isa0060/serio1

i915 debug log:

    i915 device info: pciid=0x1926 rev=0x0a platform=SKYLAKE (subplatform=0x1) gen=9
    i915 device info: graphics version: 9
    i915 device info: media version: 9
    i915 device info: display version: 9
    i915 device info: gt: 3
    i915 device info: iommu: disabled
    i915 device info: memory-regions: 5
    i915 device info: page-sizes: 11000
    i915 device info: platform: SKYLAKE
    i915 device info: ppgtt-size: 48
    i915 device info: ppgtt-type: 2
    i915 device info: dma_mask_size: 39
    i915 device info: is_mobile: no
    i915 device info: is_lp: no
    i915 device info: require_force_probe: no
    i915 device info: is_dgfx: no
    i915 device info: has_64bit_reloc: yes
    i915 device info: gpu_reset_clobbers_display: no
    i915 device info: has_reset_engine: yes
    i915 device info: has_global_mocs: no
    i915 device info: has_gt_uc: yes
    i915 device info: has_l3_dpf: no
    i915 device info: has_llc: yes
    i915 device info: has_logical_ring_contexts: yes
    i915 device info: has_logical_ring_elsq: no
    i915 device info: has_mslices: no
    i915 device info: has_pooled_eu: no
    i915 device info: has_rc6: yes
    i915 device info: has_rc6p: no
    i915 device info: has_rps: yes
    i915 device info: has_runtime_pm: yes
    i915 device info: has_snoop: no
    i915 device info: has_coherent_ggtt: yes
    i915 device info: unfenced_needs_alignment: no
    i915 device info: hws_needs_physical: no
    i915 device info: cursor_needs_physical: no
    i915 device info: has_cdclk_crawl: no
    i915 device info: has_dmc: yes
    i915 device info: has_ddi: yes
    i915 device info: has_dp_mst: yes
    i915 device info: has_dsb: no
    i915 device info: has_dsc: no
    i915 device info: has_fbc: yes
    i915 device info: has_fpga_dbg: yes
    i915 device info: has_gmch: no
    i915 device info: has_hdcp: yes
    i915 device info: has_hotplug: yes
    i915 device info: has_hti: no
    i915 device info: has_ipc: yes
    i915 device info: has_modular_fia: no
    i915 device info: has_overlay: no
    i915 device info: has_psr: yes
    i915 device info: has_psr_hw_tracking: yes
    i915 device info: overlay_needs_physical: no
    i915 device info: supports_tv: no
    i915 device info: rawclk rate: 24000 kHz
    i915 device info: available engines: 40f
    i915 device info: slice total: 2, mask=0003
    i915 device info: subslice total: 6
    i915 device info: slice0: 3 subslices, mask=00000007
    i915 device info: slice1: 3 subslices, mask=00000007
    i915 device info: slice2: 0 subslices, mask=00000000
    i915 device info: EU total: 48
    i915 device info: EU per subslice: 8
    i915 device info: has slice power gating: yes
    i915 device info: has subslice power gating: no
    i915 device info: has EU power gating: yes
2022-08-03 11:07:04 -07:00
Jörg Thalheim ea3efc80f8 Merge pull request #438 from pasqui23/pstate
Adding amd pstate handling
2022-08-01 13:14:34 +01:00
Jörg Thalheim a01a1095e4 amd pstate: small typo 2022-08-01 14:14:12 +02:00
pasqui23andSandro 68a27c2b00 Clarify kernel version condition
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-08-01 12:03:29 +02:00
paki23 8732fa9eb5 clarify amd pstate 2022-07-31 20:13:42 +02:00
paki23 b183aac0ac g733qs: addded amd pstate handling 2022-07-31 13:57:49 +02:00
paki23 5e9934fa07 pstate:init
fixup pstate
2022-07-31 13:57:38 +02:00
Jörg Thalheim 727a099e87 Merge pull request #437 from symphorien/inspiron-5515
inspiron-5515: fix race for fix-touchpad.sh
2022-07-31 09:39:25 +01:00
Guillaume Girol fed22c2d60 inspiron-5515: fix race for fix-touchpad.sh
On rare occasions, the module would be removed before suspend and the touchpad would be
disabled on boot.
2022-07-29 21:16:28 +02:00
Jörg Thalheim 83009edccc Merge pull request #435 from mkgvt/master
Adds support for Thinkpad T460p
2022-07-21 11:57:07 +01:00
Mark K Gardner b19015a0ba Adds support for Thinkpad T460p 2022-07-19 09:06:58 -04:00
Ryan Horiguchi e3259b25eb Fix legion 7 slim 15ach6 2022-07-19 09:06:57 -04:00
Jörg Thalheim 0015f5cc09 Merge pull request #436 from rhoriguchi/master
Fix legion 7 slim 15ach6
2022-07-19 11:51:03 +01:00
Ryan Horiguchi 122ae8476a Fix legion 7 slim 15ach6 2022-07-18 08:52:34 +02:00
Jörg Thalheim 76c9664813 Merge pull request #432 from mcdonc/p50-and-p51
Add Lenovo Thinkpad P50 and P51
2022-07-14 08:53:36 +02:00
Chris McDonough 0e7decc220 fix merge conflicts from p52-to-master merge 2022-07-13 17:48:44 -04:00
Jörg Thalheim 14e9f7298c Merge pull request #433 from mcdonc/p52
add p52
2022-07-13 21:01:26 +02:00
Chris McDonough 6aafb9960b comment about silencing ACPI errors 2022-07-13 01:15:35 -04:00
Chris McDonough 66f8f007d0 add comment about normalizing dpi between sync and offload mode 2022-07-12 23:02:05 -04:00
Chris McDonough a3f3326899 add comment about normalizing dpi between sync and offload mode 2022-07-12 23:01:26 -04:00
Chris McDonough e8e0e7dc37 conditionally turn on power management and modesetting when we are in sync mode 2022-07-12 20:02:44 -04:00
Chris McDonough 6261a28429 conditionally turn on power management and modesetting when we are in sync mode 2022-07-12 20:01:42 -04:00
Chris McDonough fd08b05aed comment about acpi errors 2022-07-12 17:11:02 -04:00
Chris McDonough 116ae977ab throttled consistency 2022-07-11 17:44:39 -04:00
Chris McDonough 6bd8ae5409 flake changes 2022-07-11 14:05:13 -04:00
Chris McDonough 20530b31ef flake changes 2022-07-11 14:04:34 -04:00
Chris McDonough 47cb2be872 mkDefault consistency 2022-07-10 19:13:48 -04:00
Chris McDonough c2295916b3 mkDefault consistency 2022-07-10 19:10:49 -04:00
Chris McDonough bd873a9807 cannot replicate sleep problem without external monitor or any usb device plugged in 2022-07-09 04:36:30 -04:00
Chris McDonough f5d9dd114f cannot replicate findings for sleep not working when system has no usb or external video plugged in to it, make wireless work 2022-07-08 23:11:43 -04:00
Chris McDonough 22cdffc925 turns out hardware.enableAllFirmware is also required for p51 wireless 2022-07-07 10:00:40 -04:00
Chris McDonough 005e19d6f0 required to make wireless work 2022-07-07 09:31:42 -04:00
Chris McDonough ac75bbc476 transform sleep comment into optionally includable expression 2022-07-05 17:45:16 -04:00
Chris McDonough e36b0c4022 add p52 2022-07-05 14:39:22 -04:00
Chris McDonough f90db4cb9e add p50 and p51 2022-07-04 23:24:35 -04:00
Sandro 3bf48d3587 Merge pull request #431 from SuperSamus/patch-1
AMD: Add lib.mkDefault to AMD_VULKAN_ICD
2022-07-04 13:21:50 +02:00
SuperSamus 0efe78c51a AMD: Add lib.mkDefault to AMD_VULKAN_ICD 2022-07-02 23:39:55 +02:00
Jörg Thalheim c530838143 Merge pull request #429 from xfix/lenovo-gen4
thinkpad/x1-extreme/gen4: add module
2022-07-01 21:04:22 +02:00
Konrad Borowski c3aa1fae79 lenovo/thinkpad/x1-extreme/gen4: add module 2022-07-01 20:54:40 +02:00
Thiago Kenji Okada a50513f8a6 Merge pull request #430 from Melkor333/master
Fix Wifi for Lenovo Thinkpad T14s Gen1
2022-06-30 22:28:24 +01:00
Samuel Hierholzer 3d9b6a6215 Fix Wifi for Lenovo Thinkpad T14s Gen1 2022-06-28 08:28:04 +02:00
Jörg Thalheim 78e7c2c397 Merge pull request #428 from NixOS/macbook-pro-flake
flake.nix: add macbook-pro
2022-06-27 20:16:57 +02:00
André Silva a3dfc3100b flake.nix: add macbook-pro 2022-06-26 13:20:38 +01:00
Thiago Kenji Okada 99e33a5714 Merge pull request #426 from ulrikstrid/ulrikstrid--16ITHg6
Add lenovo legion 7 16ITHg6
2022-06-26 11:57:44 +01:00
Thiago Kenji Okada 9aa5395bd5 Merge pull request #427 from thiagokokada/fix-nvidia-offload
nvidia: remove `-a` flag from exec
2022-06-26 11:56:00 +01:00
Thiago Kenji Okada 9194b8e949 nvidia: remove -a flag from exec
The `-a` from exec sets the `$0` from the process. So `exec -a "$0"`
would set the name of the new process to `nvidia-offload` (the name of
the script), however this is causing issues with a few programs that try
to interpret `$0` in a special way. For example, see `wine`:

```
$ nvidia-offload /nix/store/zhv91s26gsrl1w8yn9800xd03a31r3wj-wine-osu-7.0/bin/wine .osu/drive_c/osu/osu\!.exe
/nix/store/zhv91s26gsrl1w8yn9800xd03a31r3wj-wine-osu-7.0/bin/nvidia-offload: could not open
```

What I think `wine` is doing here is trying to re-exec `wine` again, but
to do so it tries to figure out the original call of wine by readind `$0`,
and will fail in this case because the `$0` was changed because of the
`nvidia-offload` script using `-a` flag, as explained above.

Instead, let's simplify this. There is no good reason to rename the `$0`
from the script anyway (it just sets a few environment variables), so let's
just remove it. We may lose the ability to know if the command is being
offloaded, but I think having more commands to work is a good trade-off.
2022-06-24 23:45:31 +01:00
Ulrik Strid 9ec5f52ea2 Add lenovo legion 7 16ITHg6 2022-06-23 09:30:05 +02:00
Jörg Thalheim f9d8dff4e6 Merge pull request #425 from Moredread/common
flake.nix: add common-gpu-intel
2022-06-21 06:35:51 +01:00
André-Patrick Bubel 26291dec5b flake.nix: add common-gpu-intel 2022-06-21 06:12:29 +02:00
Jörg Thalheim 0cab18a48d Merge pull request #422 from NixOS/msi-gl62-ini
msi/gl62: reworked
2022-06-01 05:29:57 +01:00
Jörg Thalheim 03fd7b6bd0 msi/gl62: also include basic README 2022-06-01 06:27:46 +02:00
Raphiel Rollerscaperers 0543980bd6 msi/gl62: init
This commit initialize support for MS-16J61 (Laptop) Motherboard
with unified BIOS of E16J6IMS, which includes:

  - MSI GL62 6QD
  - MSI GL62 6QC
  - MSI CX62 6QD
  - MSI CR62 6M
2022-06-01 06:25:02 +02:00
Sandro 8252035d61 Merge pull request #421 from sbruder/p14s-rtw89
p14s: ensure rtw89 driver is available
2022-05-31 22:49:55 +02:00
Simon Bruder 07e5049f8f p14s: ensure rtw89 driver is available 2022-05-31 13:38:23 +02:00
Jörg Thalheim 39a7bfc496 Merge pull request #418 from sauricat/master
update readme: known issue of disability waking from suspend
2022-05-25 08:20:24 +01:00
Jörg Thalheim fb4213bf01 Merge pull request #419 from Emiller88/framework-firmware
docs(framework): Add notes about updating firmware
2022-05-25 08:19:23 +01:00
Edmund Miller 0f00877343 docs(framework): Add notes about updating firmware
https://github.com/NixOS/nixos-hardware/pull/406#issuecomment-1132577510
2022-05-23 10:28:22 -05:00
Shu Lin 169611d1d7 update readme: known issue 2022-05-23 21:46:43 +08:00
Jörg Thalheim 8b5e1bf2fd Merge pull request #412 from j-steinbach/dell-latitude-5520
Add Dell Latitude 5520
2022-05-21 16:01:52 +01:00
JSteinbach e850604127 Add Dell Latitude 5520 2022-05-21 15:10:54 +02:00
Jörg Thalheim be2b338c6a Merge pull request #416 from reedriley/framework
framework: add nvme.noacpi=1 and make fprintd optional
2022-05-20 17:55:54 +01:00
Reed Riley 4a8259f0e2 framework: add nvme.noacpi=1 2022-05-20 11:21:11 -04:00
Reed Riley de8271f760 framework: make it possible to disable fprintd if desired 2022-05-20 11:07:10 -04:00
Jörg Thalheim b49fe0e96e Merge pull request #405 from anthonyroussel/fix-xps_9560-primus_deprecations
dell-xps-15-9560-nvidia: switch to Nvidia Offload mode to save battery power
2022-05-20 07:57:41 +01:00
Jörg Thalheim 31e258c27d Merge pull request #408 from koalp/master
Add acpi_call for lenovo thinkpad x270
2022-05-20 07:57:23 +01:00
Jörg Thalheim ca4e0ca186 Merge pull request #415 from NixOS/framework
framework: acpilight should be used
2022-05-20 07:55:53 +01:00
Irene Knapp 162fb7a987 framework: acpilight should be used 2022-05-20 08:49:38 +02:00
Jörg Thalheim 36daf08049 Merge pull request #414 from amarshall/fw-udev
framework: Fix headphone noise when on powersave
2022-05-20 07:47:51 +01:00
Jörg Thalheim ae5047bcd0 Merge pull request #413 from amarshall/fw-mic
framework: Fix TRRS headphones missing a mic
2022-05-20 07:47:02 +01:00
Andrew Marshall 34485f1807 framework: Fix TRRS headphones missing a mic
As in the below forum post, this is not perhaps the most ideal solution
to the problem, but it is the simplest.

https://community.frame.work/t/headset-microphone-on-linux/12387/3
2022-05-19 15:56:34 -04:00
Andrew Marshall f3dfd30170 framework: Fix headphone noise when on powersave
https://community.frame.work/t/headphone-jack-intermittent-noise/5246/55
2022-05-19 15:51:19 -04:00
koalp b750b56a20 feat: add acpi_call and ssd for thinkpad x270
acpi_call is required to use tlp on lenovo thinkpad x270 and some x270
have an ssd.

Therefor, acpi_call and ssd have been added to the lenovo thinkpad x270
hardware config.
2022-04-24 12:47:42 +02:00
Jörg Thalheim 6b4ebea909 Merge pull request #401 from workflow/dell-xps-17-9700
Add Dell XPS 17 9700
2022-04-21 07:34:06 +01:00
Jörg Thalheim 7b0845d8c1 Merge pull request #389 from bbigras/intel-gpu
extract GPU stuff from common/cpu/intel to common/gpu/intel.nix
2022-04-21 07:32:14 +01:00
workflow 4a0cdc97c8 no longer ignore kernel config errors 2022-04-15 10:39:16 +01:00
Jörg Thalheim 1a0ccdbf45 Merge pull request #407 from aciceri/master
Missing `brcmfmac43456-sdio.clm_blob` for Pinebook Pro's AP6256 firmware
2022-04-13 12:31:54 +01:00
Jörg Thalheim 5c95599061 framework: bump kernel version (#406)
* framework: bump kernel version
2022-04-13 10:27:33 +01:00
Andrea Ciceri 3849fd9598 Merge remote-tracking branch 'upstream/master' 2022-04-12 22:25:21 +02:00
Bruno Bigrasandamesgen bb8b3f19e0 Update flake.nix
Co-authored-by: amesgen <amesgen@amesgen.de>
2022-04-12 11:17:21 -04:00
Bruno Bigras 53b470587f split CPU and GPU from common/cpu/intel
fix #388
2022-04-12 11:08:50 -04:00
Andrea Ciceri ad125d3cc8 Merge branch 'master' of github.com:aciceri/nixos-hardware 2022-04-12 11:28:03 +02:00
Andrea Ciceri 32e12dbc20 Missing clm blob for Pinebook's AP6256 firmware 2022-04-12 11:27:54 +02:00
Anthony Roussel 68c87edeb9 dell-xps-15-9560-nvidia: use Nvidia Offload mode to save battery power
Also rename deprecated `hardware.nvidia.optimus_prime.*' to `hardware.nvidia.prime.*' since NixOS 20.09.

> The hardware.nvidia.optimus_prime.enable service has been renamed to
> hardware.nvidia.prime.sync.enable and has many new enhancements.
> Related nvidia prime settings may have also changed.

See https://nixos.org/manual/nixos/stable/release-notes.html#sec-release-20.09
2022-04-11 16:44:32 +02:00
dependabot[bot] f4160a629b build(deps): bump cachix/install-nix-action from 16 to 17 (#404)
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 16 to 17.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v16...v17)

---
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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 08:07:30 +01:00
Andrea CiceriandJörg Thalheim 850308db3e Add: pinebook-pro @aciceri
Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
2022-04-09 08:10:42 +01:00
Jörg Thalheim 710e33cb93 pine64/pinebook-pro: typos in README 2022-04-09 09:02:56 +02:00
Andrea Ciceri cb8db9e1bb New source for ap6256-firmware and removed unstable kernel 2022-04-08 11:14:06 +02:00
Andrea CiceriandJörg Thalheim be88ca8b75 Update pine64/pinebook-pro/README.md
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2022-04-08 10:41:13 +02:00
Jörg Thalheim ddeb6a0aa4 Merge pull request #402 from twoolie/patch-1
Remove `intel_iommu=on` by default for all X1 models.
2022-04-08 08:00:45 +01:00
Jörg Thalheim 6c6e161b10 Merge pull request #400 from vroad/remove-swappiness
Remove swappiness config
2022-04-08 08:00:24 +01:00
Andrea Ciceri 6d1bd5bc2e Custom patched kernel is not the default anymore 2022-04-01 19:59:27 +02:00
Thomas Woolford 08cf55e7b6 Remove intel_iommu=on by default for all X1 models.
IOMMU still breaks suspend/resume on multiple Lenovo models including X1.
Currently broken on at least Gen4 which I'm testing on. Hard locks the system during suspend.

This thread claims it works on Gen4 with kernel 5.16.1 but it doesn't work on my hardware, firmware fully updated.
https://bugzilla.kernel.org/show_bug.cgi?id=197029

This should probably be turned on individually for models known to work until it can be more thoroughly tested.
2022-04-01 23:06:12 +10:30
638263b724 Add Dell XPS 17 9700
Co-authored-by: Ivan Malison <IvanMalison@gmail.com>
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2022-04-01 10:10:15 +01:00
vroad ae3ac92431 Remove swappiness config 2022-03-31 10:44:20 +09:00
Andrea Ciceri e1b2cf65a7 add: pinebook-pro 2022-03-29 23:31:55 +02:00
Jörg Thalheim feceb4d24f Merge pull request #395 from noghartt/ssd-on-thinkpad-t14
Add SSD module to ThinkPad T14
2022-03-24 16:57:06 +00:00
Guilherme Ananias 8c6b773900 add laptop/ssd module to thinkpad-t14 2022-03-24 13:43:32 -03:00
Jörg Thalheim c326257692 Merge pull request #392 from rhoriguchi/master
Add lenovo legion 7 slim 15ach6
2022-03-23 13:54:24 +00:00
Jörg Thalheim 7c645f246e Merge pull request #394 from sagikazarmark/fix-mic-button-on-asus-zephyrus-ga503
fix: asus zephyrus g15 mute button
2022-03-23 13:53:50 +00:00
Ryan Horiguchi 27e7087af5 Add lenovo legion 7 slim 15ach6 2022-03-23 13:44:38 +01:00
Mark Sagi-Kazar 1e9c05daf2 fix: asus zephyrus g15 mute button
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2022-03-23 13:26:43 +01:00
Jörg Thalheim a352d86727 Merge pull request #390 from feijoas/master
add support for lenovo X1 yoga
2022-03-23 07:55:49 +00:00
Jörg Thalheim d1d1134d50 Merge pull request #393 from sagikazarmark/add-asus-zephyrus-ga503
Add asus rog zephyrus ga503
2022-03-23 07:55:14 +00:00
Mark Sagi-Kazar 17890dd758 add asus rog zephyrus ga503
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2022-03-23 02:17:40 +01:00
Markus Schneider 83c1cd4a5a add support for lenovo X1 yoga 2022-03-16 18:25:14 +01:00
Jörg Thalheim 32f61571b4 Merge pull request #391 from SuperSamus/radv
AMD: Prefer RADV
2022-03-16 16:20:44 +00:00
Martino Fontana abd470874b AMD: Prefer RADV 2022-03-16 17:09:08 +01:00
Jörg Thalheim 816a935bf5 Merge pull request #372 from Emiller88/framework
feat(framework): Add initial support
2022-03-09 11:39:42 +00:00
Edmund Miller 081907627c fix(framework): Drop GTK environment variables
https://github.com/NixOS/nixos-hardware/pull/376
2022-03-08 09:18:35 -06:00
Edmund Miller 59753d2f8a fix(framework): Remove fonts.fontconfig.dpi
It no longer has any effect and tests fail then.
2022-03-08 09:18:35 -06:00
Edmund Miller d0fd296ecd docs: Add framework 2022-03-08 09:18:33 -06:00
Edmund Miller 4a7e3d64f4 fix(framework): Follow x1 QHD settings 2022-03-08 09:18:18 -06:00
Edmund Miller f7244a341f feat(framework): Add initial settings
- Enable deep sleep
- Use kernel that's 5.12 or latest
- Enable fingerprint scanner
- HiDPI
2022-03-08 09:18:18 -06:00
Jörg Thalheim c730530902 Merge pull request #380 from LunNova/asus-battery-fix
asus/battery.nix: fix chargeUpto after suspend/resume, make script optional
2022-03-08 15:01:26 +00:00
Jörg Thalheim 86fa91c21f Merge pull request #386 from sielicki/master
add legion 5 (lenovo-legion-15arh05h)
2022-03-07 10:00:49 +00:00
Jörg Thalheim a91de8c914 Merge pull request #387 from NixOS/dependabot/github_actions/actions/checkout-3
build(deps): bump actions/checkout from 2 to 3
2022-03-07 06:48:05 +00:00
dependabot[bot] 10f6346d98 build(deps): bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [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/v2...v3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-07 02:02:31 +00:00
Nicholas Sielicki 72d4903998 add lenovo legion 5 15ARH05H 2022-03-06 20:40:20 +00:00
Nicholas Sielicki b6d10e0e1b Fix alphabetical sort on readme table 2022-03-06 20:38:45 +00:00
Nicholas Sielicki 478cc4aa6e make comment more clear that it applies to all igpus, not just intel 2022-03-06 19:25:42 +00:00
Jörg Thalheim a7bca8d0d8 Merge pull request #383 from ettom/master
Add rpi4 pwm0 support
2022-03-04 12:52:02 +00:00
Jörg Thalheim 466eff0875 Merge pull request #385 from NixOS/surface-kernel
Surface kernel
2022-03-04 12:51:07 +00:00
Jörg Thalheim d27442ac2f import editorconfig from nixpkgs
some sections that were not applicable were left out
2022-03-04 13:41:36 +01:00
Jörg Thalheim b94d24f855 rpi2: unset nix.buildCores
by default it already sets buildCores == available cores
2022-03-04 13:41:27 +01:00
kiana-S 3e4d52da0a surface/kernel: 5.13.4 -> 5.16.11 2022-03-04 13:41:15 +01:00
Jörg Thalheim c3c66f6db4 Merge pull request #384 from ilkecan/define-VDPAU_DRIVER
common/cpu/intel: define VDPAU_DRIVER env variable
2022-02-26 05:59:57 +00:00
ilkecan 1da3ba110c common/cpu/intel: define VDPAU_DRIVER env variable
`libvdpau-va-gl` is a wrapper around VAAPI to have a VDPAU driver, which
is required for Intel GPU's. `VDPAU_DRIVER` environment variable is set
to "va_gl", since it defaults to "nvidia".
2022-02-26 03:01:01 +00:00
Jörg Thalheim a8d33117de Merge pull request #382 from ursi/microsoft-surface-wifi
Refactor ath10k-replace to no longer need an outputHash
2022-02-25 13:44:38 +00:00
ettom 1c076b237f Add rpi4 pwm0 support 2022-02-24 16:02:40 +02:00
Jörg Thalheim ca893110b3 assus/battery: rename option to match nixpkgs convention 2022-02-23 10:23:56 +01:00
Mason Mackaman b633d393e2 Refactor ath10k-replace to no longer need an outputHash
The outputHash would change and frequently cause this to not work. This
gets around the issue by using the built version firmwareLinuxNonfree as
a source instead of trying to patch it directly.
2022-02-20 12:23:14 -05:00
Luna NovaandJörg Thalheim 472f72a42d Apply @Mic92's pkgs.runtimeShell suggestion
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2022-02-20 06:16:38 -08:00
Jörg Thalheim 1ccfe243aa Merge pull request #379 from kilimnik/master
flake.nix add missing profiles
2022-02-20 08:46:22 +00:00
Luna Nova acded13f27 asus/battery.nix: fix chargeUpto after suspend/resume, make script optional 2022-02-19 16:09:26 -08:00
Daniel Kilimnik 93647384a6 flake.nix add missing profiles 2022-02-19 21:03:49 +01:00
Jörg Thalheim 10eab1c4cd Merge pull request #375 from adomixaszvers/fix/lenovo-thinkpad-l13-yoga
Fix flake output lenovo-thinkpad-l13-yoga
2022-02-14 20:21:32 +00:00
Jörg Thalheim 9a11a5b7cd Merge pull request #377 from dev-null-undefined/master
Added msi-gs60 to flake modules
2022-02-14 20:19:41 +00:00
Jörg Thalheim ac307defda Merge pull request #370 from esterlus/este/t14gen2
added thinkpad t14 gen2 and copied t14s files where applicable
2022-02-14 20:14:05 +00:00
dev-null-undefined f3a00cd932 Added msi-gs60 to flake modules 2022-02-14 13:35:06 +01:00
Jörg Thalheim c361b95475 Merge pull request #376 from NixOS/hidpi
thinkpad/x1/6th-gen/QHD: drop gtk hidpi env variables
2022-02-12 18:53:08 +00:00
Jörg Thalheim 6b6f4f8dd6 thinkpad/x1/6th-gen/QHD: drop gtk hidpi env variables
Those actually break Gnome/wayland. They might work on x11.
2022-02-12 19:42:06 +01:00
Adomas Jatužis 6aeea68f60 lenovo-thinkpad-l13-yoga: fix flake output 2022-02-12 10:11:45 +02:00
Ronny Esterluss 1c5bade895 updated flake.nix to include t14 amd gen2 2022-02-08 08:56:25 +01:00
Ronny Esterluss 6e9617a733 readded t14 amd gen1 to new folder structure 2022-02-04 15:10:46 +01:00
Jörg Thalheim 9886a06e47 Merge pull request #371 from NixOS/feature/hp/elitebook/2560p/initial
Feature/hp/elitebook/2560p/initial
2022-02-04 13:07:17 +00:00
Jörg Thalheim e93140487c elitebook/2560p: fix reference in markdown 2022-02-04 13:59:12 +01:00
Antoine Viallon 27032fb493 hp/elitebook/2560p: Remove redundant graphics settings. 2022-02-04 13:48:49 +01:00
Antoine Viallon 12d52a8025 hp/elitebook/2560p: Update project README 2022-02-04 13:48:49 +01:00
Antoine Viallon 58103331f5 hp/elitebook/2560p: Initial commit 2022-02-04 13:48:49 +01:00
Ronny Esterluss 2e4ee9d5e8 removed empty newline 2022-02-02 10:54:59 +01:00
Ronny Esterluss ce38b7abb1 added thinkpad t14 gen2 and copied t14s files where applicable 2022-02-02 10:54:31 +01:00
Jörg Thalheim 57c7dfde9d Merge pull request #367 from NixOS/surface
Surface: refactoring + wifi firmware
2022-02-02 09:56:22 +01:00
Jörg Thalheim 5e720c70a8 microsoft/surface: enable redistributable firmware 2022-02-02 09:49:37 +01:00
Jörg Thalheim b9fb6c76d1 microsoft/surface: just inline hardware_configuration
Everything in nixos-hardware should be hardware configuration after all.
2022-02-02 09:49:37 +01:00
Jörg Thalheim 9fc0e848f5 Merge pull request #369 from NixOS/ci
fix test profile
2022-02-02 09:48:22 +01:00
Jörg Thalheim 7dd944da98 p14s: starting with 5.16 we have this kernel module upstream 2022-02-01 22:12:04 +01:00
Jörg Thalheim f8eff138d8 fix test profile 2022-02-01 22:08:15 +01:00
Jörg Thalheim 87a35a0d58 Merge pull request #356 from NelsonJeppesen/xps17-9710
add xps 17 9710
2022-01-12 05:36:37 +00:00
Jörg Thalheim d7a12fcc07 Merge pull request #357 from symphorien/inspiron-5515
add dell inspiron-5515
2022-01-11 20:55:22 +00:00
Nelson Jeppesen 346c13e609 add xps 17 9710 2022-01-11 10:05:50 -08:00
Guillaume Girol 961c0499df add dell inspiron-5515 2022-01-11 12:00:00 +00:00
Jörg Thalheim c9ede9e731 Merge pull request #358 from brandonweeks/iommu
thinkpad/x1: enable Intel IOMMU
2022-01-10 15:01:46 +00:00
Brandon Weeks 6bdf6d3cda thinkpad/x1: enable Intel IOMMU 2022-01-10 00:47:30 -08:00
0x4A6F 6fbaa46f15 Merge pull request #355 from grerrg/master
add Supermicro M11SDV-8C-LN4F.
2022-01-10 01:19:16 +01:00
Your Name 04666907d4 add Supermicro M11SDV-8C-LN4F. 2022-01-07 17:52:30 +01:00
Jörg Thalheim 46df95ca81 Merge pull request #353 from NixOS/usbarmory
drop usbarmory
2021-12-28 10:10:09 +00:00
Jörg Thalheim 5041a3f800 drop no-longer reachable torrent 2021-12-28 10:29:31 +01:00
Jörg Thalheim eaddb934ed drop usbarmory
The kernel has not been updated in ages (since 2016) and the used cached is
no longer reachable. Hence I assume this is no longer used.
2021-12-28 10:23:20 +01:00
Jörg Thalheim 2a76e1204f Merge pull request #351 from Mic92/x13
x13: fix loading psmouse
2021-12-26 10:18:00 +00:00
Jörg Thalheim b166aab83e x13: fix loading psmouse 2021-12-26 10:15:40 +01:00
Jörg Thalheim 3f92db3837 Merge pull request #347 from maydayv7/master
Add Dell Inspiron 5509
2021-12-20 07:41:41 +00:00
Jörg Thalheim 9e702dedab Merge pull request #349 from ilian/x1c9-ssd
thinkpad/x1: import ssd config for relevant models
2021-12-20 07:40:34 +00:00
ilian 5bc7087038 thinkpad/x1: import ssd config for relevant models 2021-12-19 12:06:09 +01:00
maydayv7 7904e1d34f Update README 2021-12-11 22:08:12 +05:30
Jörg Thalheim 2a7063461c Merge pull request #346 from sifmelcara/patch-1
Fix typo
2021-12-11 16:37:12 +00:00
maydayv7 e936b337b0 Add Dell Inspiron 5509 2021-12-11 21:37:01 +05:30
Ming-Chuan c662415158 Fix typo 2021-12-12 00:00:48 +08:00
Jörg Thalheim 324414d2fb Merge pull request #345 from miangraham/rpi4-i2c1
raspberry-pi/4: Add option to turn on the ARM I2C bus (i2c1).
2021-12-11 05:42:29 +00:00
M. Ian Graham 8f1bf828d8 raspberry-pi/4/i2c: refactor i2c stuff into single file 2021-12-11 10:39:09 +09:00
M. Ian Graham 41c4e294f4 raspberry-pi/4/i2c1: factor out easy dts into helper, add i2c0 2021-12-11 09:39:55 +09:00
M. Ian Graham e81c9aed16 raspberry-pi/4/i2c1: indentation fix 2021-12-11 05:08:24 +09:00
M. Ian Graham 1bc731fde4 rpi4: Add option to turn on the ARM I2C bus (i2c1). 2021-12-11 01:17:44 +09:00
Jörg Thalheim 4c9f07277b Merge pull request #341 from mitchmindtree/xps-9310-rm-kernel-patches
xps-9310: Remove upstreamed kernel patches with custom config
2021-12-02 10:22:10 +00:00
Sibi Prabakaran 6b3f79de09 Add Intel NUC 8i7BEH (#343) 2021-11-29 10:38:07 +00:00
Jörg Thalheim aad66afc1c Merge pull request #337 from pasqui23/strix
Added ROG Strix G733QS
2021-11-25 09:13:21 +00:00
Jörg Thalheim 2dfe8d55b4 Merge pull request #342 from NixOS/nanopc-t4
nanopc-t4: remove deprecated serial speed
2021-11-25 09:11:03 +00:00
Jörg Thalheim eafbea9efd nanopc-t4: use kernelParams to set tty baud rate
we no longer support mingetty.serialSpeed.
2021-11-25 10:09:56 +01:00
mitchmindtree 1794de7d78 xps-9310: Remove upstreamed kernel patches with custom config
I've upstreamed these patches in NixOS/nixpkgs#144409, which means we no
longer have to build the kernel every time we update just to get
bluetooth working 🎉

While these changes have landed in master, they haven't been back-ported
to 21.05. They will be available via 21.11, which I'm currently testing
(along with this commit) by setting my `nixos` channel to the necessary
nixpkgs pre-release branch, e.g.

```bash
sudo nix-channel --remove nixos
sudo nix-channel --add https://github.com/NixOS/nixpkgs/archive/release-21.11.tar.gz nixos
sudo nix-channel --update nixos
```

*Note that if you use the above branch like I am, you might miss the
cache on some pkgs and spend even longer building those (looking at you
libreoffice).*

As of writing this PR, the current kernel is 5.15.4 and all seems to be
working well.
2021-11-25 09:58:43 +10:00
pasqui23andJörg Thalheim 2051241010 g733qs: lates linux only if kernel older than 5.12
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2021-11-24 20:49:28 +00:00
Jörg Thalheim 08cda8e3a5 Merge pull request #339 from NixOS/dependabot/github_actions/cachix/install-nix-action-16
build(deps): bump cachix/install-nix-action from 15 to 16
2021-11-22 07:02:24 +00:00
dependabot[bot] 3332a12b47 build(deps): bump cachix/install-nix-action from 15 to 16
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 15 to 16.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v15...v16)

---
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>
2021-11-22 02:03:04 +00:00
pasqui23andJörg Thalheim 4161f8aee8 Update asus/battery.nix
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2021-11-21 17:00:14 +01:00
pasqui23andJörg Thalheim a9de532758 Update README.md
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2021-11-20 22:23:42 +00:00
Pasquale 6479f584f7 Added ROG Strix G733QS 2021-11-20 22:03:09 +01:00
Jörg Thalheim 5a7e613703 Merge pull request #334 from mrkkrp/thinkpad-x1-more-recent-kernel
Use a more recent kernel for Thinkpad X1
2021-11-18 13:27:50 +00:00
Mark KarpovandJörg Thalheim 0492dd8216 Add a config for the 9th generation of Lenovo Thinkpad X1
This solves lagging noticeable on high-resolution screens.

Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2021-11-18 10:55:46 +01:00
Jörg Thalheim abf18e3afe Merge pull request #335 from chisui/master
microsoft/surface: add serial dev bus config
2021-11-18 06:45:42 +00:00
Jörg Thalheim 0225bccbcd Merge pull request #336 from DavHau/revert-pr-333
Revert "Merge pull request #333 from bobvanderlinden/pr-intel-32bit"
2021-11-18 06:42:35 +00:00
DavHau 15e8b81487 Revert "Merge pull request #333 from bobvanderlinden/pr-intel-32bit"
This reverts commit ad0b7c5a95, reversing
changes made to 4045d5f43a.
2021-11-18 10:11:58 +07:00
Jörg Thalheim ad0b7c5a95 Merge pull request #333 from bobvanderlinden/pr-intel-32bit
fix(intel): add opengl packages for 32bit
2021-11-17 17:27:40 +00:00
Philipp Dargel 70409005dd microsoft/surface: add serial dev bus config 2021-11-17 07:34:41 +01:00
Bob van der Linden 5190a9b4f2 fix(intel): add opengl packages for 32bit 2021-11-15 22:14:15 +01:00
Jörg Thalheim 4045d5f43a Merge pull request #332 from NixOS/supermicro
Add supermicro x12scz-tln4f
2021-11-14 08:11:49 +00:00
Jörg Thalheim ef31914684 Merge pull request #331 from NixOS/poweredge
add dell poweredge r7515
2021-11-14 08:11:26 +00:00
Jörg Thalheim 82ada4b2b3 add supermicro x12scz-tln4f 2021-11-13 09:15:24 +01:00
Jörg Thalheim 1464b7f955 fix github workflow 2021-11-13 09:04:08 +01:00
Jörg Thalheim debc98ff9c add dell poweredge r7515 2021-11-13 09:04:08 +01:00
Jörg Thalheim e819a2993a fix github workflow 2021-11-13 08:49:20 +01:00
Jörg Thalheim fd6f34afcf Merge pull request #330 from psibi/latitude-7490
Add Dell Latitude 7490
2021-11-07 20:34:11 +00:00
Sibi Prabakaran b50c73d420 Update README and flakes 2021-11-07 14:42:36 +05:30
Sibi Prabakaran b2083d1b60 Dell latitude 7490 support 2021-11-07 14:05:31 +05:30
Jörg Thalheim 518b9c2159 Merge pull request #329 from NixOS/fix-readme
README: fix syntax
2021-10-28 21:29:48 +02:00
Jörg Thalheim 09419f8341 README: fix syntax 2021-10-28 21:11:14 +02:00
Jörg Thalheim 63adb4a0c0 Merge pull request #324 from yvan-sraka/patch-1
Update X230 config using available common settings
2021-10-28 20:48:13 +02:00
Jörg Thalheim be5ba8b0cc Merge pull request #328 from NixOS/yu-re-ka-patch-1
flake: add lenovo-thinkpad to nixosModules
2021-10-28 20:47:50 +02:00
Yuka 590a2cc182 flake: add lenovo-thinkpad to nixosModules 2021-10-28 20:35:27 +02:00
Jörg Thalheim 0bb7b0906c Merge pull request #327 from WolfangAukang/t430
lenovo.thinkpad.t430: fix boot.kernelParams
2021-10-27 09:18:44 +02:00
P. R. d. O fdf8fa5d20 lenovo.thinkpad.t430: fix boot.kernelParams 2021-10-26 19:50:38 -06:00
Yvan Sraka 36d75fdcdc Update X230 config using available common settings 2021-10-21 10:11:37 +02:00
Jörg Thalheim 3aabf78bfc Merge pull request #321 from gravndal/master
Add basic support for the thinkpad t550
2021-10-09 16:24:07 +01:00
Gaute Ravndal 3c474df279 Add basic support for the thinkpad t550 2021-10-09 16:49:21 +02:00
Jörg Thalheim bf45d0fa08 Merge pull request #320 from sirkonst/patch-1
Apply SSD optimizations for Dell XPS 13 9310
2021-10-09 12:52:32 +01:00
Konstantin vz'One Enchant 4cac4fbeef Apply SSD optimization for Dell XPS 13 9310 2021-10-03 15:13:49 +03:00
Jörg Thalheim 0a8b8054c9 Merge pull request #319 from j0hax/amdvlk-i686
AMD: include 32-bit driver for Vulkan
2021-09-30 09:26:03 +01:00
Johannes Arnold a57fc74bc3 AMD: include 32-bit driver for Vulkan 2021-09-28 20:14:53 +02:00
Jörg Thalheim 3cc8c47af3 Merge pull request #315 from ebbertd/e14-amd
Update E14 AMD
2021-09-22 00:39:40 +01:00
Jörg Thalheim 16fca9df23 Merge pull request #313 from ncfavier/patch-1
lenovo/thinkpad/t420: add tp-smapi
2021-09-17 11:43:54 +01:00
Naïm Favier 95ce025962 lenovo/thinkpad/t420: add tp-smapi
The T420 seems to have partial (readonly) support for the tp-smapi module, which TLP can make use of:

> Install tp-smapi kernel modules for extended battery info (e.g. the cycle count)
2021-09-16 12:41:30 +02:00
Jörg Thalheim a387b870f8 Merge pull request #312 from NixOS/dependabot/github_actions/cachix/install-nix-action-14
build(deps): bump cachix/install-nix-action from 13 to 14
2021-09-13 10:26:03 +01:00
dependabot[bot] b55dbe886f build(deps): bump cachix/install-nix-action from 13 to 14
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 13 to 14.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v13...v14)

---
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>
2021-09-13 02:02:00 +00:00
Daniel Ebbert 48b7c1c782 Update E14 AMD 2021-09-01 09:34:21 +02:00
Jörg Thalheim 342048461d Merge pull request #310 from blitz/l14-amd
Thinkpad L14 AMD Updates
2021-08-26 11:50:21 +01:00
Julian Stecklina 03eba5720a lenovo/thinkpad/l14/amd: drop workaround for old kernels
... because the latest supported NixOS runs on Linux 5.10 by
default.
2021-08-25 23:33:11 +02:00
Julian Stecklina 2c549a1bfb lenovo/thinkpad/l14: enable SSD config 2021-08-25 23:33:11 +02:00
Julian Stecklina 9ff8606e7e lenovo/thinkpad/l14/amd: switch to soft iommu mode to prevent mmcblk kernel panic 2021-08-25 23:33:11 +02:00
Julian Stecklina 49f1d1e1f8 lenovo/thinkpad/l14/amd: enable AMD GPU config 2021-08-25 23:23:35 +02:00
Jörg Thalheim 7f42ec8790 Merge pull request #309 from mexisme/fix/ms-surface/ath10k-firmware-source
Fix source repo for MS Surface Go ATH10k Firmware image
2021-08-25 09:15:13 +01:00
mexisme 12cced4eeb Fix outputHash 2021-08-25 16:57:46 +12:00
mexisme 286e778ab5 Fix source repo for MS Surface ATH10k Firmware image 2021-08-25 12:11:57 +12:00
Jörg Thalheim de40acde6c Merge pull request #308 from Valodim/rpi-4-audio-3
raspberry-pi/4: fix usage of mkDefault in audio module
2021-08-23 19:51:33 +01:00
Vincent Breitmoser ad1114ee37 raspberry-pi/4: fix usage of mkDefault in audio module 2021-08-23 19:50:37 +02:00
Jörg Thalheim d2d9a58a5c remove systemd-boot from hardware profiles (#307)
- We should not enable canTouchEfiVariables by default as this
  wears out the EFI storage.
- We should not set systemd-boot as default. This is up to the user to
  decide. There are exceptions when hardware only supports specific
  bootloaders so.
2021-08-21 09:22:25 +01:00
Jörg Thalheim 6f1dc0aed0 Merge pull request #302 from Valodim/rpi-4-audio-2
raspberry-pi/4: Include tsched=0 fix in audio module
2021-08-20 23:21:23 +01:00
Jörg Thalheim c00e3c39d3 Merge pull request #304 from ebbertd/e14
Lenovo ThinkPad E14
2021-08-20 23:21:04 +01:00
Vincent Breitmoser e45d775c93 raspberry-pi/4: Include tsched=0 fix in audio module
This applies a commonly suggested fix for pulseaudio sound glitches.
2021-08-19 23:57:05 +02:00
Daniel Ebbert 6f10c889c0 Init Lenovo ThinkPad E14 2021-08-19 12:15:46 +02:00
Jörg Thalheim 878f629005 Merge pull request #305 from NixOS/xps
xps-13-9310: fix evaluation
2021-08-18 17:08:45 +01:00
Jörg Thalheim 22f1a185cf xps-13-9310: fix evaluation 2021-08-18 17:53:34 +02:00
Jörg Thalheim 3c83cab719 Merge pull request #303 from ebbertd/backlight_e495
lenovo/thinkpad/e495: use native acpi backlight
2021-08-18 11:44:47 +01:00
Daniel Ebbert eb385fad1e lenovo/thinkpad/e495: use native acpi backlight 2021-08-18 11:58:49 +02:00
Jörg Thalheim 566f4da366 Merge pull request #301 from Valodim/rpi-4-audio
rpi4: add module for audio settings
2021-08-15 07:03:05 +01:00
Vincent Breitmoser 745dd44071 raspberry-pi/4: Add audio option 2021-08-15 00:53:29 +02:00
Jörg Thalheim 7da029f268 Merge pull request #300 from devins2518/master
linux_surface kernel 5.10.19->5.13.4
2021-08-08 17:35:07 +01:00
Domen Kožar 8296b88560 Add Thinkpad P14s 2021-08-04 13:54:40 +02:00
Devin Singh c8cbe52953 linux_surface 5.10.19->5.13.4 2021-08-02 13:34:29 -05:00
Jörg Thalheim 09ed30ff3b rpi4/poe-hat: improve enable option slightly 2021-07-30 19:26:52 +02:00
Jörg Thalheim 67a20962f3 Merge pull request #272 from walkah/rpi-poe
raspberry-pi/4: Add poe-hat option
2021-07-30 18:25:39 +01:00
Jörg Thalheim 615e23579f Merge pull request #297 from figsoda/master
Add asus rog zephyrus g14 ga401
2021-07-27 06:52:27 +01:00
Jörg Thalheim 72ff66f79e Merge pull request #298 from terinjokes/patches/dell-xps-9310-upstream
xps/13-9310: remove custom patches
2021-07-27 05:49:50 +01:00
Terin Stock f22552c2e2 xps/13-9310: remove custom patches
The Linux kernel now has wireless patches upstreamed into the Linux
kernel. We can remove our custom build, but preserve enabling the
bluetooth drivers.
2021-07-26 16:33:44 -07:00
figsoda 107ab6ac42 add asus rog zephyrus ga401 2021-07-25 17:14:52 -04:00
Jörg Thalheim 03e7686c72 Merge pull request #294 from ncfavier/patch-1
lenovo/thinkpad/t420: use cpu/intel/sandy-bridge
2021-07-25 12:28:20 +01:00
Naïm Favier acc32e590b lenovo/thinkpad/t420: use cpu/intel/sandy-bridge 2021-07-25 12:11:47 +02:00
Jörg Thalheim 41775780a0 Merge pull request #283 from vherrmann/master
Add L13 Yoga
2021-07-03 18:33:58 +01:00
Your Name 19071fde4f lenovo/thinkpad/x13-yoga: Use relative symlink 2021-07-03 09:17:31 +02:00
Your Name 723e8f796c lenovo/thinkpad: Added x13-yoga for backwards-compability 2021-07-01 23:14:45 +02:00
Your Name f08cf2d7f7 lenovo/thinkpad: #283 Use directory instead of file 2021-07-01 14:03:59 +02:00
Your Name c076216644 lenovo/thinkpad: Refactor of yogas 2021-07-01 13:52:08 +02:00
Your Name 6a77d708e7 leovo/thinkpad/l13-yoga: Use L13's definition 2021-07-01 11:42:08 +02:00
Your Name 020310e5a3 Merge branch 'master' of github.com:NixOS/nixos-hardware 2021-07-01 11:18:55 +02:00
Jörg Thalheim eb889532fe Merge pull request #287 from NixOS/readme
README: resolve symlinks for some profiles
2021-07-01 09:18:48 +01:00
Jörg Thalheim 53b0197e38 README: resolve symlinks for some profiles 2021-07-01 10:18:20 +02:00
Jörg Thalheim d331ffc046 Merge pull request #286 from NixOS/readme
README: inline links
2021-07-01 09:13:18 +01:00
Jörg Thalheim 96e678dbc4 README: inline links
A lot of links where broken.
Inlining links for all profiles makes it easier to review and contribute.
2021-07-01 10:04:33 +02:00
Jörg Thalheim 1475e65b07 Merge pull request #285 from NixOS/l13
thinkpad-l13: add ssd
2021-07-01 06:41:19 +01:00
Jörg Thalheim 03085184c9 thinkpad-l13: add ssd 2021-07-01 07:32:25 +02:00
Jörg Thalheim 44db94954f Merge pull request #284 from NixOS/SuperSandro2000-patch-1
toshiba/swanky: remove usage of alias
2021-07-01 06:28:49 +01:00
Sandro 244e81c2a7 toshiba/swanky: remove usage of alias 2021-06-30 23:50:00 +02:00
Your Name 49cb5fb3d3 Add L13 Yoga 2021-06-30 16:18:18 +02:00
Jörg Thalheim 03c60a2db2 Merge pull request #281 from NixOS/fix-eval
p1: remove nvidia module again
2021-06-26 15:21:41 +02:00
Jörg Thalheim a4a9796b73 p1: remove nvidia module again 2021-06-26 15:11:18 +02:00
Jörg Thalheim b59eaeb50a Merge pull request #278 from symphorien/precision5530flicker
Dell Precision 5530: fix screen flicker
2021-06-26 15:08:59 +02:00
Jörg Thalheim 76ff88e0d2 Merge pull request #273 from t184256/onenetbook4
Add onenetbook/4
2021-06-26 15:08:29 +02:00
Alexander Sosedkin 4f74b8b63a onenetbook/4: update stylus patch for 5.12.12 2021-06-26 12:09:54 +02:00
Alexander Sosedkin 9a4e7bdd2a onenetbook/4: fix accelerometer 2021-06-26 12:09:54 +02:00
Alexander Sosedkin adfa06e0a9 onenetbook/4: init, fix stylus 2021-06-26 12:09:54 +02:00
Jörg Thalheim 7305b276c9 Merge pull request #276 from thiagokokada/remove-intel-drivers-from-nvidia-disable
Remove intel drivers from nvidia-disable
2021-06-13 09:37:15 +02:00
Jörg Thalheim d4ef27b668 Merge pull request #265 from tomberek/surface_iptsd
surface: add iptsd
2021-06-13 09:36:14 +02:00
Jörg Thalheim 7fb8aeaba7 Merge pull request #277 from cyplo/add-t480
Add Lenovo Thinkpad T480
2021-06-13 09:30:45 +02:00
Jörg Thalheim d4f7a768c0 README.md: fix tests 2021-06-13 09:11:52 +02:00
Cyryl Płotnicki a67ed0c3a2 Add Lenovo Thinkpad T480 2021-06-12 10:38:34 +01:00
Thiago Kenji Okada b0f31689ac Remove intel drivers from nvidia-disable
Two reasons for this change:
- `intel` drivers are not updated from quite a long time (since ~2019),
  and `modesetting` is the preferred one for Intel iGPUs.
- Technically you may want to disable NVIDIA GPUs on laptops with AMD
  processors too.

We don't want to pin `modesetting` here because it is already the default
since PR: https://github.com/NixOS/nixpkgs/pull/111551.
2021-06-11 17:04:10 -03:00
Jörg Thalheim 6bea976169 Merge pull request #275 from andyrichardson/patch-1
Fix 9500 AX Crashes
2021-06-10 10:51:46 +02:00
Andy Richardson 6392ffbafb Update default.nix 2021-06-09 13:18:05 +01:00
Andy Richardson d41711076e Update default.nix 2021-06-09 12:51:33 +01:00
Andy Richardson 59a171c833 Fix 9500 wifi support 2021-06-09 12:46:01 +01:00
cwyc fccbee72df thinkpad t14s amd: add amd gpu module (#271) 2021-06-08 10:09:01 +01:00
James Walker cf3508aab6 raspberry-pi/4: Add poe-hat option 2021-06-02 20:47:23 -04:00
Pavel NazarovandJörg Thalheim b2186d6c3c Add lenovo-thinkpad-p1 (#266)
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2021-06-01 05:30:09 +01:00
Emery Hemingway d38958a6aa Revert mnt/reform2-nitrogen8m
Kernel config is too big to be stored here.
2021-05-31 17:35:42 +02:00
Emery Hemingway 1abe955ad5 mnt/reform2-nitrogen8m: read kernel config into a string 2021-05-31 16:18:09 +02:00
Jörg Thalheim 35b2bfdce7 Merge pull request #269 from tfc/master
raspberry-pi/4: Add tc358743 option
2021-05-31 06:50:19 +02:00
Jacek Galowicz c941aecfc3 raspberry-pi/4: Add tc358743 option 2021-05-30 20:27:13 +00:00
Jörg Thalheim 3fc630f84c pc/laptop: fix evaluation on 20.09 (#270) 2021-05-30 21:10:22 +01:00
Jörg Thalheim 684ae160a6 Merge pull request #247 from NixOS/mnt-reform2-nitrogen8m
Add mnt-reform2-nitrogen8m
2021-05-29 20:47:32 +02:00
Emery Hemingway f39a23dab7 Add mnt-reform2-nitrogen8m
https://mntre.com/
2021-05-29 10:43:48 +02:00
Jörg Thalheim 1facb18f43 Merge pull request #263 from bryanhonof/tlp-and-power-profiles-daemon-clash
Tlp and power profiles daemon clash
2021-05-29 10:27:28 +02:00
Jörg Thalheim ca33f586e7 fix evaluation 2021-05-29 10:19:00 +02:00
Jörg Thalheim 0a7b43b595 Merge pull request #259 from jakubgs/add-nanopc-t4
friendlyarm/nanopc-t4: init
2021-05-29 10:17:04 +02:00
Jakub Sokołowski ff1b798346 friendlyarm/nanopc-t4: init
As suggested by @Mic92 in https://github.com/NixOS/nixpkgs/pull/111034
I'm submitting my fixes for the FriendlyARM NanoPC-T4 device.

I'm not sure if forcing a specific kernel version is kosher, but on the
other hand I don't know if my kernel config changes will work on any
other version. I'm open to suggestions as to how to do this better.

Also unusure if I should call the folder `friendlyarm` or `friendlyelec`.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-05-29 09:59:44 +02:00
Domen Kožar 30f1a9952d Merge pull request #264 from tfc/master
Raspberry pi 4: Add dwc2 usb otg gadget support
2021-05-28 14:15:24 +02:00
Jacek Galowicz e6c84e7eaf raspberry-pi/4: Add dwc2 option 2021-05-28 11:18:51 +02:00
Tom Bereknyei 2bc0b595b5 surface: add iptsd 2021-05-27 18:41:26 +00:00
Jacek Galowicz 5a67562945 raspberry-pi/4: move filter into default.nix 2021-05-27 04:41:34 +00:00
Bryan HonofandJörg Thalheim 1fe5b7686d Update common/pc/laptop/default.nix
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2021-05-27 00:15:49 +02:00
Bryan Honof 2bc26b3c5c Add lib.mkDefault to the statement 2021-05-26 19:00:01 +02:00
Bryan Honof e4ce746d5b Add check for power-profiles-daemon.enable
Gnome 40 now uses power-profile-daemon
https://gitlab.freedesktop.org/hadess/power-profiles-daemon ,
which clashes with tlp. This check will disable tlp whenever it finds
that the power-profiles-daemon is activated.
2021-05-26 18:54:50 +02:00
Jörg Thalheim c4399b921f Merge pull request #258 from nurelin/micropc
add gpd-micropc
2021-05-14 10:18:11 +01:00
Vincent Gatine 72d7bb9434 add gpd-micropc 2021-05-11 16:28:15 +02:00
Symphorien Gibol b8a0c5251f dell precision 5530: remove irrelevant disk related setting 2021-05-01 17:46:04 +02:00
Symphorien Gibol 18af97340c dell precision 5530: avoid screen flicker 2021-05-01 17:45:25 +02:00
169 changed files with 4140 additions and 2245 deletions

No files matched your search

+48
View File
@@ -0,0 +1,48 @@
# EditorConfig configuration for nixpkgs
# https://EditorConfig.org
# Top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file, utf-8 charset
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
# Ignore diffs/patches
[*.{diff,patch}]
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
# see https://nixos.org/nixpkgs/manual/#chap-conventions
# Match json/lockfiles/markdown/nix/perl/python/ruby/shell/docbook files, set indent to spaces
[*.{json,lock,md,nix,pl,pm,py,rb,sh,xml}]
indent_style = space
# Match docbook files, set indent width of one
[*.xml]
indent_size = 1
# Match json/lockfiles/markdown/nix/ruby files, set indent width of two
[*.{json,lock,md,nix,rb}]
indent_size = 2
# Match perl/python/shell scripts, set indent width of four
[*.{pl,pm,py,sh}]
indent_size = 4
# Match gemfiles, set indent to spaces with width of two
[Gemfile]
indent_size = 2
indent_style = space
# Disable file types or individual files
# some of these files may be auto-generated and/or require significant changes
[*.{c,h}]
insert_final_newline = unset
trim_trailing_whitespace = unset
+2 -2
View File
@@ -6,8 +6,8 @@ jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v13
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v17
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Show nixpkgs version
+43 -11
View File
@@ -1,8 +1,14 @@
# Writing profiles
# Contributing a Device Profile
## 1. Writing profiles
Create an appropriate directory and start writing your expression.
When setting an option, use `lib.mkDefault` unless:
- The option *must* be set and the user should get an error if they try to override it.
- The setting should merge with the user's settings (typical for list or set options).
- The option *must* be set and the user should get an error if they try to
override it.
- The setting should merge with the user's settings (typical for list or set
options).
For example:
@@ -15,17 +21,43 @@ For example:
}
```
Try to avoid "opinionated" settings relating to optional features like sound, bluetooth, choice of bootloader etc.
Where possible, use module imports to share code between similar hardware
variants. In most cases, import:
- a cpu module;
- a gpu module;
- either the pc or the laptop module;
- either the HDD or the SSD module.
Where possible, use module imports to share code between similar hardware variants.
Try to avoid "opinionated" settings relating to optional features like sound,
bluetooth, choice of bootloader etc. You can mention these in the readme.
# Performance
Profiles should favor usability and stability, so performance improvements
should either be conservative or be guarded behind additional NixOS module
options. If it makes sense to have a performance-focussed config, it can be
declared in a separate profile.
Profiles should favor usability and stability, so performance improvements should either be conservative or
be guarded behind additional NixOS module options.
## 2. Adding Entry
If it makes sense to have a performance-focussed config, it can be declared in a separate profile.
Link the profile in the table in README.md and in flake.nix.
# Testing
## 3. Testing
Because profiles can only be tested with the appropriate hardware, quality assurance is up to *you*.
Run ./tests/run.py to test building. The test script script will parse all the
profiles from the README.md.
You can also just specify a single profile like this:
```
./tests/run.py '<nixos-hardware/purism/librem/15v3>'
```
Because profiles can only be tested with the appropriate hardware, quality
assurance is up to *you*.
# For reviewers:
This repository has bors enabled for easier merging after a successfull build:
* `bors try` - check if the PR builds.
* `bors merge` - same as `bors try` but will also merge the PR if it builds successfully.
* https://bors.tech/documentation/
+139 -126
View File
@@ -24,14 +24,15 @@ imports = [
New updates to the expressions here will be fetched when you update the channel.
## Using nix flakes support
### Using nix flakes support
There is also experimental flake support. In your `/etc/nixos/flake.nix` add the following:
There is also experimental flake support. In your `/etc/nixos/flake.nix` add
the following:
```nix
{
description = "NixOS configuration with flakes";
inputs.nixos-hardware.url = github:NixOS/nixos-hardware/master;
inputs.nixos-hardware.url = "github:NixOS/nixos-hardware/master";
outputs = { self, nixpkgs, nixos-hardware }: {
# replace <your-hostname> with your actual hostname
@@ -47,7 +48,6 @@ There is also experimental flake support. In your `/etc/nixos/flake.nix` add the
}
```
### Using fetchGit
You can fetch the git repository directly:
@@ -61,129 +61,142 @@ imports = [
Unlike the channel, this will update the git repository on a rebuild. However,
you can easily pin to a particular revision if you desire more stability.
## How to contribute a new device profile
See [CONTRIBUTING.md](./CONTRIBUTING.md).
## List of Profiles
See code for all available configurations.
| Model | Path |
| --------------------------------- | -------------------------------------------------- |
| [Acer Aspire 4810T][] | `<nixos-hardware/acer/aspire/4810t>` |
| Airis N990 | `<nixos-hardware/airis/n990>` |
| Apple MacBook Air 3,X | `<nixos-hardware/apple/macbook-air/3>` |
| Apple MacBook Air 4,X | `<nixos-hardware/apple/macbook-air/4>` |
| Apple MacBook Air 6,X | `<nixos-hardware/apple/macbook-air/6>` |
| [Apple MacBook Pro 10,1][] | `<nixos-hardware/apple/macbook-pro/10-1>` |
| Apple MacBook Pro 12,1 | `<nixos-hardware/apple/macbook-pro/12-1>` |
| Asus TUF FX504GD | `<nixos-hardware/asus/fx504gd>` |
| BeagleBoard PocketBeagle | `<nixos-hardware/beagleboard/pocketbeagle>` |
| [Dell G3 3779][] | `<nixos-hardware/dell/g3/3779>` |
| Dell Latitude 3480 | `<nixos-hardware/dell/latitude/3480>` |
| Dell Precision 5530 | `<nixos-hardware/dell/precision/5530>` |
| [Dell XPS E7240][] | `<nixos-hardware/dell/e7240>` |
| [Dell XPS 13 7390][] | `<nixos-hardware/dell/xps/13-7390>` |
| [Dell XPS 13 9310][] | `<nixos-hardware/dell/xps/13-9310>` |
| [Dell XPS 13 9343][] | `<nixos-hardware/dell/xps/13-9343>` |
| [Dell XPS 13 9360][] | `<nixos-hardware/dell/xps/13-9360>` |
| [Dell XPS 13 9370][] | `<nixos-hardware/dell/xps/13-9370>` |
| [Dell XPS 13 9380][] | `<nixos-hardware/dell/xps/13-9380>` |
| [Dell XPS 15 7590][] | `<nixos-hardware/dell/xps/15-7590>` |
| [Dell XPS 15 9550][] | `<nixos-hardware/dell/xps/15-9550>` |
| [Dell XPS 15 9550, nvidia][] | `<nixos-hardware/dell/xps/15-9550/nvidia>` |
| [Dell XPS 15 9560][] | `<nixos-hardware/dell/xps/15-9560>` |
| [Dell XPS 15 9560, intel only][] | `<nixos-hardware/dell/xps/15-9560/intel>` |
| [Dell XPS 15 9560, nvidia only][] | `<nixos-hardware/dell/xps/15-9560/nvidia>` |
| [Dell XPS 15 9500][] | `<nixos-hardware/dell/xps/15-9500>` |
| [Dell XPS 15 9500, nvidia][] | `<nixos-hardware/dell/xps/15-9500/nvidia>` |
| [Google Pixelbook][] | `<nixos-hardware/google/pixelbook>` |
| [Inverse Path USB armory][] | `<nixos-hardware/inversepath/usbarmory>` |
| Lenovo IdeaPad Z510 | `<nixos-hardware/lenovo/ideapad/z510>` |
| Lenovo ThinkPad E470 | `<nixos-hardware/lenovo/thinkpad/e470>` |
| Lenovo ThinkPad E495 | `<nixos-hardware/lenovo/thinkpad/e495>` |
| Lenovo ThinkPad L13 | `<nixos-hardware/lenovo/thinkpad/l13>` |
| Lenovo ThinkPad L14 (Intel) | `<nixos-hardware/lenovo/thinkpad/l14/intel> |
| Lenovo ThinkPad L14 (AMD) | `<nixos-hardware/lenovo/thinkpad/l14/amd> |
| Lenovo ThinkPad P53 | `<nixos-hardware/lenovo/thinkpad/p53>` |
| Lenovo ThinkPad T14 | `<nixos-hardware/lenovo/thinkpad/t14>` |
| Lenovo ThinkPad T14 AMD Gen 1 | `<nixos-hardware/lenovo/thinkpad/t14/amd/gen1>` |
| Lenovo ThinkPad T14s | `<nixos-hardware/lenovo/thinkpad/t14s>` |
| Lenovo ThinkPad T14s AMD Gen 1 | `<nixos-hardware/lenovo/thinkpad/t14s/amd/gen1>` |
| Lenovo ThinkPad T410 | `<nixos-hardware/lenovo/thinkpad/t410>` |
| Lenovo ThinkPad T420 | `<nixos-hardware/lenovo/thinkpad/t420>` |
| Lenovo ThinkPad T430 | `<nixos-hardware/lenovo/thinkpad/t430>` |
| Lenovo ThinkPad T440s | `<nixos-hardware/lenovo/thinkpad/t440s>` |
| Lenovo ThinkPad T440p | `<nixos-hardware/lenovo/thinkpad/t440p>` |
| Lenovo ThinkPad T450s | `<nixos-hardware/lenovo/thinkpad/t450s>` |
| Lenovo ThinkPad T460 | `<nixos-hardware/lenovo/thinkpad/t460>` |
| Lenovo ThinkPad T460s | `<nixos-hardware/lenovo/thinkpad/t460s>` |
| Lenovo ThinkPad T470s | `<nixos-hardware/lenovo/thinkpad/t470s>` |
| Lenovo ThinkPad T480s | `<nixos-hardware/lenovo/thinkpad/t480s>` |
| Lenovo ThinkPad T490 | `<nixos-hardware/lenovo/thinkpad/t490>` |
| Lenovo ThinkPad T495 | `<nixos-hardware/lenovo/thinkpad/t495>` |
| Lenovo ThinkPad X113 Yoga | `<nixos-hardware/lenovo/thinkpad/x13-yoga>` |
| Lenovo ThinkPad X140e | `<nixos-hardware/lenovo/thinkpad/x140e>` |
| Lenovo ThinkPad X200s | `<nixos-hardware/lenovo/thinkpad/x200s>` |
| Lenovo ThinkPad X220 | `<nixos-hardware/lenovo/thinkpad/x220>` |
| Lenovo ThinkPad X230 | `<nixos-hardware/lenovo/thinkpad/x230>` |
| Lenovo ThinkPad X250 | `<nixos-hardware/lenovo/thinkpad/x250>` |
| [Lenovo ThinkPad X260][] | `<nixos-hardware/lenovo/thinkpad/x260>` |
| Lenovo ThinkPad X270 | `<nixos-hardware/lenovo/thinkpad/x270>` |
| Lenovo ThinkPad X280 | `<nixos-hardware/lenovo/thinkpad/x280>` |
| [Lenovo ThinkPad X1 (6th Gen)][] | `<nixos-hardware/lenovo/thinkpad/x1/6th-gen>` |
| [Lenovo ThinkPad X1 (7th Gen)][] | `<nixos-hardware/lenovo/thinkpad/x1/7th-gen>` |
| Lenovo ThinkPad X1 Extreme Gen 2 | `<nixos-hardware/lenovo/thinkpad/x1-extreme/gen2>` |
| [Lenovo ThinkPad X13][] | `<nixos-hardware/lenovo/thinkpad/x13` |
| [Microsoft Surface Range][] | `<nixos-hardware/microsoft/surface>` |
| [Microsoft Surface Pro 3][] | `<nixos-hardware/microsoft/surface-pro/3>` |
| [MSI GS60 2QE][] | `<nixos-hardware/msi/gs60>` |
| PC Engines APU | `<nixos-hardware/pcengines/apu>` |
| [Raspberry Pi 2][] | `<nixos-hardware/raspberry-pi/2>` |
| [Raspberry Pi 4][] | `<nixos-hardware/raspberry-pi/4>` |
| [Samsung Series 9 NP900X3C][] | `<nixos-hardware/samsung/np900x3c>` |
| [Purism Librem 13v3][] | `<nixos-hardware/purism/librem/13v3>` |
| [Purism Librem 15v3][] | `<nixos-hardware/purism/librem/15v3>` |
| Supermicro A1SRi-2758F | `<nixos-hardware/supermicro/a1sri-2758f>` |
| Supermicro X10SLL-F | `<nixos-hardware/supermicro/x10sll-f>` |
| [System76 (generic)][] | `<nixos-hardware/system76>` |
| [System76 Darter Pro 6][] | `<nixos-hardware/system76/darp6>` |
| [Toshiba Chromebook 2 `swanky`][] | `<nixos-hardware/toshiba/swanky>` |
| [Tuxedo InfinityBook v4][] | `<nixos-hardware/tuxedo/infinitybook/v4>` |
[Acer Aspire 4810T]: acer/aspire/4810t
[Asus TUF FX504GD]: asus/fx504gd
[Apple MacBook Pro 10,1]: apple/macbook-pro/10-1
[Dell G3 3779]: dell/g3/3779
[Dell XPS E7240]: dell/e7240
[Dell XPS 13 7390]: dell/xps/13-7390
[Dell XPS 13 9343]: dell/xps/13-9343
[Dell XPS 13 9310]: dell/xps/13-9310
[Dell XPS 13 9360]: dell/xps/13-9360
[Dell XPS 13 9370]: dell/xps/13-9370
[Dell XPS 13 9380]: dell/xps/13-9380
[Dell XPS 15 7590]: dell/xps/15-7590
[Dell XPS 15 9550]: dell/xps/15-9550
[Dell XPS 15 9560]: dell/xps/15-9560
[Dell XPS 15 9560, intel only]: dell/xps/15-9560/intel
[Dell XPS 15 9560, nvidia only]: dell/xps/15-9560/nvidia
[Google Pixelbook]: google/pixelbook
[Inverse Path USB armory]: inversepath/usbarmory
[Lenovo ThinkPad X1 (6th Gen)]: lenovo/thinkpad/x1/6th-gen
[Lenovo ThinkPad X1 (7th Gen)]: lenovo/thinkpad/x1/7th-gen
[Lenovo ThinkPad X13]: lenovo/thinkpad/x13
[Lenovo ThinkPad X13 Yoga]: lenovo/thinkpad/x13-yoga
[Lenovo ThinkPad X260]: lenovo/thinkpad/x260
[Microsoft Surface Pro 3]: microsoft/surface-pro/3
[MSI GS60 2QE]: msi/gs60
[Raspberry Pi 2]: raspberry-pi/2
[Samsung Series 9 NP900X3C]: samsung/np900x3c
[System76 (generic)]: system76
[System76 Darter Pro 6]: system76/darp6
[Purism Librem 13v3]: purism/librem/13v3
[Purism Librem 15v5]: purism/librem/15v5
[Toshiba Chromebook 2 `swanky`]: toshiba/swanky
[Tuxedo InfinityBook v4]: nixos-hardware/tuxedo/infinitybook/v4
## How to contribute a new device profile
1. Add your device profile expression in the appropriate directory
2. Link it in the table in README.md and in flake.nix
3. Run ./tests/run.py to test it. The test script script will parse all the profiles from the README.md
| Model | Path |
| ------------------------------------------------------------------- | -------------------------------------------------- |
| [Acer Aspire 4810T](acer/aspire/4810t) | `<nixos-hardware/acer/aspire/4810t>` |
| [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 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 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 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>` |
| [Asus ROG Zephyrus G14 GA401](asus/zephyrus/ga401) | `<nixos-hardware/asus/zephyrus/ga401>` |
| [Asus ROG Zephyrus G15 GA503](asus/zephyrus/ga503) | `<nixos-hardware/asus/zephyrus/ga503>` |
| [Asus TUF FX504GD](asus/fx504gd) | `<nixos-hardware/asus/fx504gd>` |
| [BeagleBoard PocketBeagle](beagleboard/pocketbeagle) | `<nixos-hardware/beagleboard/pocketbeagle>` |
| [Dell G3 3779](dell/g3/3779) | `<nixos-hardware/dell/g3/3779>` |
| [Dell Inspiron 5509](dell/inspiron/5509) | `<nixos-hardware/dell/inspiron/5509>` |
| [Dell Inspiron 5515](dell/inspiron/5515) | `<nixos-hardware/dell/inspiron/5515>` |
| [Dell Inspiron 7405](dell/inspiron/7405) | `<nixos-hardware/dell/inspiron/7405>` |
| [Dell Latitude 3480](dell/latitude/3480) | `<nixos-hardware/dell/latitude/3480>` |
| [Dell Latitude 5520](dell/latitude/5520) | `<nixos-hardware/dell/latitude/5520>` |
| [Dell Latitude 7490](dell/latitude/7490) | `<nixos-hardware/dell/latitude/7490>` |
| [Dell Poweredge R7515](dell/poweredge/r7515) | `<nixos-hardware/dell/poweredge/r7515>` |
| [Dell Precision 5530](dell/precision/5530) | `<nixos-hardware/dell/precision/5530>` |
| [Dell XPS 13 7390](dell/xps/13-7390) | `<nixos-hardware/dell/xps/13-7390>` |
| [Dell XPS 13 9310](dell/xps/13-9310) | `<nixos-hardware/dell/xps/13-9310>` |
| [Dell XPS 13 9343](dell/xps/13-9343) | `<nixos-hardware/dell/xps/13-9343>` |
| [Dell XPS 13 9350](dell/xps/13-9350) | `<nixos-hardware/dell/xps/13-9350>` |
| [Dell XPS 13 9360](dell/xps/13-9360) | `<nixos-hardware/dell/xps/13-9360>` |
| [Dell XPS 13 9370](dell/xps/13-9370) | `<nixos-hardware/dell/xps/13-9370>` |
| [Dell XPS 13 9380](dell/xps/13-9380) | `<nixos-hardware/dell/xps/13-9380>` |
| [Dell XPS 15 7590](dell/xps/15-7590) | `<nixos-hardware/dell/xps/15-7590>` |
| [Dell XPS 15 9500, nvidia](dell/xps/15-9500/nvidia) | `<nixos-hardware/dell/xps/15-9500/nvidia>` |
| [Dell XPS 15 9500](dell/xps/15-9500) | `<nixos-hardware/dell/xps/15-9500>` |
| [Dell XPS 15 9550, nvidia](dell/xps/15-9550/nvidia) | `<nixos-hardware/dell/xps/15-9550/nvidia>` |
| [Dell XPS 15 9550](dell/xps/15-9550) | `<nixos-hardware/dell/xps/15-9550>` |
| [Dell XPS 15 9560, intel only](dell/xps/15-9560/intel) | `<nixos-hardware/dell/xps/15-9560/intel>` |
| [Dell XPS 15 9560, nvidia only](dell/xps/15-9560/nvidia) | `<nixos-hardware/dell/xps/15-9560/nvidia>` |
| [Dell XPS 15 9560](dell/xps/15-9560) | `<nixos-hardware/dell/xps/15-9560>` |
| [Dell XPS 17 9700, intel](dell/xps/17-9700/intel) | `<nixos-hardware/dell/xps/17-9700/intel` |
| [Dell XPS 17 9700, nvidia](dell/xps/17-9700/nvidia) | `<nixos-hardware/dell/xps/17-9700/nvidia>` |
| [Dell XPS 17 9710, intel only](dell/xps/17-9710/intel) | `<nixos-hardware/dell/xps/17-9710/intel>` |
| [Dell XPS E7240](dell/e7240) | `<nixos-hardware/dell/e7240>` |
| [Framework](framework) | `<nixos-hardware/framework>` |
| [Framework 12th Gen Intel Core](framework/12th-gen-intel) | `<nixos-hardware/framework/12th-gen-intel>` |
| [FriendlyARM NanoPC-T4](friendlyarm/nanopc-t4) | `<nixos-hardware/friendlyarm/nanopc-t4>` |
| [GPD MicroPC](gpd/micropc) | `<nixos-hardware/gpd/micropc>` |
| [Google Pixelbook](google/pixelbook) | `<nixos-hardware/google/pixelbook>` |
| [HP Elitebook 2560p](hp/elitebook/2560p) | `<nixos-hardware/hp/elitebook/2560p>` |
| [Intel NUC 8i7BEH](intel/nuc/8i7beh/) | `<nixos-hardware/intel/nuc/8i7beh>` |
| [Lenovo IdeaPad Gaming 3 15arh05](lenovo/ideapad/15arh05) | `<nixos-hardware/lenovo/ideapad/15arh05>` |
| [Lenovo IdeaPad Z510](lenovo/ideapad/z510) | `<nixos-hardware/lenovo/ideapad/z510>` |
| [Lenovo Legion 5 15arh05h](lenovo/legion/15arh05h) | `<nixos-hardware/lenovo/legion/15arh05h>` |
| [Lenovo Legion 7 Slim 15ach6](lenovo/legion/15ach6) | `<nixos-hardware/lenovo/legion/15ach6>` |
| [Lenovo ThinkPad E14 (AMD)](lenovo/thinkpad/e14/amd) | `<nixos-hardware/lenovo/thinkpad/e14/amd>` |
| [Lenovo ThinkPad E14 (Intel)](lenovo/thinkpad/e14/intel) | `<nixos-hardware/lenovo/thinkpad/e14/intel>` |
| [Lenovo ThinkPad E470](lenovo/thinkpad/e470) | `<nixos-hardware/lenovo/thinkpad/e470>` |
| [Lenovo ThinkPad E495](lenovo/thinkpad/e495) | `<nixos-hardware/lenovo/thinkpad/e495>` |
| [Lenovo ThinkPad L13 Yoga](lenovo/thinkpad/l13/yoga) | `<nixos-hardware/lenovo/thinkpad/l13/yoga>` |
| [Lenovo ThinkPad L13](lenovo/thinkpad/l13) | `<nixos-hardware/lenovo/thinkpad/l13>` |
| [Lenovo ThinkPad L14 (AMD)](lenovo/thinkpad/l14/amd) | `<nixos-hardware/lenovo/thinkpad/l14/amd>` |
| [Lenovo ThinkPad L14 (Intel)](lenovo/thinkpad/l14/intel) | `<nixos-hardware/lenovo/thinkpad/l14/intel>` |
| [Lenovo ThinkPad P1 Gen 3](lenovo/thinkpad/p1/3th-gen) | `<nixos-hardware/lenovo/thinkpad/p1/3th-gen>` |
| [Lenovo ThinkPad P14s AMD Gen 2](lenovo/thinkpad/p14s/amd/gen2) | `<nixos-hardware/lenovo/thinkpad/p14s/amd/gen2>` |
| [Lenovo ThinkPad P16s AMD Gen 1](lenovo/thinkpad/p16s/amd/gen1) | `<nixos-hardware/lenovo/thinkpad/p16s/amd/gen1>` |
| [Lenovo ThinkPad P1](lenovo/thinkpad/p1) | `<nixos-hardware/lenovo/thinkpad/p1>` |
| [Lenovo ThinkPad P50](lenovo/thinkpad/p50) | `<nixos-hardware/lenovo/thinkpad/p50>` |
| [Lenovo ThinkPad P51](lenovo/thinkpad/p51) | `<nixos-hardware/lenovo/thinkpad/p51>` |
| [Lenovo ThinkPad P52](lenovo/thinkpad/p52) | `<nixos-hardware/lenovo/thinkpad/p52>` |
| [Lenovo ThinkPad P53](lenovo/thinkpad/p53) | `<nixos-hardware/lenovo/thinkpad/p53>` |
| [Lenovo ThinkPad T14 AMD Gen 1](lenovo/thinkpad/t14/amd/gen1) | `<nixos-hardware/lenovo/thinkpad/t14/amd/gen1>` |
| [Lenovo ThinkPad T14 AMD Gen 2](lenovo/thinkpad/t14/amd/gen2) | `<nixos-hardware/lenovo/thinkpad/t14/amd/gen2>` |
| [Lenovo ThinkPad T14 AMD Gen 3](lenovo/thinkpad/t14/amd/gen3) | `<nixos-hardware/lenovo/thinkpad/t14/amd/gen3>` |
| [Lenovo ThinkPad T14](lenovo/thinkpad/t14) | `<nixos-hardware/lenovo/thinkpad/t14>` |
| [Lenovo ThinkPad T14s AMD Gen 1](lenovo/thinkpad/t14s/amd/gen1) | `<nixos-hardware/lenovo/thinkpad/t14s/amd/gen1>` |
| [Lenovo ThinkPad T14s](lenovo/thinkpad/t14s) | `<nixos-hardware/lenovo/thinkpad/t14s>` |
| [Lenovo ThinkPad T410](lenovo/thinkpad/t410) | `<nixos-hardware/lenovo/thinkpad/t410>` |
| [Lenovo ThinkPad T420](lenovo/thinkpad/t420) | `<nixos-hardware/lenovo/thinkpad/t420>` |
| [Lenovo ThinkPad T430](lenovo/thinkpad/t430) | `<nixos-hardware/lenovo/thinkpad/t430>` |
| [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 T550](lenovo/thinkpad/t550) | `<nixos-hardware/lenovo/thinkpad/t550>` |
| [Lenovo ThinkPad T590](lenovo/thinkpad/t590) | `<nixos-hardware/lenovo/thinkpad/t590>` |
| [Lenovo ThinkPad X1 Yoga](lenovo/thinkpad/x1/yoga) | `<nixos-hardware/lenovo/thinkpad/x1/yoga>` |
| [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 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 X13 Yoga](lenovo/thinkpad/x13/yoga) | `<nixos-hardware/lenovo/thinkpad/x13/yoga>` |
| [Lenovo ThinkPad X13](lenovo/thinkpad/x13) | `<nixos-hardware/lenovo/thinkpad/x13>` |
| [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 Z Series](lenovo/thinkpad/z) | `<nixos-hardware/lenovo/thinkpad/z>` |
| [Lenovo ThinkPad Z13](lenovo/thinkpad/z/z13) | `<nixos-hardware/lenovo/thinkpad/z/z13>` |
| [MSI GS60 2QE](msi/gs60) | `<nixos-hardware/msi/gs60>` |
| [MSI GL62/CX62](msi/gl62) | `<nixos-hardware/msi/gl62>` |
| [Microsoft Surface Pro 3](microsoft/surface-pro/3) | `<nixos-hardware/microsoft/surface-pro/3>` |
| [Microsoft Surface Range](microsoft/surface) | `<nixos-hardware/microsoft/surface>` |
| [Omen en00015p](omen/en00015p) | `<nixos-hardware/omen/en00015p>` |
| [One-Netbook OneNetbook 4](onenetbook/4) | `<nixos-hardware/onenetbook/4>` |
| [PC Engines APU](pcengines/apu) | `<nixos-hardware/pcengines/apu>` |
| [PINE64 Pinebook Pro](pine64/pinebook-pro/) | `<nixos-hardware/pine64/pinebook-pro>` |
| [Purism Librem 13v3](purism/librem/13v3) | `<nixos-hardware/purism/librem/13v3>` |
| [Purism Librem 15v3](purism/librem/13v3) | `<nixos-hardware/purism/librem/15v3>` |
| [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>` |
| [Supermicro A1SRi-2758F](supermicro/a1sri-2758f) | `<nixos-hardware/supermicro/a1sri-2758f>` |
| [Supermicro M11SDV-8C-LN4F](supermicro/m11sdv-8c-ln4f) | `<nixes-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>` |
-4
View File
@@ -6,10 +6,6 @@
../../../common/pc/laptop/ssd
];
# TODO: boot loader
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# TODO: reverse compat
hardware.opengl.driSupport32Bit = true;
+40 -2
View File
@@ -22,11 +22,49 @@ This configuration will **not** work with MacBook Pro 11,2 or 11,3 models.
## Graphics
The [MacBookPro11,4 and MacBookPro11,5](https://support.apple.com/kb/SP719) models ship with a discrete ATI graphics card (whereas MacBookPro11,2 and MacBookPro11,3 ship with NVidia cards). This is alongside the usual integrated Intel GPU.
The [MacBookPro11,4 and MacBookPro11,5](https://support.apple.com/kb/SP719) models ship with a discrete ATI/AMD graphics card (whereas MacBookPro11,2 and MacBookPro11,3 ship with NVidia cards). This is alongside the usual integrated Intel GPU.
You may wish to look into dynamic switching between integrated and discrete graphics, but this config doesn't attempt it.
To switch from the older `radeon` driver to the newer `amdgpu` driver (via experimental `si_support`), include `nixos-hardware.nixosModules.common-gpu-amd-southern-islands` (or `${nixos-hardware}/common/gpu/amd/southern-islands`) in your configuration. This will get you vulkan support among other benefits.
For example, in your `flake.nix`:
```nix
nixosConfigurations = {
macbook-pro-11-5 = lib.nixosSystem {
system = "x86_64-linux";
modules = [
nixos-hardware.nixosModules.apple-macbook-pro-11-5
nixos-hardware.nixosModules.common-gpu-amd-southern-islands
{
# Your personal configuration
}
];
};
};
```
## Power management
You may also wish to look into dynamic switching between integrated and discrete graphics, but this config doesn't currently attempt it.
See the removed [hardware.amdHybridGraphics.disable](https://github.com/NixOS/nixpkgs/pull/33915) option for an entry point.
## Hardware probes
Hardware probes generated with `nix run nixpkgs#hw-probe -- -all -upload`:
* Probe [#305905e674](https://linux-hardware.org/?probe=305905e674) of Apple MacBookPro11,5 (with `amdgpu` driver)
DRM (Direct Rendering Manager) snapshots generated with `drm_info -j | curl -d @- https://drmdb.emersion.fr/submit`:
* Snapshot [#e8f8076f1f1b](https://drmdb.emersion.fr/snapshots/e8f8076f1f1b) (with `amdgpu` driver)
## Additional resources
* Arch linux wiki: [MacBookPro11,x](https://wiki.archlinux.org/index.php/MacBookPro11,x)
* Kernel patches: [MacBookPro11,x](https://bugzilla.kernel.org/buglist.cgi?quicksearch=macbookpro11)
For more context about experimental `amdgpu` support, see:
* [Enabling AMDGPU by default for SI & CIK (November 2021)](https://gitlab.freedesktop.org/drm/amd/-/issues/1776)
* [Enabling AMDGPU by default for SI & CIK (August 2020))](https://lists.freedesktop.org/archives/amd-gfx/2020-August/052243.html)
* [Feature support matrix](https://wiki.gentoo.org/wiki/AMDGPU#Feature_support)
+2 -5
View File
@@ -10,13 +10,10 @@ in
imports = [
../.
../../../common/pc/laptop/ssd
<nixpkgs/nixos/modules/hardware/network/broadcom-43xx.nix>
];
# Apparently this is currently only supported by ati_unfree drivers, not ati
hardware.opengl.driSupport32Bit = false;
services.xserver.videoDrivers = [ "ati" ];
# Enable broadcom-43xx firmware
hardware.enableRedistributableFirmware = lib.mkDefault true;
services.udev.extraRules =
# Disable XHC1 wakeup signal to avoid resume getting triggered some time
+37
View File
@@ -0,0 +1,37 @@
{ config, pkgs, lib, ... }:
let
p = pkgs.writeScriptBin "charge-upto" ''
echo ''${0:-100} > /sys/class/power_supply/BAT0/charge_control_end_threshold
'';
cfg = config.hardware.asus.battery;
in
{
options.hardware.asus.battery = {
chargeUpto = lib.mkOption {
description = "Maximum level of charge for your battery, as a percentage.";
default = 100;
type = lib.types.int;
};
enableChargeUptoScript = lib.mkOption {
description = "Whether to add charge-upto to environment.systemPackages. `charge-upto 75` temporarily sets the charge limit to 75%.";
default = true;
type = lib.types.bool;
};
};
config = {
environment.systemPackages = lib.mkIf cfg.enableChargeUptoScript [ p ];
systemd.services.battery-charge-threshold = {
wantedBy = [ "local-fs.target" "suspend.target" ];
after = [ "local-fs.target" "suspend.target" ];
description = "Set the battery charge threshold to ${toString cfg.chargeUpto}%";
startLimitBurst = 5;
startLimitIntervalSec = 1;
serviceConfig = {
Type = "oneshot";
Restart = "on-failure";
ExecStart = "${pkgs.runtimeShell} -c 'echo ${toString cfg.chargeUpto} > /sys/class/power_supply/BAT0/charge_control_end_threshold'";
};
};
};
}
+29
View File
@@ -0,0 +1,29 @@
{ config, pkgs, lib, ... }:
{
imports = [
../../../common/cpu/amd/pstate.nix
../../../common/gpu/nvidia.nix
../../../common/pc/laptop
../../../common/pc/ssd
../../battery.nix
];
# fixing audio by overriding pins as suggested in
# https://www.reddit.com/r/ASUS/comments/mfokva/asus_strix_scar_17_g733qs_and_linux/
hardware.firmware = [
(pkgs.runCommand "jack-retask" { } ''
install -D ${./hda-jack-retask.fw} $out/lib/firmware/hda-jack-retask.fw
'')
];
boot.extraModprobeConfig = ''
options snd-hda-intel patch=hda-jack-retask.fw
'';
# before 5.12 it would interpret every keystroke as the power button
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.12") (lib.mkDefault pkgs.linuxPackages_latest);
hardware.nvidia.prime = {
offload.enable = lib.mkDefault true;
amdgpuBusId = "PCI:5:0:0";
nvidiaBusId = "PCI:1:0:1";
};
}
+16
View File
@@ -0,0 +1,16 @@
[codec]
0x10ec0285 0x10431e6e 0
[pincfg]
0x12 0x90a60140
0x13 0x40000000
0x14 0x90170152
0x16 0x411111f0
0x17 0x90170110
0x18 0x411111f0
0x19 0x03a19020
0x1a 0x411111f0
0x1b 0x411111f0
0x1d 0x40663a45
0x1e 0x90170151
0x21 0x03211020
+21
View File
@@ -0,0 +1,21 @@
{ ... }:
{
imports = [
../../../common/cpu/amd
../../../common/gpu/nvidia.nix
../../../common/pc/laptop
../../../common/pc/ssd
];
hardware.nvidia.prime = {
amdgpuBusId = "PCI:4: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
'';
}
+21
View File
@@ -0,0 +1,21 @@
{ ... }:
{
imports = [
../../../common/cpu/amd
../../../common/gpu/nvidia.nix
../../../common/pc/laptop
../../../common/pc/ssd
];
hardware.nvidia.prime = {
amdgpuBusId = "PCI:7: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
'';
}
+2
View File
@@ -0,0 +1,2 @@
cut_body_after = "" # don't include text from the PR body in the merge commit message
status = [ "tests" ]
+10
View File
@@ -0,0 +1,10 @@
{ lib, config, ... }: {
# 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.
imports = [ ./. ];
boot = lib.mkIf (lib.versionAtLeast config.boot.kernelPackages.kernel.version "5.17") {
kernelParams = [ "initcall_blacklist=acpi_cpufreq_init" ];
kernelModules = [ "amd-pstate" ];
};
}
+6
View File
@@ -0,0 +1,6 @@
{ config, lib, pkgs, ... }:
{
hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
}
+3 -10
View File
@@ -1,15 +1,8 @@
{ config, lib, pkgs, ... }:
{
boot.initrd.kernelModules = [ "i915" ];
hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.opengl.extraPackages = with pkgs; [
vaapiIntel
vaapiVdpau
libvdpau-va-gl
intel-media-driver
imports = [
./cpu-only.nix
../../gpu/intel.nix
];
}
+6
View File
@@ -10,8 +10,14 @@
amdvlk
];
hardware.opengl.extraPackages32 = with pkgs; [
driversi686Linux.amdvlk
];
hardware.opengl = {
driSupport = lib.mkDefault true;
driSupport32Bit = lib.mkDefault true;
};
environment.variables.AMD_VULKAN_ICD = lib.mkDefault "RADV";
}
+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; [
vaapiIntel
libvdpau-va-gl
intel-media-driver
];
}
+1 -2
View File
@@ -1,10 +1,9 @@
{ lib, pkgs, ... }:
{
# This runs only Intel and nvidia does not drain power.
# This runs only intel/amdgpu igpus and nvidia dgpus do not drain power.
##### disable nvidia, very nice battery life.
hardware.nvidiaOptimus.disable = lib.mkDefault true;
boot.blacklistedKernelModules = lib.mkDefault [ "nouveau" "nvidia" ];
services.xserver.videoDrivers = lib.mkDefault [ "intel" ];
}
+5 -1
View File
@@ -8,7 +8,7 @@ let
export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export __VK_LAYER_NV_optimus=NVIDIA_only
exec -a "$0" "$@"
exec "$@"
'';
in
{
@@ -19,4 +19,8 @@ in
offload.enable = lib.mkDefault true;
# Hardware should specify the bus ID for intel/nvidia devices
};
hardware.opengl.extraPackages = with pkgs; [
vaapiVdpau
];
}
+1 -5
View File
@@ -1,7 +1,3 @@
{ lib, ... }:
{
boot.kernel.sysctl = {
"vm.swappiness" = lib.mkDefault 10;
};
}
{}
+5 -1
View File
@@ -3,5 +3,9 @@
{
imports = [ ../. ];
services.tlp.enable = lib.mkDefault true;
# Gnome 40 introduced a new way of managing power, without tlp.
# However, these 2 services clash when enabled simultaneously.
# https://github.com/NixOS/nixos-hardware/issues/260
services.tlp.enable = lib.mkDefault ((lib.versionOlder (lib.versions.majorMinor lib.version) "21.05")
|| !config.services.power-profiles-daemon.enable);
}
-4
View File
@@ -1,9 +1,5 @@
{ lib, ... }:
{
boot.kernel.sysctl = {
"vm.swappiness" = lib.mkDefault 1;
};
services.fstrim.enable = lib.mkDefault true;
}
+46
View File
@@ -0,0 +1,46 @@
## Dell Inspiron 5509
### Tested Hardware
``` shellsession
$ lspci -nn
00:00.0 Host bridge [0600]: Intel Corporation 11th Gen Core Processor Host Bridge/DRAM Registers [8086:9a14] (rev 01)
00:02.0 VGA compatible controller [0300]: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] [8086:9a49] (rev 01)
00:04.0 Signal processing controller [1180]: Intel Corporation TigerLake-LP Dynamic Tuning Processor Participant [8086:9a03] (rev 01)
00:06.0 PCI bridge [0604]: Intel Corporation 11th Gen Core Processor PCIe Controller [8086:9a09] (rev 01)
00:07.0 PCI bridge [0604]: Intel Corporation Tiger Lake-LP Thunderbolt 4 PCI Express Root Port #0 [8086:9a23] (rev 01)
00:0a.0 Signal processing controller [1180]: Intel Corporation Tigerlake Telemetry Aggregator Driver [8086:9a0d] (rev 01)
00:0d.0 USB controller [0c03]: Intel Corporation Tiger Lake-LP Thunderbolt 4 USB Controller [8086:9a13] (rev 01)
00:0d.2 USB controller [0c03]: Intel Corporation Tiger Lake-LP Thunderbolt 4 NHI #0 [8086:9a1b] (rev 01)
00:12.0 Serial controller [0700]: Intel Corporation Tiger Lake-LP Integrated Sensor Hub [8086:a0fc] (rev 20)
00:14.0 USB controller [0c03]: Intel Corporation Tiger Lake-LP USB 3.2 Gen 2x1 xHCI Host Controller [8086:a0ed] (rev 20)
00:14.2 RAM memory [0500]: Intel Corporation Tiger Lake-LP Shared SRAM [8086:a0ef] (rev 20)
00:15.0 Serial bus controller [0c80]: Intel Corporation Tiger Lake-LP Serial IO I2C Controller #0 [8086:a0e8] (rev 20)
00:15.1 Serial bus controller [0c80]: Intel Corporation Tiger Lake-LP Serial IO I2C Controller #1 [8086:a0e9] (rev 20)
00:16.0 Communication controller [0780]: Intel Corporation Tiger Lake-LP Management Engine Interface [8086:a0e0] (rev 20)
00:1c.0 PCI bridge [0604]: Intel Corporation Device [8086:a0be] (rev 20)
00:1f.0 ISA bridge [0601]: Intel Corporation Tiger Lake-LP LPC Controller [8086:a082] (rev 20)
00:1f.3 Multimedia audio controller [0401]: Intel Corporation Tiger Lake-LP Smart Sound Technology Audio Controller [8086:a0c8] (rev 20)
00:1f.4 SMBus [0c05]: Intel Corporation Tiger Lake-LP SMBus Controller [8086:a0a3] (rev 20)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Tiger Lake-LP SPI Controller [8086:a0a4] (rev 20)
01:00.0 Non-Volatile memory controller [0108]: SK hynix Device [1c5c:174a]
2c:00.0 Network controller [0280]: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter [168c:003e] (rev 32)
```
### 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)
+ Disable *RAID* and use **AHCI**
### Firmware Upgrades
Note that this device is supported by [fwupd](https://fwupd.org).
To perform firmware upgrades just activate the service:
```
services.fwupd.enable = true;
```
Then use `fwupdmgr` to perform updates
+20
View File
@@ -0,0 +1,20 @@
{ lib, ... }:
{
imports = [
../../../common/cpu/intel
../../../common/pc/laptop
../../../common/pc/ssd
];
# Essential Firmware
hardware.enableRedistributableFirmware = lib.mkDefault true;
# Cooling Management
services.thermald.enable = lib.mkDefault true;
# Touchpad
services.xserver = {
libinput.touchpad.tapping = true;
libinput.touchpad.tappingDragLock = true;
};
}
+55
View File
@@ -0,0 +1,55 @@
## Dell Inspiron 5509
### Tested Hardware
``` shellsession
$ lspci -nn
00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Root Complex [1022:1630]
00:00.2 IOMMU [0806]: Advanced Micro Devices, Inc. [AMD] Renoir IOMMU [1022:1631]
00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]
00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]
00:02.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge [1022:1634]
00:02.4 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge [1022:1634]
00:08.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]
00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus [1022:1635]
00:08.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus [1022:1635]
00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 51)
00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e] (rev 51)
00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 0 [1022:1448]
00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 1 [1022:1449]
00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 2 [1022:144a]
00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 3 [1022:144b]
00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 4 [1022:144c]
00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 5 [1022:144d]
00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 6 [1022:144e]
00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 7 [1022:144f]
01:00.0 Network controller [0280]: Intel Corporation Wi-Fi 6 AX200 [8086:2723] (rev 1a)
02:00.0 Non-Volatile memory controller [0108]: KIOXIA Corporation Device [1e0f:0001]
03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Lucienne [1002:164c] (rev c1)
03:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:1637]
03:00.2 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor [1022:15df]
03:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Renoir USB 3.1 [1022:1639]
03:00.4 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Renoir USB 3.1 [1022:1639]
03:00.5 Multimedia controller [0480]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor [1022:15e2] (rev 01)
03:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller [1022:15e3]
04:00.0 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7901] (rev 81)
04:00.1 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7901] (rev 81)
```
### 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)
+ Disable *RAID* and use **AHCI**
### Firmware Upgrades
Note that this device is supported by [fwupd](https://fwupd.org).
To perform firmware upgrades just activate the service:
```
services.fwupd.enable = true;
```
Then use `fwupdmgr` to perform updates
+33
View File
@@ -0,0 +1,33 @@
{ lib, pkgs, ... }:
{
imports = [
../../../common/pc/laptop
../../../common/pc/ssd
];
hardware.enableRedistributableFirmware = lib.mkDefault true;
# touchpad identifies itself as DELL0A78:00 27C6:0D42 Touchpad in xinput list
# it sometimes fails to register (ps2 mouse emulation works, but not scrolling)
# hack around it by unloading and reloading module i2c_hid
systemd.services.fix-touchpad = {
path = [ pkgs.kmod ];
serviceConfig.ExecStart = ''${pkgs.systemd}/bin/systemd-inhibit --what=sleep --why="fixing touchpad must finish before sleep" --mode=delay ${./fix_touchpad.sh}'';
serviceConfig.Type = "oneshot";
description = "reload touchpad driver";
# must run at boot (and not too early), and after suspend
wantedBy = [ "display-manager.service" "post-resume.target" ];
# prevent running before suspend
after = [ "post-resume.target" ];
};
# so that post-resume.service exists
powerManagement.enable = true;
# fix suspend
# 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;
}
+26
View File
@@ -0,0 +1,26 @@
#!/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 i2c_hid_acpi
wait_unload i2c_hid
modprobe i2c_hid
modprobe i2c_hid_acpi
+49
View File
@@ -0,0 +1,49 @@
## Dell Inspiron 7405
### Tested Hardware
``` shellsession
$ lspci -nn
00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex [1022:1630]
00:00.2 IOMMU [0806]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU [1022:1631]
00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]
00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]
00:02.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]
00:02.4 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge [1022:1634]
00:08.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge [1022:1632]
00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus [1022:1635]
00:08.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus [1022:1635]
00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 51)
00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e] (rev 51)
00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 0 [1022:1448]
00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 1 [1022:1449]
00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 2 [1022:144a]
00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 3 [1022:144b]
00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 4 [1022:144c]
00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 5 [1022:144d]
00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 6 [1022:144e]
00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 7 [1022:144f]
01:00.0 Network controller [0280]: Intel Corporation Wi-Fi 6 AX200 [8086:2723] (rev 1a)
02:00.0 Non-Volatile memory controller [0108]: SK hynix BC511 [1c5c:1339]
03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Renoir [1002:1636] (rev c2)
03:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller [1002:1637]
03:00.2 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor [1022:15df]
03:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 [1022:1639]
03:00.4 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 [1022:1639]
03:00.5 Multimedia controller [0480]: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor [1022:15e2] (rev 01)
03:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller [1022:15e3]
03:00.7 Signal processing controller [1180]: Advanced Micro Devices, Inc. [AMD] Sensor Fusion Hub [1022:15e4]
04:00.0 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7901] (rev 81)
04:00.1 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7901] (rev 81)
```
### Extra Configuration
#### Bluetooth
To enable bluetooth support, set `hardware.bluetooth.enable = true;`.
#### Firmware Upgrades
This device is partially supported by [fwupd](https://fwupd.org).\
To perform firmware upgrades, add `services.fwupd.enable = true;`, then use `fwupdmgr` to perform updates.
+17
View File
@@ -0,0 +1,17 @@
{ lib, ... }:
with lib;
{
imports = [
../../../common/cpu/amd
../../../common/gpu/amd
../../../common/pc/laptop
../../../common/pc/laptop/ssd
];
# TSC is unstable
boot.kernelParams = [ "notsc" "trace_clock=local" ];
hardware.enableRedistributableFirmware = mkDefault true;
}
+66
View File
@@ -0,0 +1,66 @@
# Dell Latitude 5520
## Hardware
- 11th Gen Intel® Core™ i7-1185G7, vPro® (12 MB cache, 4 cores, 8 threads, 3.00 to 4.80 GHz Turbo)
- Intel® Iris® Xe Graphics Capable with Thunderbolt for i7-1185G7 vPro® processor
- 15.6" FHD (1920x1080) Non-Touch, Anti-Glare, 250nits
- 16 GB, 1 x 16 GB, DDR4, 3200 MHz
- 512 GB, M.2, PCIe NVMe, SSD, Class 35
- Dimensions
- Height: 0.78 in. (19.87 mm)
- Width: 14.09 in. (357.8 mm)
- Depth: 9.19 in. (233.3 mm)
- Weight: 3.50 lbs. (1.59 kg)
- Power
- 4 Cell, 63 Wh, ExpressCharge™ Capable
- 65W Type-C EPEAT Adapter
- Ports
- 1 RJ-45 Ethernet port
- 1 USB 3.2 Gen 1 port
- 1 USB 3.2 Gen 1 port with PowerShare
- 2 Thunderbolt 4 ports with DisplayPort Alt Mode/USB4/Power Delivery for 11th Generation Intel® Core™ i3/i5/i7 processors
- 1 HDMI 2.0 port for 11th Generation Intel® Core™ i3/i5/i7 processors
- 1 Universal audio port
```shellsession
↳ lspci -nn
00:00.0 Host bridge [0600]: Intel Corporation 11th Gen Core Processor Host Bridge/DRAM Registers [8086:9a14] (rev 01)
00:02.0 VGA compatible controller [0300]: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] [8086:9a49] (rev 01)
00:04.0 Signal processing controller [1180]: Intel Corporation TigerLake-LP Dynamic Tuning Processor Participant [8086:9a03] (rev 01)
00:07.0 PCI bridge [0604]: Intel Corporation Tiger Lake-LP Thunderbolt 4 PCI Express Root Port #0 [8086:9a23] (rev 01)
00:07.1 PCI bridge [0604]: Intel Corporation Tiger Lake-LP Thunderbolt 4 PCI Express Root Port #1 [8086:9a25] (rev 01)
00:0d.0 USB controller [0c03]: Intel Corporation Tiger Lake-LP Thunderbolt 4 USB Controller [8086:9a13] (rev 01)
00:0d.2 USB controller [0c03]: Intel Corporation Tiger Lake-LP Thunderbolt 4 NHI #0 [8086:9a1b] (rev 01)
00:12.0 Serial controller [0700]: Intel Corporation Tiger Lake-LP Integrated Sensor Hub [8086:a0fc] (rev 20)
00:14.0 USB controller [0c03]: Intel Corporation Tiger Lake-LP USB 3.2 Gen 2x1 xHCI Host Controller [8086:a0ed] (rev 20)
00:14.2 RAM memory [0500]: Intel Corporation Tiger Lake-LP Shared SRAM [8086:a0ef] (rev 20)
00:14.3 Network controller [0280]: Intel Corporation Wi-Fi 6 AX201 [8086:a0f0] (rev 20)
00:15.0 Serial bus controller [0c80]: Intel Corporation Tiger Lake-LP Serial IO I2C Controller #0 [8086:a0e8] (rev 20)
00:15.1 Serial bus controller [0c80]: Intel Corporation Tiger Lake-LP Serial IO I2C Controller #1 [8086:a0e9] (rev 20)
00:16.0 Communication controller [0780]: Intel Corporation Tiger Lake-LP Management Engine Interface [8086:a0e0] (rev 20)
00:16.3 Serial controller [0700]: Intel Corporation Device [8086:a0e3] (rev 20)
00:1c.0 PCI bridge [0604]: Intel Corporation Device [8086:a0be] (rev 20)
00:1d.0 PCI bridge [0604]: Intel Corporation Tiger Lake-LP PCI Express Root Port #9 [8086:a0b0] (rev 20)
00:1f.0 ISA bridge [0601]: Intel Corporation Tiger Lake-LP LPC Controller [8086:a082] (rev 20)
00:1f.3 Audio device [0403]: Intel Corporation Tiger Lake-LP Smart Sound Technology Audio Controller [8086:a0c8] (rev 20)
00:1f.4 SMBus [0c05]: Intel Corporation Tiger Lake-LP SMBus Controller [8086:a0a3] (rev 20)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Tiger Lake-LP SPI Controller [8086:a0a4] (rev 20)
00:1f.6 Ethernet controller [0200]: Intel Corporation Ethernet Connection (13) I219-LM [8086:15fb] (rev 20)
71:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader [10ec:525a] (rev 01)
72:00.0 Non-Volatile memory controller [0108]: SK hynix Device [1c5c:174a]
```
## Firmware Upgrade Manager
_Dell Latitude 5520_ seems to be supported by [fwupd](https://fwupd.org), as it is found in the [device list](https://fwupd.org/lvfs/devices/). Use `fwupdmgr` to perform updates.
## Other Stuff
Here I list a few useful things from other configs. As I don't fully understand the implications I didn't enable them.
- `services.throttled.enable`: a fix for Intel CPU throttling
- `boot.blacklistedKernelModules = [ "psmouse" ];`: "touchpad goes over i2c" (whatever that means)
- `boot.blacklistedKernelModules = [ "firewire_ohci" ];`: fix for SD card reader (from the [Arch Wiki](https://wiki.archlinux.org/title/Dell_Latitude_E5520))
- `boot.kernelParams = [ "mem_sleep_default=deep" ];`: Force S3 sleep mode to preserve battery during sleep
+18
View File
@@ -0,0 +1,18 @@
{ lib, pkgs, ... }:
{
imports = [
../../../common/cpu/intel
../../../common/pc/laptop
../../../common/pc/laptop/ssd
];
# Essential Firmware
hardware.enableRedistributableFirmware = lib.mkDefault true;
# Cooling Management
services.thermald.enable = lib.mkDefault true;
# Enable fwupd
services.fwupd.enable = lib.mkDefault true;
}
+36
View File
@@ -0,0 +1,36 @@
= Dell Latitude 7490 =
== Tested Hardware ==
``` shellsession
$ lspci -nn
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev 08)
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07)
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 08)
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
00:15.0 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0 (rev 21)
00:15.1 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #1 (rev 21)
00:15.2 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #2 (rev 21)
00:15.3 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #3 (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
00:16.3 Serial controller: Intel Corporation Sunrise Point-LP Active Management Technology - SOL (rev 21)
00:17.0 RAID bus controller: Intel Corporation 82801 Mobile SATA Controller [RAID mode] (rev 21)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #1 (rev f1)
00:1c.2 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #3 (rev f1)
00:1c.4 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point LPC Controller/eSPI Controller (rev 21)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (4) I219-LM (rev 21)
01:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader (rev 01)
02:00.0 Network controller: Intel Corporation Wireless 8265 / 8275 (rev 78)
```
=== 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).''
+10
View File
@@ -0,0 +1,10 @@
{ lib, pkgs, ... }:
{
imports = [
../../../common/cpu/intel
../../../common/pc/laptop
];
services.thermald.enable = lib.mkDefault true;
}
+15
View File
@@ -0,0 +1,15 @@
[Dell Poweredge R7515](https://www.dell.com/en-us/work/shop/productdetailstxn/poweredge-r7515#techspecs_section)
## Install bios update via UEFI
UEFI updates cannot be updated via the iDrac since it only supports BIOS
firmware files. If you use systemd boot you can however download the EFI
firmware file and put it in `/boot/EFI/Dell/bios-update.efi`.
Also write the following efi boot entry file as
`/boot/loader/entries/z-efi-update.conf`:
```
title EFI update
efi /efi/Dell/bios-update.efi
```
+6
View File
@@ -0,0 +1,6 @@
{ ... }:
{
imports = [
../../../common/cpu/amd
];
}
+5 -3
View File
@@ -7,16 +7,18 @@
../../../common/pc/laptop/ssd
];
# https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1803179/comments/149
# fix lspci hanging with nouveau
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"
"scsi_mod.use_blk_mq=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"
];
}
+10
View File
@@ -4,6 +4,16 @@
You need to disable RAID and use AHCI instead as described [https://wiki.ubuntu.com/Dell/XPS/XPS-13-7390-2-in-1 here].
== Known Issues ==
If your BIOS version is greater than or equal to 1.0.13, you may need to add
<code>
systemd.sleep.extraConfig = "SuspendState=freeze";
</code>
to your <code>configuration.nix</code> if you cannot wake from "Sleep". See reference [https://askubuntu.com/a/1194128 here].
== Firmware upgrades ==
Note that this device is supported by [https://fwupd.org/ fwupd].
+8 -245
View File
@@ -1,253 +1,16 @@
{ lib, pkgs, ... }: {
imports = [ ../../../common/cpu/intel ../../../common/pc/laptop ];
imports = [
../../../common/cpu/intel
../../../common/pc/laptop
../../../common/pc/ssd
];
# Includes the Wi-Fi and Bluetooth firmware for the QCA6390.
hardware.enableRedistributableFirmware = true;
# Wi-Fi currently requires a specific set of patches to function.
# To ensure these patches do not conflict, we pin to a specific version here.
# TODO: Remove this once patches have finally landed in mainline.
boot.kernelPackages = let
linux_patched_pkg =
{ buildLinux, fetchurl, modDirVersionArg ? null, ... }@args:
buildLinux (args // rec {
version = "5.10.18";
modDirVersion = if (modDirVersionArg == null) then
builtins.replaceStrings [ "-" ] [ ".0-" ] version
else
modDirVersionArg;
src = fetchurl {
url = "mirror://kernel/linux/kernel/v5.x/linux-${version}.tar.xz";
sha256 = "04dnkg5j73f6cd8ws1prrrjx37srz7rm66bj6slmnfzp3cmyxh9v";
};
# kvalo qca6390 patches
# https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/log/?h=ath11k-qca6390-bringup
kernelPatches = [
{
name = "add-64-bit-check-before-reading-msi-high-addr";
patch = pkgs.fetchpatch {
url =
"https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/patch/?id=065c9528cc508cfbf6e3399582df29f76f56163c";
sha256 = "1mqhwags919vlxllzqh5kj4b2l869swvfwa89jk804a1l4l02fmv";
};
}
{
name = "pci-support-platforms-with-one-msi-vector";
patch = pkgs.fetchpatch {
url =
"https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/patch/?id=59c6d022df8efb450f82d33dd6a6812935bd022f";
sha256 = "0sxbb58bnryb9hic1cyc8dzrzachhca7a6hywyzz1pksh9syhs5y";
};
}
{
name = "fix-monitor-status-dma-unmap-direction";
patch = pkgs.fetchpatch {
url =
"https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/patch/?id=fa4eea695afb286ae38beb30dabf251335cb4a62";
sha256 = "1sh3d8ck4nlg671j2y8f07394xrqlnbrvh9rmy4l1zfpz7wa7d10";
};
}
{
name = "hook-mhi-suspend-and-resume";
patch = pkgs.fetchpatch {
url =
"https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/patch/?id=762fe5bc2dd1e43ef307a375861b1a8c414b14e3";
sha256 = "154p8gp4smmmkhyx127f6rib04xd5bn38a3n4893rbyyb5kckv40";
};
}
{
name = "implement-hif-suspend-and-resume-functions";
patch = pkgs.fetchpatch {
url =
"https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/patch/?id=2f164833bcca14e8aec0b2566eae4b5a7d09ee6f";
sha256 = "1ic968y1ivlgfhbj67ds809zqas7n50kc6wb8jgksk227dvagnip";
};
}
{
name = "read-select_window-register-to-ensure-write-is-finished";
patch = pkgs.fetchpatch {
url =
"https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/patch/?id=6afab932ece78fedc1538c20c2aefdd13aa6c9d0";
sha256 = "19jiz9mf868rj57ljjdb3n97sfi6x78ac9kgd7fhg1bh0zjjiskp";
};
}
{
name = "implement-htc-suspend-related-callbacks";
patch = pkgs.fetchpatch {
url =
"https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/patch/?id=69ab2835b82c176e793195243e1400d4f8db3647";
sha256 = "1gba5h0s6c6zjplw8zyqc2qj21ly1m2xzbgznml159wzj2xvzb2m";
};
}
{
name = "put-target-to-suspend-when-system-enters-suspend-state";
patch = pkgs.fetchpatch {
url =
"https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/patch/?id=68023bee4d61ea2b02af49bba00adabba51d8b6b";
sha256 = "05aqdjd5xps0wncrh41r805fn2rpnhw53pn02a374g81bbifwa5q";
};
}
{
name = "pci-print-a-warning-if-firmware-crashed";
patch = pkgs.fetchpatch {
url =
"https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/patch/?id=23dcef9436560a033703164c4daff9e36e640969";
sha256 = "0m45wvilr2cgdkpdjzcz4hdzsfs596ibjsvd7sdksjbrp5wslla1";
};
}
{
name = "qmi-print-allocated-memory-segment-addresses-and-sizes";
patch = pkgs.fetchpatch {
url =
"https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/patch/?id=a327caa4a5a677161a6f1d29514e8cb42236e956";
sha256 = "1id6xz7siw1x2xa00psqvr4h5zb0xd83apy0cyv4jqzkd5x1kwl0";
};
}
{
name = "put-hw-to-dbs-using-mode";
patch = pkgs.fetchpatch {
url =
"https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/patch/?id=ce8b5dfc16a0b84ac9ab2d508c2d5e66e8bf179a";
sha256 = "0gcnzn82mjdqy3ly494xfawqb9xvwd01dcdr43cw8ik92jggs4sf";
};
}
{
name = "fix-pcie-link-unstable-issue";
patch = pkgs.fetchpatch {
url =
"https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/patch/?id=a82a3aee7cde95d533c28cad3749e3c354011896";
sha256 = "0r26g7j7kkm76bippp79vd462ykc8k8p0bxr7pshhkyazs6v1ij3";
};
}
{
name = "fix-pci-l1ss-clock-unstable-problem";
patch = pkgs.fetchpatch {
url =
"https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/patch/?id=08816aab67540e6babc558dafa973fc905a9afa1";
sha256 = "180hp6iwgw7cqiiwhp9cnzwr5z9n26pphi2j693x751crzr0xkzw";
};
}
{
name = "disable-otp-write-privilege";
patch = pkgs.fetchpatch {
url =
"https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/patch/?id=86c5a1d6983e647a55448c80f94eb8f0aa97dfad";
sha256 = "176g07kpsqnkc3vpfx2lhlrksmdg05m0zxn1i5yfvksczp2215iq";
};
}
{
name = "disable-aspm-l0sls-before-downloading-firmware";
patch = pkgs.fetchpatch {
url =
"https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/patch/?id=8bd374e3305359ca0be9fe88e8a1edc1abd537eb";
sha256 = "1grjsf6jvn536cz6wil79l2lzc90ga1c7sisv9j0qac7jzr7x5rz";
};
}
{
name = "purge-rx-pktlog-when-entering-suspend";
patch = pkgs.fetchpatch {
url =
"https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/patch/?id=6f481de563dd108bd3df616c80e60f308b7a48e3";
sha256 = "14qd1qv8v3mcslj7crzrw0ib1caa7vbnq7jkq163248658bbmk6p";
};
}
{
name = "set-credit_update-flag-for-flow-controlled-ep-only";
patch = pkgs.fetchpatch {
url =
"https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/patch/?id=6e0fba395a054cd58d87b3749f1f4ff2f3fef92e";
sha256 = "0sgjxj6m3fdlgdfg7rv5fajfmbmrccy5asrammlgbc7gh5sn9ac4";
};
}
{
name = "implement-wow-enable-and-wow-wakeup-command";
patch = pkgs.fetchpatch {
url =
"https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/patch/?id=cfca935c92d8f2b31c95e7fd074645245f54492a";
sha256 = "0dwbsqkw3f8v676s0x3jv04w0qk36ypvnwh02rx4qfdk38sh0j3j";
};
}
{
name = "add-ce-irq-enable-and-disable-hif-layer-functions";
patch = pkgs.fetchpatch {
url =
"https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/patch/?id=9297794a5d5af5e82b9554677f959add281a5b76";
sha256 = "0hl93l8khh36drllxii969nvkb6p4hh28gnjyg0y10adm5q9b4ac";
};
}
{
name = "put-target-to-wow-state-when-suspend-happens";
patch = pkgs.fetchpatch {
url =
"https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/patch/?id=d448ef6decab05c499ffc005c56307a6fc1f1abe";
sha256 = "17pgbmsryg96626xpbkzd0c27z71lsy7ygli4c6d4dzk5b9594zn";
};
}
{
name = "vdev-delete-sync-with-fw";
patch = pkgs.fetchpatch {
url =
"https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/patch/?id=c1d3ee50859a2d2c132a8461fdabde568df5ee20";
sha256 = "1dscfdqv5x3h024gryh0464mky0j6z681rliiix17kdh172vxx52";
};
}
{
name = "peer-delete-sync-with-fw";
patch = pkgs.fetchpatch {
url =
"https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/patch/?id=6244933ddba318b36bb00c48eeb8d63a24a901c2";
sha256 = "0p1663w0lik44gwyfzmxxiwnc3s9n3p46aappla8pbfk9wdgw86d";
};
}
{
name = "start-vdev-if-bss-peer-already-created";
patch = pkgs.fetchpatch {
url =
"https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/patch/?id=c58d077298d91c61c2466a50b58181a234474381";
sha256 = "1462w29isnlfqs4bavzprhj48wbzvmwasbzh4djzfnsjm0ld7z90";
};
}
{
name = "hack-mhi-disable-m2-state";
patch = pkgs.fetchpatch {
url =
"https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/patch/?id=cdda596d45a99fed1fe74b0605de6b220c955c0b";
sha256 = "0wfmaygzl8fav8lr67pjnhqskm6mh9ykcwqh71ijxvfn0kbq9fqg";
};
}
{
name = "hack-revert-place-pages-to-tail";
patch = pkgs.fetchpatch {
url =
"https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/patch/?id=60fad49a69e7b2f896ce7b1ade4ed532227b8e22";
sha256 = "0zhzjyym42r3rjwh55vk6p423lhz7555mb7xjqk63lczrsc221nm";
};
}
# Extra config required for Bluetooth.
# NOTE: Should consider upstreaming this to the default nix config.
# Especially the `SERIAL_DEV_BUS` and `SERIAL_DEV_CTRL_TTYPORT`
# options, as these are the recommended defaults.
{
name = "enable-qca6390-bluetooth";
patch = null;
extraConfig = ''
BT_QCA m
BT_HCIUART m
BT_HCIUART_QCA y
BT_HCIUART_SERDEV y
SERIAL_DEV_BUS y
SERIAL_DEV_CTRL_TTYPORT y
'';
}
];
# Enable some extra kernel modules for QCA6390 bluetooth.
kernelModules = [ "btqca" "hci_qca" "hci_uart" ];
} // (args.argsOverride or { }));
linux_patched = pkgs.callPackage linux_patched_pkg { };
in pkgs.recurseIntoAttrs (pkgs.linuxPackagesFor linux_patched);
# Requires at least 5.12 for working wi-fi and bluetooth.
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.12") (lib.mkDefault pkgs.linuxPackages_latest);
# Touchpad goes over i2c.
# Without this we get errors in dmesg on boot and hangs when shutting down.
+15
View File
@@ -0,0 +1,15 @@
{ lib, ... }:
{
imports = [
../../../common/cpu/intel
../../../common/pc/laptop
../../../common/pc/laptop/ssd
];
# The touchpad uses I²C, so PS/2 is unnecessary
boot.blacklistedKernelModules = [ "psmouse" ];
# Recommended in NixOS/nixos-hardware#127
services.thermald.enable = lib.mkDefault true;
}
-6
View File
@@ -8,12 +8,6 @@
boot.blacklistedKernelModules = [ "psmouse" ]; # touchpad goes over i2c
# TODO: decide on boot loader policy
boot.loader = {
efi.canTouchEfiVariables = lib.mkDefault true;
systemd-boot.enable = lib.mkDefault true;
};
# This will save you money and possibly your life!
services.thermald.enable = true;
}
+7
View File
@@ -18,4 +18,11 @@ in
# Thermald doesn't have a default config for the 9500 yet, the one in this repo
# was generated with dptfxtract-static (https://github.com/intel/dptfxtract)
services.thermald.configFile = lib.mkDefault thermald-conf;
# 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
'';
}
+7 -5
View File
@@ -3,6 +3,7 @@
{
imports = [
../../../../common/cpu/intel
../../../../common/gpu/nvidia.nix
../../../../common/pc/laptop
../xps-common.nix
];
@@ -11,10 +12,11 @@
# This runs only nvidia, great for games or heavy use of render applications
##### disable intel, run nvidia only and as default
services.xserver.videoDrivers = lib.mkDefault ["nvidia"];
hardware.nvidia.modesetting.enable = lib.mkDefault true;
hardware.nvidia.optimus_prime.enable = lib.mkDefault true;
hardware.nvidia.optimus_prime.nvidiaBusId = lib.mkDefault "PCI:1:0:0";
hardware.nvidia.optimus_prime.intelBusId = lib.mkDefault "PCI:0:2:0";
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";
};
}
-4
View File
@@ -1,10 +1,6 @@
{ lib, ... }:
{
# Boot loader
boot.loader.systemd-boot.enable = lib.mkDefault true;
boot.loader.efi.canTouchEfiVariables = lib.mkDefault true;
boot.kernelParams = lib.mkDefault [ "acpi_rev_override" ];
# This will save you money and possibly your life!
+62
View File
@@ -0,0 +1,62 @@
= Dell XPS 17 9700 =
== Tested Hardware ==
CPU: Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
Screen: 17" FHD(1920x1200) InfinityEdge
00:00.0 Host bridge: Intel Corporation 10th Gen Core Processor Host Bridge/DRAM Registers (rev 02)
00:01.0 PCI bridge: Intel Corporation 6th-10th Gen Core Processor PCIe Controller (x16) (rev 02)
00:02.0 VGA compatible controller: Intel Corporation CometLake-H GT2 [UHD Graphics] (rev 05)
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 02)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Comet Lake PCH Thermal Controller
00:13.0 Serial controller: Intel Corporation Device 06fc
00:14.0 USB controller: Intel Corporation Comet Lake USB 3.1 xHCI Host Controller
00:14.2 RAM memory: Intel Corporation Comet Lake PCH Shared SRAM
00:14.3 Network controller: Intel Corporation Comet Lake PCH CNVi WiFi
00:15.0 Serial bus controller [0c80]: Intel Corporation Comet Lake PCH Serial IO I2C Controller #0
00:15.1 Serial bus controller [0c80]: Intel Corporation Comet Lake PCH Serial IO I2C Controller #1
00:16.0 Communication controller: Intel Corporation Comet Lake HECI Controller
00:1b.0 PCI bridge: Intel Corporation Comet Lake PCI Express Root Port #17 (rev f0)
00:1c.0 PCI bridge: Intel Corporation Device 06b8 (rev f0)
00:1c.4 PCI bridge: Intel Corporation Device 06bc (rev f0)
00:1d.0 PCI bridge: Intel Corporation Comet Lake PCI Express Root Port #9 (rev f0)
00:1f.0 ISA bridge: Intel Corporation Device 068e
00:1f.3 Multimedia audio controller: Intel Corporation Comet Lake PCH cAVS
00:1f.4 SMBus: Intel Corporation Comet Lake PCH SMBus Controller
00:1f.5 Serial bus controller [0c80]: Intel Corporation Comet Lake PCH SPI Controller
01:00.0 3D controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Ti Mobile] (rev ff)
02:00.0 Non-Volatile memory controller: SK hynix Device 1639
03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5260 PCI Express Card Reader (rev 01)
04:00.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
05:00.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
05:01.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
05:02.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
05:04.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
06:00.0 System peripheral: Intel Corporation JHL7540 Thunderbolt 3 NHI [Titan Ridge 4C 2018] (rev 06)
3a:00.0 USB controller: Intel Corporation JHL7540 Thunderbolt 3 USB Controller [Titan Ridge 4C 2018] (rev 06)
6e:00.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
6f:00.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
6f:01.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
6f:02.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
6f:04.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 4C 2018] (rev 06)
70:00.0 System peripheral: Intel Corporation JHL7540 Thunderbolt 3 NHI [Titan Ridge 4C 2018] (rev 06)
a4:00.0 USB controller: Intel Corporation JHL7540 Thunderbolt 3 USB Controller [Titan Ridge 4C 2018] (rev 06)
== 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.
=== 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 drivr for this. (If you just have SSD it's pointless
and just slows things down needlessly anyways.)
+26
View File
@@ -0,0 +1,26 @@
{ lib, pkgs, ... }:
{
# Boot loader
boot.kernelParams = lib.mkDefault [ "acpi_rev_override" ];
boot.kernelModules = lib.mkDefault [ "kvm-intel" ];
hardware.enableRedistributableFirmware = lib.mkDefault true;
# This will save you money and possibly your life!
services.thermald.enable = lib.mkDefault true;
boot.kernelPatches = [{
name = "enable-soundwire-drivers";
patch = null;
extraConfig = ''
SND_SOC_INTEL_USER_FRIENDLY_LONG_NAMES y
SND_SOC_INTEL_SOUNDWIRE_SOF_MACH m
SND_SOC_RT1308 m
'';
}];
boot.kernelPackages =
lib.mkIf (lib.versionOlder pkgs.linux.version "5.11")
pkgs.linuxPackages_latest;
}
+10
View File
@@ -0,0 +1,10 @@
{ lib, pkgs, ... }:
{
imports = [
../../../../common/cpu/intel
../../../../common/pc/laptop
../../../../common/gpu/nvidia-disable.nix
../common.nix
];
}
+15
View File
@@ -0,0 +1,15 @@
{ lib, pkgs, ... }:
{
imports = [
../../../../common/cpu/intel
../../../../common/pc/laptop
../../../../common/gpu/nvidia.nix
../common.nix
];
hardware.nvidia.prime = {
nvidiaBusId = lib.mkDefault "PCI:1:0:0";
intelBusId = lib.mkDefault "PCI:0:2:0";
};
}
+44
View File
@@ -0,0 +1,44 @@
= Dell XPS 17 9710 =
There are two major hardware variants. Intel-only and NVidia
This has only been tested with the Intel-only variant
== Firmware Configuration ==
Enter the bios by repeatedly pressing F2 when the laptop turns on
=== Before installation ===
These settings are needed both for booting the final install, and installer itself. Therefore, they must be done first.
==== Method One ====
* Click ''Restore Settings'' button a select ''BIOS Defaults'', not to be confused with ''Factory Settings''
==== Method Two ====
* ''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
== Optional ==
=== 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.
=== Enable fingerprint reader ===
Activate the service
<code>
services.fprintd.enable = true;
</code>
+1
View File
@@ -0,0 +1 @@
../README.wiki
+13
View File
@@ -0,0 +1,13 @@
{ lib, pkgs, ... }: {
imports = [
../../../../common/cpu/intel
../../../../common/pc/laptop
../../../../common/pc/ssd
];
# Includes the Wi-Fi and Bluetooth firmware
hardware.enableRedistributableFirmware = true;
# Requires at least 5.12 for working sound
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.12") (lib.mkDefault pkgs.linuxPackages_latest);
}
+91 -30
View File
@@ -3,57 +3,110 @@
outputs = { self }: {
nixosModules = {
dell-aspire-4810t = import ./acer/aspire/4810t;
asus-fx504gd = import ./asus/fx504gd;
acer-aspire-4810t = import ./acer/aspire/4810t;
airis-n990 = import ./airis/n990;
apple-macbook-air-3 = import ./apple/macbook-air/3;
apple-macbook-air-4 = import apple/macbook-air/4;
apple-macbook-air-6 = import apple/macbook-air/6;
apple-macbook-air-4 = import ./apple/macbook-air/4;
apple-macbook-air-6 = import ./apple/macbook-air/6;
apple-macbook-pro = import ./apple/macbook-pro;
apple-macbook-pro-10-1 = import ./apple/macbook-pro/10-1;
apple-macbook-pro-11-5 = import ./apple/macbook-pro/11-5;
apple-macbook-pro-12-1 = import ./apple/macbook-pro/12-1;
asus-battery = import ./asus/battery.nix;
asus-fx504gd = import ./asus/fx504gd;
asus-rog-strix-g733qs = import ./asus/rog-strix/g733qs;
asus-zephyrus-ga401 = import ./asus/zephyrus/ga401;
asus-zephyrus-ga503 = import ./asus/zephyrus/ga503;
beagleboard-pocketbeagle = import ./beagleboard/pocketbeagle;
dell-g3-3779 = import ./dell/g3/3779;
dell-latitude-3480 = import ./dell/latitude/3480;
dell-precision-5530 = import ./dell/precision/5530;
dell-e7240 = import ./dell/e7240;
dell-g3-3779 = import ./dell/g3/3779;
dell-inspiron-5509 = import ./dell/inspiron/5509;
dell-inspiron-5515 = import ./dell/inspiron/5515;
dell-inspiron-7405 = import ./dell/inspiron/7405;
dell-latitude-3480 = import ./dell/latitude/3480;
dell-latitude-5520 = import ./dell/latitude/5520;
dell-latitude-7490 = import ./dell/latitude/7490;
dell-poweredge-r7515 = import ./dell/poweredge/r7515;
dell-precision-5530 = import ./dell/precision/5530;
dell-xps-13-7390 = import ./dell/xps/13-7390;
dell-xps-13-9310 = import ./dell/xps/13-9310;
dell-xps-13-9343 = import ./dell/xps/13-9343;
dell-xps-13-9350 = import ./dell/xps/13-9350;
dell-xps-13-9360 = import ./dell/xps/13-9360;
dell-xps-13-9370 = import ./dell/xps/13-9370;
dell-xps-13-9380 = import ./dell/xps/13-9380;
dell-xps-15-7590 = import ./dell/xps/15-7590;
dell-xps-15-9500 = import ./dell/xps/15-9500;
dell-xps-15-9500-nvidia = import ./dell/xps/15-9500/nvidia;
dell-xps-15-9550 = import ./dell/xps/15-9550;
dell-xps-15-9550-nvidia = import ./dell/xps/15-9550/nvidia;
dell-xps-15-9560 = import ./dell/xps/15-9560;
dell-xps-15-9560-intel = import ./dell/xps/15-9560/intel;
dell-xps-15-9560-nvidia = import ./dell/xps/15-9560/nvidia;
dell-xps-15-9500 = import ./dell/xps/15-9500;
dell-xps-15-9500-nvidia = import ./dell/xps/15-9500/nvidia;
dell-xps-17-9700-intel = import ./dell/xps/17-9700/intel;
dell-xps-17-9700-nvidia = import ./dell/xps/17-9700/nvidia;
dell-xps-17-9710-intel = import ./dell/xps/17-9710/intel;
framework = import ./framework;
framework-12th-gen-intel = import ./framework/12th-gen-intel;
friendlyarm-nanopc-t4 = import ./friendlyarm/nanopc-t4;
google-pixelbook = import ./google/pixelbook;
inversepath-usbarmory = import ./inversepath/usbarmory;
gpd-micropc = import ./gpd/micropc;
hp-elitebook-2560p = import ./hp/elitebook/2560p;
intel-nuc-8i7beh = import ./intel/nuc/8i7beh;
lenovo-ideapad-15arh05 = import ./lenovo/ideapad/15arh05;
lenovo-ideapad-z510 = import ./lenovo/ideapad/z510;
lenovo-legion-15ach6 = import ./lenovo/legion/15ach6;
lenovo-legion-15arh05h = import ./lenovo/legion/15arh05h;
lenovo-legion-16ithg6 = import ./lenovo/legion/16ithg6;
lenovo-thinkpad = import ./lenovo/thinkpad;
lenovo-thinkpad-e14-amd = import ./lenovo/thinkpad/e14/amd;
lenovo-thinkpad-e14-intel = import ./lenovo/thinkpad/e14/intel;
lenovo-thinkpad-e470 = import ./lenovo/thinkpad/e470;
lenovo-thinkpad-e495 = import ./lenovo/thinkpad/e495;
lenovo-thinkpad-l13 = import ./lenovo/thinkpad/l13;
lenovo-thinkpad-l14-intel = import ./lenovo/thinkpad/l14/intel;
lenovo-thinkpad-l13-yoga = import ./lenovo/thinkpad/l13/yoga;
lenovo-thinkpad-l14-amd = import ./lenovo/thinkpad/l14/amd;
lenovo-thinkpad-l14-intel = import ./lenovo/thinkpad/l14/intel;
lenovo-thinkpad-p1 = import ./lenovo/thinkpad/p1;
lenovo-thinkpad-p1-gen3 = import ./lenovo/thinkpad/p1/3th-gen;
lenovo-thinkpad-p14s-amd-gen2 = import ./lenovo/thinkpad/p14s/amd/gen2;
lenovo-thinkpad-p16s-amd-gen1 = import ./lenovo/thinkpad/p16s/amd/gen1;
lenovo-thinkpad-p50 = import ./lenovo/thinkpad/p50;
lenovo-thinkpad-p51 = import ./lenovo/thinkpad/p51;
lenovo-thinkpad-p52 = import ./lenovo/thinkpad/p52;
lenovo-thinkpad-p53 = import ./lenovo/thinkpad/p53;
lenovo-thinkpad-t14 = import ./lenovo/thinkpad/t14;
lenovo-thinkpad-t14-amd-gen1 = import ./lenovo/thinkpad/t14/amd/gen1;
lenovo-thinkpad-t14-amd-gen2 = import ./lenovo/thinkpad/t14/amd/gen2;
lenovo-thinkpad-t14-amd-gen3 = import ./lenovo/thinkpad/t14/amd/gen3;
lenovo-thinkpad-t14s = import ./lenovo/thinkpad/t14s;
lenovo-thinkpad-t14s-amd-gen1 = import ./lenovo/thinkpad/t14s/amd/gen1;
lenovo-thinkpad-t410 = import ./lenovo/thinkpad/t410;
lenovo-thinkpad-t420 = import ./lenovo/thinkpad/t420;
lenovo-thinkpad-t430 = import ./lenovo/thinkpad/t430;
lenovo-thinkpad-t440s = import ./lenovo/thinkpad/t440s;
lenovo-thinkpad-t440p = import ./lenovo/thinkpad/t440p;
lenovo-thinkpad-t440s = import ./lenovo/thinkpad/t440s;
lenovo-thinkpad-t450s = import ./lenovo/thinkpad/t450s;
lenovo-thinkpad-t460 = import ./lenovo/thinkpad/t460;
lenovo-thinkpad-t460p = import ./lenovo/thinkpad/t460p;
lenovo-thinkpad-t460s = import ./lenovo/thinkpad/t460s;
lenovo-thinkpad-t470s = import ./lenovo/thinkpad/t470s;
lenovo-thinkpad-t480 = import ./lenovo/thinkpad/t480;
lenovo-thinkpad-t480s = import ./lenovo/thinkpad/t480s;
lenovo-thinkpad-t490 = import ./lenovo/thinkpad/t490;
lenovo-thinkpad-t495 = import ./lenovo/thinkpad/t495;
lenovo-thinkpad-t550 = import ./lenovo/thinkpad/t550;
lenovo-thinkpad-t590 = import ./lenovo/thinkpad/t590;
lenovo-thinkpad-x1 = import ./lenovo/thinkpad/x1;
lenovo-thinkpad-x1-yoga = import ./lenovo/thinkpad/x1/yoga;
lenovo-thinkpad-x1-6th-gen = import ./lenovo/thinkpad/x1/6th-gen;
lenovo-thinkpad-x1-7th-gen = import ./lenovo/thinkpad/x1/7th-gen;
lenovo-thinkpad-x1-9th-gen = import ./lenovo/thinkpad/x1/9th-gen;
lenovo-thinkpad-x1-extreme = import ./lenovo/thinkpad/x1-extreme;
lenovo-thinkpad-x1-extreme-gen2 = import ./lenovo/thinkpad/x1-extreme/gen2;
lenovo-thinkpad-x1-extreme-gen4 = import ./lenovo/thinkpad/x1-extreme/gen4;
lenovo-thinkpad-x13 = import ./lenovo/thinkpad/x13;
lenovo-thinkpad-x13-yoga = import ./lenovo/thinkpad/x13/yoga;
lenovo-thinkpad-x140e = import ./lenovo/thinkpad/x140e;
lenovo-thinkpad-x200s = import ./lenovo/thinkpad/x200s;
lenovo-thinkpad-x220 = import ./lenovo/thinkpad/x220;
@@ -62,43 +115,51 @@
lenovo-thinkpad-x260 = import ./lenovo/thinkpad/x260;
lenovo-thinkpad-x270 = import ./lenovo/thinkpad/x270;
lenovo-thinkpad-x280 = import ./lenovo/thinkpad/x280;
lenovo-thinkpad-x1 = import ./lenovo/thinkpad/x1;
lenovo-thinkpad-x1-6th-gen = import ./lenovo/thinkpad/x1/6th-gen;
lenovo-thinkpad-x1-7th-gen = import ./lenovo/thinkpad/x1/7th-gen;
lenovo-thinkpad-x1-extreme = import ./lenovo/thinkpad/x1-extreme;
lenovo-thinkpad-x1-extreme-gen2 = import ./lenovo/thinkpad/x1-extreme/gen2;
lenovo-thinkpad-x13 = import ./lenovo/thinkpad/x13;
lenovo-thinkpad-x13-yoga = import ./lenovo/thinkpad/x13-yoga;
lenovo-thinkpad-z = import ./lenovo/thinkpad/z;
lenovo-thinkpad-z13 = import ./lenovo/thinkpad/z/z13;
microsoft-surface = import ./microsoft/surface;
microsoft-surface-pro-3 = import ./microsoft/surface-pro/3;
msi-gs60 = import ./msi/gs60;
msi-gl62 = import ./msi/gl62;
omen-en00015p = import ./omen/en00015p;
onenetbook-4 = import ./onenetbook/4;
pcengines-apu = import ./pcengines/apu;
raspberry-pi-2 = import ./raspberry-pi/2;
raspberry-pi-4 = import ./raspberry-pi/4;
samsung-np900x3c = import ./samsung/np900x3c;
system76 = import ./system76;
system76-darp6 = import ./system76/darp6;
pine64-pinebook-pro = import ./pine64/pinebook-pro;
purism-librem-13v3 = import ./purism/librem/13v3;
purism-librem-15v3 = import ./purism/librem/15v3;
raspberry-pi-2 = import ./raspberry-pi/2;
raspberry-pi-4 = import ./raspberry-pi/4;
kobol-helios4 = import ./kobol/helios4;
samsung-np900x3c = import ./samsung/np900x3c;
supermicro = import ./supermicro;
supermicro-a1sri-2758f = import ./supermicro/a1sri-2758f;
supermicro-m11sdv-8c-ln4f = import ./supermicro/m11sdv-8c-ln4f;
supermicro-x10sll-f = import ./supermicro/x10sll-f;
thoshiba-swanky = import ./toshiba/swanky;
supermicro-x12scz-tln4f = import ./supermicro/x12scz-tln4f;
system76 = import ./system76;
system76-darp6 = import ./system76/darp6;
toshiba-swanky = import ./toshiba/swanky;
tuxedo-infinitybook-v4 = import ./tuxedo/infinitybook/v4;
common-cpu-amd = import ./common/cpu/amd;
common-cpu-amd-pstate = import ./common/cpu/amd/pstate.nix;
common-cpu-intel = import ./common/cpu/intel;
common-cpu-intel-cpu-only = import ./common/cpu/intel/cpu-only.nix;
common-cpu-intel-kaby-lake = import ./common/cpu/intel/kaby-lake;
common-cpu-intel-sandy-bridge = import ./common/cpu/intel/sandy-bridge;
common-gpu-nvidia = import ./common/gpu/nvidia.nix;
common-gpu-nvidia-disable = import ./common/gpu/nvidia-disable.nix;
common-gpu-amd = import ./common/gpu/amd;
common-gpu-amd-sea-islands = import ./common/gpu/amd/sea-islands;
common-gpu-amd-southern-islands = import ./common/gpu/amd/southern-islands;
common-gpu-intel = import ./common/gpu/intel.nix;
common-gpu-nvidia = import ./common/gpu/nvidia.nix;
common-gpu-nvidia-disable = import ./common/gpu/nvidia-disable.nix;
common-pc = import ./common/pc;
common-pc-hdd = import ./common/pc/hdd;
common-pc-laptop = import ./common/pc/laptop;
common-pc-laptop-acpi_call = import ./common/pc/laptop/acpi_call.nix;
common-pc-laptop-hdd = import ./common/pc/laptop/hdd;
common-pc-laptop-ssd = import ./common/pc/ssd;
common-pc-laptop-acpi_call = import ./common/pc/laptop/acpi_call.nix;
common-pc-laptop = import ./common/pc/laptop;
common-pc-ssd = import ./common/pc/ssd;
common-pc = import ./common/pc;
};
};
}
+17
View File
@@ -0,0 +1,17 @@
# [Framework Laptop](https://frame.work/)
## Updating Firmware
First put enable `fwupd`
```nix
services.fwupd.enable = true;
```
Then run
```sh
$ sudo fwupdmgr update
```
[Latest Update](https://fwupd.org/lvfs/devices/work.frame.Laptop.TGL.BIOS.firmware)
+54
View File
@@ -0,0 +1,54 @@
{ lib, pkgs, ... }: {
imports = [
../../common/cpu/intel
../../common/pc/laptop
../../common/pc/laptop/ssd
];
boot.kernelParams = [
# For Power consumption
# https://kvark.github.io/linux/framework/2021/10/17/framework-nixos.html
"mem_sleep_default=deep"
# For Power consumption
# https://community.frame.work/t/linux-battery-life-tuning/6665/156
"nvme.noacpi=1"
# Workaround iGPU hangs
# https://discourse.nixos.org/t/intel-12th-gen-igpu-freezes/21768/4
"i915.enable_psr=1"
];
# This enables the brightness keys to work
# https://community.frame.work/t/12th-gen-not-sending-xf86monbrightnessup-down/20605/11
boot.blacklistedKernelModules = [ "hid-sensor-hub" ];
# Alder Lake CPUs benefit from kernel 5.18 for ThreadDirector
# https://www.tomshardware.com/news/intel-thread-director-coming-to-linux-5-18
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.18") (lib.mkDefault pkgs.linuxPackages_latest);
# Fix TRRS headphones missing a mic
# https://community.frame.work/t/headset-microphone-on-linux/12387/3
boot.extraModprobeConfig = ''
options snd-hda-intel model=dell-headset-multi
'';
# For fingerprint support
services.fprintd.enable = lib.mkDefault true;
# Fix headphone noise when on powersave
# https://community.frame.work/t/headphone-jack-intermittent-noise/5246/55
services.udev.extraRules = ''
SUBSYSTEM=="pci", ATTR{vendor}=="0x8086", ATTR{device}=="0xa0e0", ATTR{power/control}="on"
'';
# Mis-detected by nixos-generate-config
# https://github.com/NixOS/nixpkgs/issues/171093
# https://wiki.archlinux.org/title/Framework_Laptop#Changing_the_brightness_of_the_monitor_does_not_work
hardware.acpilight.enable = lib.mkDefault true;
# HiDPI
# Leaving here for documentation
# hardware.video.hidpi.enable = lib.mkDefault true;
# Fix font sizes in X
# services.xserver.dpi = 200;
}
+17
View File
@@ -0,0 +1,17 @@
# [Framework Laptop](https://frame.work/)
## Updating Firmware
First put enable `fwupd`
```nix
services.fwupd.enable = true;
```
Then run
```sh
$ sudo fwupdmgr update
```
[Latest Update](https://fwupd.org/lvfs/devices/work.frame.Laptop.TGL.BIOS.firmware)
+47
View File
@@ -0,0 +1,47 @@
{ lib, pkgs, ... }: {
imports = [
../common/cpu/intel
../common/pc/laptop
../common/pc/laptop/ssd
];
boot.kernelParams = [
# For Power consumption
# https://kvark.github.io/linux/framework/2021/10/17/framework-nixos.html
"mem_sleep_default=deep"
# For Power consumption
# https://community.frame.work/t/linux-battery-life-tuning/6665/156
"nvme.noacpi=1"
];
# Requires at least 5.16 for working wi-fi and bluetooth.
# https://community.frame.work/t/using-the-ax210-with-linux-on-the-framework-laptop/1844/89
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.16") (lib.mkDefault pkgs.linuxPackages_latest);
# Fix TRRS headphones missing a mic
# https://community.frame.work/t/headset-microphone-on-linux/12387/3
boot.extraModprobeConfig = ''
options snd-hda-intel model=dell-headset-multi
'';
# For fingerprint support
services.fprintd.enable = lib.mkDefault true;
# Fix headphone noise when on powersave
# https://community.frame.work/t/headphone-jack-intermittent-noise/5246/55
services.udev.extraRules = ''
SUBSYSTEM=="pci", ATTR{vendor}=="0x8086", ATTR{device}=="0xa0e0", ATTR{power/control}="on"
'';
# Mis-detected by nixos-generate-config
# https://github.com/NixOS/nixpkgs/issues/171093
# https://wiki.archlinux.org/title/Framework_Laptop#Changing_the_brightness_of_the_monitor_does_not_work
hardware.acpilight.enable = lib.mkDefault true;
# HiDPI
# Leaving here for documentation
# hardware.video.hidpi.enable = lib.mkDefault true;
# Fix font sizes in X
# services.xserver.dpi = 200;
}
+91
View File
@@ -0,0 +1,91 @@
# Description
This document on how I configure [NixOS](https://nixos.org/) on [NanoPC-T4](https://wiki.friendlyarm.com/wiki/index.php/NanoPC-T4).
# Installation
To install NixOS on you can follow the [official instructions](https://nixos.wiki/wiki/NixOS_on_ARM/NanoPC-T4) and use the [pre-built images](https://github.com/tmountain/arch-nanopct4/tree/main/images/) from @tmountain. You can also build the U-Boot image yourself from `nixpkgs` based on changes added in [#111034](https://github.com/NixOS/nixpkgs/pull/111034).
## NixOS on NVMe with ZFS
It is possible to migrate the OS from the eMMC storage to the NVMe.
In my case I migrated `/`, `/nix`, and `/home`, leaving `/boot` on the eMMC.
Create the ZFS pool and three filesystems on the SSD:
```sh
zpool create -O xattr=sa -O acltype=posixacl -O mountpoint=none rpool /dev/nvme0n1
for VOL in nix root home; do
zfs create -o mountpoint=legacy rpool/$VOL
mkdir /mnt/$VOL
mount.zfs rpool/$VOL /mnt/$VOL
done
```
Then sync the original filesystem on eMMC to the new volumes:
```sh
rsync -rax /. /mnt/root
rsync -rax /nix/. /mnt/nix
rsync -rax /home/. /mnt/home
rsync -rax /boot/. /
```
Afterwards create a configuration that looks like this:
```nix
{
# TODO: Make sure to update the eMMC device UUID!
fileSystems."/boot" = { device = "/dev/disk/by-uuid/1234-5678"; fsType = "ext4"; };
fileSystems."/" = { device = "rpool/root"; fsType = "zfs"; };
fileSystems."/nix" = { device = "rpool/nix"; fsType = "zfs"; };
fileSystems."/home" = { device = "rpool/home"; fsType = "zfs"; };
}
```
And rebuild he system:
```sh
sudo nixos-rebuild boot
```
:warning: __IMPORTANT:__ After that it's necessary to run all the four `rsync` commands again to sync filesystems.
Once everything is synced you can finally reboot.
You should also clean up `/boot` afterwards.
# UART Debug Console
Device provides a Debug UART 4 Pin 2.54mm header connection, 3V level, 1500000bps.
To connect to you will need a USB to UART converter/receiver that supports the speed of 1500000bps.
The serial port parameters are [8-N-1](https://en.wikipedia.org/wiki/8-N-1).
A reader using `CP2102` chip did not work but `FT232RL` works fine:
![UART converter photo](https://github.com/NixOS/nixos-hardware/releases/download/not-a-release/FT232RL.jpg)
You can use `minicom` or `picocom` to connect:
```
sudo minicom -b 1500000 -D /dev/ttyUSB0
sudo picocom -b 1500000 /dev/ttyUSB0
```
But you'll need to disable flow control with `Ctrl-A x`.
Here is a good overview of UART USB-to-Serial adapters:
* https://www.sjoerdlangkemper.nl/2019/03/20/usb-to-serial-uart/
* https://www.ftdichip.com/Support/Documents/DataSheets/ICs/DS_FT232R.pdf
Pin layout where #4 is next to USB-C port:
| Pin num.| #1 | #2 | #3 | #4 |
|---------|-----|----|----|----|
| Purpose | GND | V5 | TX | RX |
Remember that the `TX` and `RX` ports should be swapped between UART adapter and the board.
The V5 pin does not need to be connected if you're powering the board from another source.
See the full board diagram for more details:
![Board diagram](https://wiki.friendlyarm.com/wiki/images/b/bb/NanoPC-T4_1802_Drawing.png)
You can access the recovery console by holding the __Recovery__ button and then pressing the __Power__ button.
For this to work the device will have to be off, which requires holding the __Power__ button long enough.
+26
View File
@@ -0,0 +1,26 @@
{ lib, pkgs, ... }:
{
boot.loader = {
grub.enable = lib.mkDefault false;
# Enables the generation of /boot/extlinux/extlinux.conf.
generic-extlinux-compatible.enable = lib.mkDefault true;
};
# UART debug console bitrates.
boot.kernelParams = [ "console=ttyS2,1500000" ];
# Enable additional firmware (such as Wi-Fi drivers).
hardware.enableRedistributableFirmware = lib.mkDefault true;
# Fix for not detecting the M.2 NVMe SSD. Will cause recompilation.
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.10") (lib.mkDefault pkgs.linuxPackages_latest);
boot.kernelPatches = lib.mkDefault [{
name = "pcie-rockchip-config.patch";
patch = null;
extraConfig = ''
PHY_ROCKCHIP_PCIE y
PCIE_ROCKCHIP_HOST y
'';
}];
}
+11
View File
@@ -0,0 +1,11 @@
{ ... }:
{
imports = [
../../common/pc/laptop
../../common/pc/laptop/ssd
];
# Needed to have the keyboard working during the initrd sequence
boot.initrd.availableKernelModules = [ "battery" ];
}
+44
View File
@@ -0,0 +1,44 @@
{ lib, pkgs, ... }:
let inherit (lib) mkDefault mkIf;
in
{
imports = [
../../common/pc/laptop
../../common/pc/laptop/ssd
];
# Necessary kernel modules
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "thunderbolt" ];
# GPU is an Intel Iris Xe, on a “TigerLake” mobile CPU
boot.initrd.kernelModules = [ "i915" ]; # Early loading so the passphrase prompt appears on external displays
services.xserver.videoDrivers = [ "intel" ];
hardware.opengl.extraPackages = with pkgs; [ intel-media-driver vaapiIntel ];
boot.kernelParams = [
# S3 suspend is broken as of Sept. 2022 (screen does not come back properly), use S2
"mem_sleep_default=s2idle"
# The GPD Pocket3 uses a tablet OLED display, that is mounted rotated 90° counter-clockwise
"fbcon=rotate:1" "video=DSI-1:panel_orientation=right_side_up"
];
fonts.fontconfig = {
subpixel.rgba = "vbgr"; # Pixel order for rotated screen
# The OLED display has √(1920² + 1200²) px / 8in ≃ 283 dpi
# Per the documentation, antialiasing, hinting, etc. have no visible effect at such high pixel densities anyhow.
# Set manually, as the hiDPI module had incorrect settings prior to NixOS 22.11; see nixpkgs#194594.
hinting.enable = mkDefault false;
antialias = mkIf (lib.versionOlder (lib.versions.majorMinor lib.version) "22.11") false;
};
# More HiDPI settings
hardware.video.hidpi.enable = true;
services.xserver.dpi = 280;
# Necessary for audio support on the 1195G7 model
boot.extraModprobeConfig = ''
options snd-intel-dspcfg dsp_driver=1
'';
}
+21
View File
@@ -0,0 +1,21 @@
{ config, lib, pkgs, ... }:
with lib;
let
xcfg = config.services.xserver;
in
{
imports = [
../../../common/cpu/intel
../../../common/cpu/intel/sandy-bridge
../../../common/pc
../../../common/pc/laptop
../../../common/pc/laptop/hdd
../../../common/pc/hdd
./network.nix
];
config = {
services.thermald.enable = mkDefault true;
};
}
+12
View File
@@ -0,0 +1,12 @@
{ config, pkgs, lib, ... }:
with lib;
{
config = {
# Wifi can't connect if rand mac address is used
networking.networkmanager.extraConfig = concatStringsSep "\n" [
"[device]"
"match-device=driver:iwlwifi"
"wifi.scan-rand-mac-address=no"
];
};
}
+39
View File
@@ -0,0 +1,39 @@
# NUC
## Tested Hardware
``` shellsession
$ lspci -nnn
00:00.0 Host bridge [0600]: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers [8086:3ed0] (rev 08)
00:02.0 VGA compatible controller [0300]: Intel Corporation CoffeeLake-U GT3e [Iris Plus Graphics 655] [8086:3ea5] (rev 01)
00:08.0 System peripheral [0880]: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model [8086:1911]
00:12.0 Signal processing controller [1180]: Intel Corporation Cannon Point-LP Thermal Controller [8086:9df9] (rev 30)
00:14.0 USB controller [0c03]: Intel Corporation Cannon Point-LP USB 3.1 xHCI Controller [8086:9ded] (rev 30)
00:14.2 RAM memory [0500]: Intel Corporation Cannon Point-LP Shared SRAM [8086:9def] (rev 30)
00:14.3 Network controller [0280]: Intel Corporation Cannon Point-LP CNVi [Wireless-AC] [8086:9df0] (rev 30)
00:16.0 Communication controller [0780]: Intel Corporation Cannon Point-LP MEI Controller #1 [8086:9de0] (rev 30)
00:17.0 SATA controller [0106]: Intel Corporation Cannon Point-LP SATA Controller [AHCI Mode] [8086:9dd3] (rev 30)
00:1c.0 PCI bridge [0604]: Intel Corporation Cannon Point-LP PCI Express Root Port #1 [8086:9db8] (rev f0)
00:1c.4 PCI bridge [0604]: Intel Corporation Cannon Point-LP PCI Express Root Port #5 [8086:9dbc] (rev f0)
00:1d.0 PCI bridge [0604]: Intel Corporation Cannon Point-LP PCI Express Root Port #9 [8086:9db0] (rev f0)
00:1d.6 PCI bridge [0604]: Intel Corporation Cannon Point-LP PCI Express Root Port #15 [8086:9db6] (rev f0)
00:1f.0 ISA bridge [0601]: Intel Corporation Cannon Point-LP LPC Controller [8086:9d84] (rev 30)
00:1f.3 Audio device [0403]: Intel Corporation Cannon Point-LP High Definition Audio Controller [8086:9dc8] (rev 30)
00:1f.4 SMBus [0c05]: Intel Corporation Cannon Point-LP SMBus Controller [8086:9da3] (rev 30)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Point-LP SPI Controller [8086:9da4] (rev 30)
00:1f.6 Ethernet controller [0200]: Intel Corporation Ethernet Connection (6) I219-V [8086:15be] (rev 30)
3b:00.0 Non-Volatile memory controller [0108]: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983 [144d:a808]
3c:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader [10ec:522a] (rev 01)
```
## Before Installation
These settings are needed both for booting the final install, and
installer itself. Therefore, they must be done first.
- Disable Secure Boot (but keep UEFI Boot).
# References
- [Intel Product page](https://ark.intel.com/content/www/us/en/ark/products/126140/intel-nuc-kit-nuc8i7beh.html)
- [Arch Wiki on Intel NUC](https://wiki.archlinux.org/title/Intel_NUC)
+9
View File
@@ -0,0 +1,9 @@
{ lib, pkgs, ... }:
{
imports = [
../../../common/cpu/intel
];
services.thermald.enable = lib.mkDefault true;
}
-6
View File
@@ -1,6 +0,0 @@
USB Armory network interface support
- rename the Armory USB network interface
- set Armory inteface ip to 10.0.0.2/24
- enable NAT and forward Armory interface
- add the name 'armory' to /etc/hosts
-46
View File
@@ -1,46 +0,0 @@
{ config, lib, pkgs, ... }:
{
boot = {
extraModprobeConfig = lib.mkDefault ''
options g_ether use_eem=0 dev_addr=1a:55:89:a2:69:41 host_addr=1a:55:89:a2:69:42
'';
kernelModules = [ "ledtrig_heartbeat" "ci_hdrc_imx" "g_ether" ];
kernelPackages = lib.mkDefault pkgs.linuxPackages_usbarmory;
kernelParams = [ "console=ttymxc0,115200" ];
loader.generic-extlinux-compatible.enable = lib.mkDefault true;
};
networking = {
defaultGateway = "172.16.0.1";
firewall.enable = lib.mkDefault false;
hostName = "usbarmory";
interfaces.usb0.ip4 = [
{ address = "172.16.0.2"; prefixLength = 24; }
];
nameservers = [ "8.8.8.8" ];
};
nix = {
binaryCaches = [ "http://nixos-arm.dezgeg.me/channel" ];
binaryCachePublicKeys = [ "nixos-arm.dezgeg.me-1:xBaUKS3n17BZPKeyxL4JfbTqECsT+ysbDJz29kLFRW0=%" ];
};
nixpkgs.overlays = [(final: previous: {
linuxPackages_usbarmory = final.recurseIntoAttrs
(final.linuxPackagesFor (import ./kernel.nix {
inherit (final) stdenv buildLinux fetchurl;
}));
})];
sound.enable = lib.mkDefault false;
services = {
openssh.enable = lib.mkDefault true;
openssh.permitRootLogin = lib.mkDefault "without-password";
};
}
-19
View File
@@ -1,19 +0,0 @@
{ dev ? "armory0" }:
{
services.udev.extraRules = ''
SUBSYSTEM=="net", ACTION=="add", ATTRS{idVendor}=="0525", ATTRS{idProduct}=="a4a2", NAME="${staticDevName}"
'';
networking = {
interfaces."${staticDevName}".ip4 = [{
address = "10.0.0.2";
prefixLength = 24;
}];
nat = {
enable = true;
internalInterfaces = [ dev ];
};
extraHosts = "10.0.0.1 armory";
};
}
-995
View File
@@ -1,995 +0,0 @@
CONFIG_ARM=y
CONFIG_ARM_HAS_SG_CHAIN=y
CONFIG_MIGHT_HAVE_PCI=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_HAVE_PROC_CPU=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_HAVE_LATENCYTOP_SUPPORT=y
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_TRACE_IRQFLAGS_SUPPORT=y
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_FIX_EARLYCON_MEM=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_NEED_DMA_MAP_STATE=y
CONFIG_ARCH_SUPPORTS_UPROBES=y
CONFIG_VECTORS_BASE=0xffff0000
CONFIG_ARM_PATCH_PHYS_VIRT=y
CONFIG_GENERIC_BUG=y
CONFIG_PGTABLE_LEVELS=2
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
CONFIG_IRQ_WORK=y
CONFIG_BUILDTIME_EXTABLE_SORT=y
CONFIG_DMIID=y
CONFIG_BROKEN_ON_SMP=y
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_CROSS_COMPILE=""
CONFIG_LOCALVERSION=""
CONFIG_LOCALVERSION_AUTO=y
CONFIG_HAVE_KERNEL_GZIP=y
CONFIG_HAVE_KERNEL_LZMA=y
CONFIG_HAVE_KERNEL_XZ=y
CONFIG_HAVE_KERNEL_LZO=y
CONFIG_HAVE_KERNEL_LZ4=y
CONFIG_KERNEL_GZIP=y
CONFIG_DEFAULT_HOSTNAME="usbarmory"
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
CONFIG_SYSVIPC_SYSCTL=y
CONFIG_CROSS_MEMORY_ATTACH=y
CONFIG_FHANDLE=y
CONFIG_USELIB=y
CONFIG_AUDIT=y
CONFIG_HAVE_ARCH_AUDITSYSCALL=y
CONFIG_GENERIC_IRQ_PROBE=y
CONFIG_GENERIC_IRQ_SHOW=y
CONFIG_GENERIC_IRQ_SHOW_LEVEL=y
CONFIG_HARDIRQS_SW_RESEND=y
CONFIG_GENERIC_IRQ_CHIP=y
CONFIG_IRQ_DOMAIN=y
CONFIG_HANDLE_DOMAIN_IRQ=y
CONFIG_IRQ_FORCED_THREADING=y
CONFIG_SPARSE_IRQ=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_TICK_ONESHOT=y
CONFIG_NO_HZ_COMMON=y
CONFIG_NO_HZ_IDLE=y
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y
CONFIG_TICK_CPU_ACCOUNTING=y
CONFIG_PREEMPT_RCU=y
CONFIG_SRCU=y
CONFIG_RCU_STALL_COMMON=y
CONFIG_BUILD_BIN2C=y
CONFIG_IKCONFIG=m
CONFIG_IKCONFIG_PROC=y
CONFIG_LOG_BUF_SHIFT=14
CONFIG_GENERIC_SCHED_CLOCK=y
CONFIG_CGROUPS=y
CONFIG_NAMESPACES=y
CONFIG_UTS_NS=y
CONFIG_IPC_NS=y
CONFIG_PID_NS=y
CONFIG_NET_NS=y
CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE=""
CONFIG_RD_GZIP=y
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
CONFIG_SYSCTL=y
CONFIG_ANON_INODES=y
CONFIG_HAVE_UID16=y
CONFIG_BPF=y
CONFIG_EXPERT=y
CONFIG_UID16=y
CONFIG_MULTIUSER=y
CONFIG_SYSFS_SYSCALL=y
CONFIG_SYSCTL_SYSCALL=y
CONFIG_KALLSYMS=y
CONFIG_PRINTK=y
CONFIG_BUG=y
CONFIG_ELF_CORE=y
CONFIG_BASE_FULL=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_SIGNALFD=y
CONFIG_TIMERFD=y
CONFIG_EVENTFD=y
CONFIG_SHMEM=y
CONFIG_AIO=y
CONFIG_ADVISE_SYSCALLS=y
CONFIG_MEMBARRIER=y
CONFIG_EMBEDDED=y
CONFIG_HAVE_PERF_EVENTS=y
CONFIG_PERF_USE_VMALLOC=y
CONFIG_VM_EVENT_COUNTERS=y
CONFIG_COMPAT_BRK=y
CONFIG_SLUB=y
CONFIG_HAVE_OPROFILE=y
CONFIG_JUMP_LABEL=y
CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y
CONFIG_ARCH_USE_BUILTIN_BSWAP=y
CONFIG_HAVE_KPROBES=y
CONFIG_HAVE_KRETPROBES=y
CONFIG_HAVE_OPTPROBES=y
CONFIG_HAVE_ARCH_TRACEHOOK=y
CONFIG_HAVE_DMA_ATTRS=y
CONFIG_HAVE_DMA_CONTIGUOUS=y
CONFIG_GENERIC_SMP_IDLE_THREAD=y
CONFIG_GENERIC_IDLE_POLL_SETUP=y
CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y
CONFIG_HAVE_CLK=y
CONFIG_HAVE_DMA_API_DEBUG=y
CONFIG_HAVE_PERF_REGS=y
CONFIG_HAVE_PERF_USER_STACK_DUMP=y
CONFIG_HAVE_ARCH_JUMP_LABEL=y
CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
CONFIG_HAVE_ARCH_SECCOMP_FILTER=y
CONFIG_SECCOMP_FILTER=y
CONFIG_HAVE_CC_STACKPROTECTOR=y
CONFIG_CC_STACKPROTECTOR_NONE=y
CONFIG_HAVE_CONTEXT_TRACKING=y
CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y
CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y
CONFIG_HAVE_MOD_ARCH_SPECIFIC=y
CONFIG_MODULES_USE_ELF_REL=y
CONFIG_ARCH_HAS_ELF_RANDOMIZE=y
CONFIG_CLONE_BACKWARDS=y
CONFIG_OLD_SIGSUSPEND3=y
CONFIG_OLD_SIGACTION=y
CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
CONFIG_HAVE_GENERIC_DMA_COHERENT=y
CONFIG_RT_MUTEXES=y
CONFIG_BASE_SMALL=0
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
CONFIG_MODVERSIONS=y
CONFIG_BLOCK=y
CONFIG_LBDAF=y
CONFIG_BLK_CMDLINE_PARSER=y
CONFIG_PARTITION_ADVANCED=y
CONFIG_MSDOS_PARTITION=y
CONFIG_EFI_PARTITION=y
CONFIG_EFI_STUB=y
CONFIG_CMDLINE_PARTITION=y
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_DEADLINE=m
CONFIG_IOSCHED_CFQ=m
CONFIG_DEFAULT_NOOP=y
CONFIG_DEFAULT_IOSCHED="noop"
CONFIG_ASN1=m
CONFIG_UNINLINE_SPIN_UNLOCK=y
CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y
CONFIG_FREEZER=y
CONFIG_MMU=y
CONFIG_ARCH_MULTIPLATFORM=y
CONFIG_ARCH_MULTI_V7=y
CONFIG_ARCH_MULTI_V6_V7=y
CONFIG_ARCH_MXC=y
CONFIG_MXC_TZIC=y
CONFIG_HAVE_IMX_SRC=y
CONFIG_SOC_IMX5=y
CONFIG_SOC_IMX53=y
CONFIG_CPU_V7=y
CONFIG_CPU_32v6K=y
CONFIG_CPU_32v7=y
CONFIG_CPU_ABRT_EV7=y
CONFIG_CPU_PABRT_V7=y
CONFIG_CPU_CACHE_V7=y
CONFIG_CPU_CACHE_VIPT=y
CONFIG_CPU_COPY_V6=y
CONFIG_CPU_TLB_V7=y
CONFIG_CPU_HAS_ASID=y
CONFIG_CPU_CP15=y
CONFIG_CPU_CP15_MMU=y
CONFIG_ARM_THUMB=y
CONFIG_ARM_VIRT_EXT=y
CONFIG_KUSER_HELPERS=y
CONFIG_OUTER_CACHE=y
CONFIG_OUTER_CACHE_SYNC=y
CONFIG_MIGHT_HAVE_CACHE_L2X0=y
CONFIG_CACHE_L2X0=y
CONFIG_ARM_L1_CACHE_SHIFT_6=y
CONFIG_ARM_L1_CACHE_SHIFT=6
CONFIG_ARM_DMA_MEM_BUFFERABLE=y
CONFIG_ARM_HEAVY_MB=y
CONFIG_MULTI_IRQ_HANDLER=y
CONFIG_HAVE_SMP=y
CONFIG_VMSPLIT_2G=y
CONFIG_PAGE_OFFSET=0x80000000
CONFIG_ARCH_NR_GPIO=0
CONFIG_PREEMPT=y
CONFIG_PREEMPT_COUNT=y
CONFIG_HZ_FIXED=0
CONFIG_HZ_100=y
CONFIG_HZ=100
CONFIG_SCHED_HRTICK=y
CONFIG_AEABI=y
CONFIG_HAVE_ARCH_PFN_VALID=y
CONFIG_CPU_SW_DOMAIN_PAN=y
CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
CONFIG_FLATMEM=y
CONFIG_FLAT_NODE_MEM_MAP=y
CONFIG_HAVE_MEMBLOCK=y
CONFIG_NO_BOOTMEM=y
CONFIG_SPLIT_PTLOCK_CPUS=4
CONFIG_COMPACTION=y
CONFIG_MIGRATION=y
CONFIG_ZONE_DMA_FLAG=0
CONFIG_KSM=y
CONFIG_DEFAULT_MMAP_MIN_ADDR=4096
CONFIG_NEED_PER_CPU_KM=y
CONFIG_CLEANCACHE=y
CONFIG_ZPOOL=m
CONFIG_ZBUD=m
CONFIG_ZSMALLOC=m
CONFIG_FORCE_MAX_ZONEORDER=11
CONFIG_ALIGNMENT_TRAP=y
CONFIG_SECCOMP=y
CONFIG_SWIOTLB=y
CONFIG_IOMMU_HELPER=y
CONFIG_USE_OF=y
CONFIG_ATAGS=y
CONFIG_ZBOOT_ROM_TEXT=0x0
CONFIG_ZBOOT_ROM_BSS=0x0
CONFIG_CMDLINE="noinitrd console=ttymxc0,115200 root=/dev/mmcblk0p1 rw rootfstype=ext4 ip=off"
CONFIG_CMDLINE_FROM_BOOTLOADER=y
CONFIG_AUTO_ZRELADDR=y
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_GOV_COMMON=y
CONFIG_CPU_FREQ_STAT=m
CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=m
CONFIG_CPU_FREQ_GOV_USERSPACE=m
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m
CONFIG_CPUFREQ_DT=y
CONFIG_CPU_IDLE=y
CONFIG_CPU_IDLE_GOV_LADDER=y
CONFIG_CPU_IDLE_GOV_MENU=y
CONFIG_VFP=y
CONFIG_VFPv3=y
CONFIG_NEON=y
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_SCRIPT=y
CONFIG_COREDUMP=y
CONFIG_HIBERNATE_CALLBACKS=y
CONFIG_HIBERNATION=y
CONFIG_PM_STD_PARTITION=""
CONFIG_PM_SLEEP=y
CONFIG_PM=y
CONFIG_PM_OPP=y
CONFIG_PM_CLK=y
CONFIG_CPU_PM=y
CONFIG_ARCH_SUSPEND_POSSIBLE=y
CONFIG_ARM_CPU_SUSPEND=y
CONFIG_ARCH_HIBERNATION_POSSIBLE=y
CONFIG_NET=y
CONFIG_NET_INGRESS=y
CONFIG_PACKET=y
CONFIG_UNIX=y
CONFIG_XFRM=y
CONFIG_XFRM_ALGO=m
CONFIG_XFRM_USER=m
CONFIG_XFRM_SUB_POLICY=y
CONFIG_XFRM_MIGRATE=y
CONFIG_XFRM_STATISTICS=y
CONFIG_XFRM_IPCOMP=m
CONFIG_NET_KEY=m
CONFIG_NET_KEY_MIGRATE=y
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
CONFIG_IP_ADVANCED_ROUTER=y
CONFIG_IP_MULTIPLE_TABLES=y
CONFIG_NET_IPIP=m
CONFIG_NET_IPGRE_DEMUX=m
CONFIG_NET_IP_TUNNEL=m
CONFIG_NET_IPGRE=m
CONFIG_NET_IPGRE_BROADCAST=y
CONFIG_SYN_COOKIES=y
CONFIG_NET_IPVTI=m
CONFIG_NET_UDP_TUNNEL=m
CONFIG_NET_FOU=m
CONFIG_NET_FOU_IP_TUNNELS=y
CONFIG_INET_AH=m
CONFIG_INET_ESP=m
CONFIG_INET_IPCOMP=m
CONFIG_INET_XFRM_TUNNEL=m
CONFIG_INET_TUNNEL=m
CONFIG_INET_XFRM_MODE_TRANSPORT=m
CONFIG_INET_XFRM_MODE_TUNNEL=m
CONFIG_INET_XFRM_MODE_BEET=m
CONFIG_INET_DIAG=y
CONFIG_INET_TCP_DIAG=y
CONFIG_INET_UDP_DIAG=m
CONFIG_TCP_CONG_ADVANCED=y
CONFIG_TCP_CONG_BIC=m
CONFIG_TCP_CONG_CUBIC=y
CONFIG_TCP_CONG_WESTWOOD=m
CONFIG_TCP_CONG_HTCP=m
CONFIG_TCP_CONG_HSTCP=m
CONFIG_TCP_CONG_HYBLA=m
CONFIG_TCP_CONG_VEGAS=m
CONFIG_TCP_CONG_SCALABLE=m
CONFIG_TCP_CONG_LP=m
CONFIG_TCP_CONG_VENO=m
CONFIG_TCP_CONG_YEAH=m
CONFIG_TCP_CONG_ILLINOIS=m
CONFIG_DEFAULT_CUBIC=y
CONFIG_DEFAULT_TCP_CONG="cubic"
CONFIG_TCP_MD5SIG=y
CONFIG_IPV6=m
CONFIG_IPV6_ROUTER_PREF=y
CONFIG_IPV6_ROUTE_INFO=y
CONFIG_IPV6_OPTIMISTIC_DAD=y
CONFIG_INET6_AH=m
CONFIG_INET6_ESP=m
CONFIG_INET6_IPCOMP=m
CONFIG_IPV6_MIP6=m
CONFIG_INET6_XFRM_TUNNEL=m
CONFIG_INET6_TUNNEL=m
CONFIG_INET6_XFRM_MODE_TRANSPORT=m
CONFIG_INET6_XFRM_MODE_TUNNEL=m
CONFIG_INET6_XFRM_MODE_BEET=m
CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION=m
CONFIG_IPV6_VTI=m
CONFIG_IPV6_SIT=m
CONFIG_IPV6_SIT_6RD=y
CONFIG_IPV6_NDISC_NODETYPE=y
CONFIG_IPV6_TUNNEL=m
CONFIG_IPV6_GRE=m
CONFIG_IPV6_MULTIPLE_TABLES=y
CONFIG_IPV6_SUBTREES=y
CONFIG_IPV6_MROUTE=y
CONFIG_NETFILTER=y
CONFIG_NETFILTER_ADVANCED=y
CONFIG_BRIDGE_NETFILTER=m
CONFIG_NETFILTER_INGRESS=y
CONFIG_NETFILTER_NETLINK=m
CONFIG_NF_CONNTRACK=m
CONFIG_NF_LOG_COMMON=m
CONFIG_NF_CONNTRACK_MARK=y
CONFIG_NF_CONNTRACK_PROCFS=y
CONFIG_NF_CT_PROTO_GRE=m
CONFIG_NF_CONNTRACK_FTP=m
CONFIG_NF_CONNTRACK_H323=m
CONFIG_NF_CONNTRACK_IRC=m
CONFIG_NF_CONNTRACK_BROADCAST=m
CONFIG_NF_CONNTRACK_NETBIOS_NS=m
CONFIG_NF_CONNTRACK_SNMP=m
CONFIG_NF_CONNTRACK_PPTP=m
CONFIG_NF_CONNTRACK_SANE=m
CONFIG_NF_CONNTRACK_SIP=m
CONFIG_NF_CONNTRACK_TFTP=m
CONFIG_NF_CT_NETLINK=m
CONFIG_NF_CT_NETLINK_TIMEOUT=m
CONFIG_NF_NAT=m
CONFIG_NF_NAT_NEEDED=y
CONFIG_NF_NAT_FTP=m
CONFIG_NF_NAT_IRC=m
CONFIG_NF_NAT_SIP=m
CONFIG_NF_NAT_TFTP=m
CONFIG_NF_NAT_REDIRECT=m
CONFIG_NETFILTER_SYNPROXY=m
CONFIG_NETFILTER_XTABLES=m
CONFIG_NETFILTER_XT_TARGET_HL=m
CONFIG_NETFILTER_XT_TARGET_LED=m
CONFIG_NETFILTER_XT_NAT=m
CONFIG_NETFILTER_XT_TARGET_NETMAP=m
CONFIG_NETFILTER_XT_TARGET_REDIRECT=m
CONFIG_NETFILTER_XT_TARGET_TEE=m
CONFIG_NETFILTER_XT_TARGET_TPROXY=m
CONFIG_NETFILTER_XT_TARGET_TCPMSS=m
CONFIG_NETFILTER_XT_MATCH_BPF=m
CONFIG_NETFILTER_XT_MATCH_CGROUP=m
CONFIG_NETFILTER_XT_MATCH_ECN=m
CONFIG_NETFILTER_XT_MATCH_ESP=m
CONFIG_NETFILTER_XT_MATCH_HL=m
CONFIG_NETFILTER_XT_MATCH_IPRANGE=m
CONFIG_NETFILTER_XT_MATCH_LENGTH=m
CONFIG_NETFILTER_XT_MATCH_MAC=m
CONFIG_NETFILTER_XT_MATCH_MULTIPORT=m
CONFIG_NETFILTER_XT_MATCH_OWNER=m
CONFIG_NETFILTER_XT_MATCH_POLICY=m
CONFIG_NETFILTER_XT_MATCH_PKTTYPE=m
CONFIG_NETFILTER_XT_MATCH_STATE=m
CONFIG_NETFILTER_XT_MATCH_STATISTIC=m
CONFIG_NETFILTER_XT_MATCH_STRING=m
CONFIG_NETFILTER_XT_MATCH_TCPMSS=m
CONFIG_NETFILTER_XT_MATCH_TIME=m
CONFIG_NETFILTER_XT_MATCH_U32=m
CONFIG_NF_DEFRAG_IPV4=m
CONFIG_NF_CONNTRACK_IPV4=m
CONFIG_NF_CONNTRACK_PROC_COMPAT=y
CONFIG_NF_DUP_IPV4=m
CONFIG_NF_LOG_ARP=m
CONFIG_NF_LOG_IPV4=m
CONFIG_NF_REJECT_IPV4=m
CONFIG_NF_NAT_IPV4=m
CONFIG_NF_NAT_MASQUERADE_IPV4=m
CONFIG_NF_NAT_SNMP_BASIC=m
CONFIG_NF_NAT_PROTO_GRE=m
CONFIG_NF_NAT_PPTP=m
CONFIG_NF_NAT_H323=m
CONFIG_IP_NF_IPTABLES=m
CONFIG_IP_NF_MATCH_AH=m
CONFIG_IP_NF_MATCH_ECN=m
CONFIG_IP_NF_MATCH_RPFILTER=m
CONFIG_IP_NF_MATCH_TTL=m
CONFIG_IP_NF_FILTER=m
CONFIG_IP_NF_TARGET_REJECT=m
CONFIG_IP_NF_TARGET_SYNPROXY=m
CONFIG_IP_NF_NAT=m
CONFIG_IP_NF_TARGET_MASQUERADE=m
CONFIG_IP_NF_TARGET_NETMAP=m
CONFIG_IP_NF_TARGET_REDIRECT=m
CONFIG_IP_NF_MANGLE=m
CONFIG_IP_NF_TARGET_CLUSTERIP=m
CONFIG_IP_NF_TARGET_ECN=m
CONFIG_IP_NF_TARGET_TTL=m
CONFIG_IP_NF_RAW=m
CONFIG_IP_NF_ARPTABLES=m
CONFIG_IP_NF_ARPFILTER=m
CONFIG_IP_NF_ARP_MANGLE=m
CONFIG_NF_DEFRAG_IPV6=m
CONFIG_NF_CONNTRACK_IPV6=m
CONFIG_NF_DUP_IPV6=m
CONFIG_NF_REJECT_IPV6=m
CONFIG_NF_LOG_IPV6=m
CONFIG_NF_NAT_IPV6=m
CONFIG_NF_NAT_MASQUERADE_IPV6=m
CONFIG_IP6_NF_IPTABLES=m
CONFIG_IP6_NF_MATCH_AH=m
CONFIG_IP6_NF_MATCH_EUI64=m
CONFIG_IP6_NF_MATCH_FRAG=m
CONFIG_IP6_NF_MATCH_OPTS=m
CONFIG_IP6_NF_MATCH_HL=m
CONFIG_IP6_NF_MATCH_IPV6HEADER=m
CONFIG_IP6_NF_MATCH_MH=m
CONFIG_IP6_NF_MATCH_RT=m
CONFIG_IP6_NF_FILTER=m
CONFIG_IP6_NF_TARGET_REJECT=m
CONFIG_IP6_NF_TARGET_SYNPROXY=m
CONFIG_IP6_NF_MANGLE=m
CONFIG_IP6_NF_RAW=m
CONFIG_IP6_NF_NAT=m
CONFIG_IP6_NF_TARGET_MASQUERADE=m
CONFIG_IP6_NF_TARGET_NPT=m
CONFIG_L2TP=m
CONFIG_STP=m
CONFIG_BRIDGE=m
CONFIG_BRIDGE_IGMP_SNOOPING=y
CONFIG_HAVE_NET_DSA=y
CONFIG_VLAN_8021Q=m
CONFIG_LLC=m
CONFIG_NET_SCHED=y
CONFIG_NET_SCH_CBQ=m
CONFIG_NET_SCH_HTB=m
CONFIG_NET_SCH_HFSC=m
CONFIG_NET_SCH_RED=m
CONFIG_NET_SCH_NETEM=m
CONFIG_NET_CLS=y
CONFIG_NET_CLS_FW=m
CONFIG_NET_CLS_CGROUP=m
CONFIG_NET_CLS_BPF=m
CONFIG_NET_SCH_FIFO=y
CONFIG_CGROUP_NET_CLASSID=y
CONFIG_NET_RX_BUSY_POLL=y
CONFIG_BQL=y
CONFIG_BPF_JIT=y
CONFIG_FIB_RULES=y
CONFIG_WIRELESS=y
CONFIG_WEXT_CORE=y
CONFIG_WEXT_PROC=y
CONFIG_CFG80211=m
CONFIG_CFG80211_DEFAULT_PS=y
CONFIG_CFG80211_CRDA_SUPPORT=y
CONFIG_CFG80211_WEXT=y
CONFIG_MAC80211=m
CONFIG_MAC80211_HAS_RC=y
CONFIG_MAC80211_RC_MINSTREL=y
CONFIG_MAC80211_RC_MINSTREL_HT=y
CONFIG_MAC80211_RC_DEFAULT_MINSTREL=y
CONFIG_MAC80211_RC_DEFAULT="minstrel_ht"
CONFIG_MAC80211_STA_HASH_MAX_SIZE=0
CONFIG_HAVE_BPF_JIT=y
CONFIG_UEVENT_HELPER=y
CONFIG_UEVENT_HELPER_PATH=""
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
CONFIG_FW_LOADER=m
CONFIG_FIRMWARE_IN_KERNEL=y
CONFIG_EXTRA_FIRMWARE=""
CONFIG_SOC_BUS=y
CONFIG_REGMAP=y
CONFIG_REGMAP_I2C=m
CONFIG_REGMAP_MMIO=m
CONFIG_MTD=m
CONFIG_MTD_OF_PARTS=m
CONFIG_MTD_MAP_BANK_WIDTH_1=y
CONFIG_MTD_MAP_BANK_WIDTH_2=y
CONFIG_MTD_MAP_BANK_WIDTH_4=y
CONFIG_MTD_CFI_I1=y
CONFIG_MTD_CFI_I2=y
CONFIG_MTD_M25P80=m
CONFIG_MTD_BLOCK2MTD=m
CONFIG_MTD_SPI_NOR=m
CONFIG_MTD_SPI_NOR_USE_4K_SECTORS=y
CONFIG_DTC=y
CONFIG_OF=y
CONFIG_OF_FLATTREE=y
CONFIG_OF_EARLY_FLATTREE=y
CONFIG_OF_ADDRESS=y
CONFIG_OF_IRQ=y
CONFIG_OF_NET=y
CONFIG_OF_MTD=y
CONFIG_OF_RESERVED_MEM=y
CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
CONFIG_BLK_DEV=y
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_LOOP_MIN_COUNT=8
CONFIG_SRAM=y
CONFIG_EEPROM_93CX6=m
CONFIG_SCSI_MOD=m
CONFIG_SCSI=m
CONFIG_SCSI_DMA=y
CONFIG_SCSI_PROC_FS=y
CONFIG_BLK_DEV_SD=m
CONFIG_SCSI_LOWLEVEL=y
CONFIG_MD=y
CONFIG_BLK_DEV_DM_BUILTIN=y
CONFIG_BLK_DEV_DM=y
CONFIG_DM_BUFIO=y
CONFIG_DM_CRYPT=y
CONFIG_DM_VERITY=y
CONFIG_NETDEVICES=y
CONFIG_NET_CORE=y
CONFIG_DUMMY=m
CONFIG_VXLAN=m
CONFIG_TUN=m
CONFIG_VETH=m
CONFIG_PPP=m
CONFIG_PPP_BSDCOMP=m
CONFIG_PPP_DEFLATE=m
CONFIG_PPP_FILTER=y
CONFIG_PPP_MPPE=m
CONFIG_PPPOE=m
CONFIG_PPPOL2TP=m
CONFIG_SLHC=m
CONFIG_USB_NET_DRIVERS=m
CONFIG_WLAN=y
CONFIG_RTL8187=m
CONFIG_RT2X00=m
CONFIG_RT2500USB=m
CONFIG_RT73USB=m
CONFIG_RT2800USB=m
CONFIG_RT2800USB_RT33XX=y
CONFIG_RT2800USB_RT35XX=y
CONFIG_RT2800USB_RT3573=y
CONFIG_RT2800USB_RT53XX=y
CONFIG_RT2800USB_RT55XX=y
CONFIG_RT2800USB_UNKNOWN=y
CONFIG_RT2800_LIB=m
CONFIG_RT2X00_LIB_USB=m
CONFIG_RT2X00_LIB=m
CONFIG_RT2X00_LIB_FIRMWARE=y
CONFIG_RT2X00_LIB_CRYPTO=y
CONFIG_RT2X00_LIB_LEDS=y
CONFIG_RT2X00_DEBUG=y
CONFIG_RTL_CARDS=m
CONFIG_RTL8192CU=m
CONFIG_RTLWIFI=m
CONFIG_RTLWIFI_USB=m
CONFIG_RTLWIFI_DEBUG=y
CONFIG_RTL8192C_COMMON=m
CONFIG_RTL8XXXU=m
CONFIG_INPUT=y
CONFIG_INPUT_LEDS=m
CONFIG_INPUT_MOUSEDEV=m
CONFIG_INPUT_MOUSEDEV_PSAUX=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
CONFIG_INPUT_EVDEV=m
CONFIG_INPUT_KEYBOARD=y
CONFIG_KEYBOARD_ATKBD=y
CONFIG_INPUT_MOUSE=y
CONFIG_MOUSE_PS2=m
CONFIG_MOUSE_PS2_FOCALTECH=y
CONFIG_MOUSE_SERIAL=m
CONFIG_MOUSE_SYNAPTICS_USB=m
CONFIG_INPUT_TOUCHSCREEN=y
CONFIG_TOUCHSCREEN_PROPERTIES=y
CONFIG_TOUCHSCREEN_USB_COMPOSITE=m
CONFIG_TOUCHSCREEN_USB_E2I=y
CONFIG_SERIO=y
CONFIG_SERIO_SERPORT=y
CONFIG_SERIO_LIBPS2=y
CONFIG_TTY=y
CONFIG_VT=y
CONFIG_CONSOLE_TRANSLATIONS=y
CONFIG_VT_CONSOLE=y
CONFIG_VT_CONSOLE_SLEEP=y
CONFIG_HW_CONSOLE=y
CONFIG_VT_HW_CONSOLE_BINDING=y
CONFIG_UNIX98_PTYS=y
CONFIG_LEGACY_PTYS=y
CONFIG_LEGACY_PTY_COUNT=256
CONFIG_DEVMEM=y
CONFIG_DEVKMEM=y
CONFIG_SERIAL_EARLYCON=y
CONFIG_SERIAL_IMX=y
CONFIG_SERIAL_IMX_CONSOLE=y
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_HW_RANDOM=m
CONFIG_I2C=m
CONFIG_I2C_BOARDINFO=y
CONFIG_I2C_CHARDEV=m
CONFIG_I2C_HELPER_AUTO=y
CONFIG_I2C_IMX=m
CONFIG_SPI=y
CONFIG_SPI_DEBUG=y
CONFIG_SPI_MASTER=y
CONFIG_SPI_BITBANG=m
CONFIG_SPI_IMX=m
CONFIG_SPI_SPIDEV=m
CONFIG_PPS=y
CONFIG_PINCTRL=y
CONFIG_PINMUX=y
CONFIG_PINCONF=y
CONFIG_PINCTRL_IMX=y
CONFIG_PINCTRL_IMX53=y
CONFIG_ARCH_HAVE_CUSTOM_GPIO_H=y
CONFIG_ARCH_WANT_OPTIONAL_GPIOLIB=y
CONFIG_ARCH_REQUIRE_GPIOLIB=y
CONFIG_GPIOLIB=y
CONFIG_GPIO_DEVRES=y
CONFIG_OF_GPIO=y
CONFIG_GPIO_SYSFS=y
CONFIG_GPIO_GENERIC=y
CONFIG_GPIO_GENERIC_PLATFORM=y
CONFIG_GPIO_MXC=y
CONFIG_POWER_SUPPLY=y
CONFIG_POWER_AVS=y
CONFIG_WATCHDOG=y
CONFIG_WATCHDOG_CORE=y
CONFIG_SOFT_WATCHDOG=m
CONFIG_GPIO_WATCHDOG=m
CONFIG_IMX2_WDT=m
CONFIG_SSB_POSSIBLE=y
CONFIG_BCMA_POSSIBLE=y
CONFIG_REGULATOR=y
CONFIG_REGULATOR_LTC3589=m
CONFIG_DUMMY_CONSOLE=y
CONFIG_HID=y
CONFIG_HID_GENERIC=m
CONFIG_USB_HID=m
CONFIG_USB_HIDDEV=y
CONFIG_USB_KBD=m
CONFIG_USB_MOUSE=m
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_SUPPORT=y
CONFIG_USB_COMMON=m
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB=m
CONFIG_USB_DEFAULT_PERSIST=y
CONFIG_USB_OTG=y
CONFIG_USB_EHCI_HCD=m
CONFIG_USB_EHCI_ROOT_HUB_TT=y
CONFIG_USB_EHCI_TT_NEWSCHED=y
CONFIG_USB_STORAGE=m
CONFIG_USB_CHIPIDEA=m
CONFIG_USB_CHIPIDEA_OF=m
CONFIG_USB_CHIPIDEA_UDC=y
CONFIG_USB_CHIPIDEA_HOST=y
CONFIG_USB_CHIPIDEA_DEBUG=y
CONFIG_USB_PHY=y
CONFIG_NOP_USB_XCEIV=y
CONFIG_USB_GADGET=m
CONFIG_USB_GADGET_DEBUG_FS=y
CONFIG_USB_GADGET_VBUS_DRAW=500
CONFIG_USB_GADGET_STORAGE_NUM_BUFFERS=2
CONFIG_USB_LIBCOMPOSITE=m
CONFIG_USB_F_ACM=m
CONFIG_USB_F_SS_LB=m
CONFIG_USB_U_SERIAL=m
CONFIG_USB_U_ETHER=m
CONFIG_USB_F_SERIAL=m
CONFIG_USB_F_OBEX=m
CONFIG_USB_F_NCM=m
CONFIG_USB_F_ECM=m
CONFIG_USB_F_EEM=m
CONFIG_USB_F_SUBSET=m
CONFIG_USB_F_RNDIS=m
CONFIG_USB_F_MASS_STORAGE=m
CONFIG_USB_F_FS=m
CONFIG_USB_F_HID=m
CONFIG_USB_F_PRINTER=m
CONFIG_USB_CONFIGFS=m
CONFIG_USB_CONFIGFS_SERIAL=y
CONFIG_USB_CONFIGFS_ACM=y
CONFIG_USB_CONFIGFS_OBEX=y
CONFIG_USB_CONFIGFS_NCM=y
CONFIG_USB_CONFIGFS_ECM=y
CONFIG_USB_CONFIGFS_ECM_SUBSET=y
CONFIG_USB_CONFIGFS_RNDIS=y
CONFIG_USB_CONFIGFS_EEM=y
CONFIG_USB_CONFIGFS_MASS_STORAGE=y
CONFIG_USB_CONFIGFS_F_LB_SS=y
CONFIG_USB_CONFIGFS_F_FS=y
CONFIG_USB_CONFIGFS_F_HID=y
CONFIG_USB_CONFIGFS_F_PRINTER=y
CONFIG_USB_ZERO=m
CONFIG_USB_ETH=m
CONFIG_USB_ETH_RNDIS=y
CONFIG_USB_ETH_EEM=y
CONFIG_USB_G_NCM=m
CONFIG_USB_GADGETFS=m
CONFIG_USB_FUNCTIONFS=m
CONFIG_USB_FUNCTIONFS_ETH=y
CONFIG_USB_FUNCTIONFS_RNDIS=y
CONFIG_USB_FUNCTIONFS_GENERIC=y
CONFIG_USB_MASS_STORAGE=m
CONFIG_USB_G_SERIAL=m
CONFIG_USB_G_PRINTER=m
CONFIG_USB_CDC_COMPOSITE=m
CONFIG_USB_G_ACM_MS=m
CONFIG_USB_G_MULTI=m
CONFIG_USB_G_MULTI_RNDIS=y
CONFIG_USB_G_MULTI_CDC=y
CONFIG_USB_G_HID=m
CONFIG_MMC=y
CONFIG_MMC_BLOCK=y
CONFIG_MMC_BLOCK_MINORS=8
CONFIG_MMC_BLOCK_BOUNCE=y
CONFIG_MMC_SDHCI=y
CONFIG_MMC_SDHCI_IO_ACCESSORS=y
CONFIG_MMC_SDHCI_PLTFM=y
CONFIG_MMC_SDHCI_ESDHC_IMX=y
CONFIG_NEW_LEDS=y
CONFIG_LEDS_CLASS=m
CONFIG_LEDS_GPIO=m
CONFIG_LEDS_TRIGGERS=y
CONFIG_LEDS_TRIGGER_TIMER=m
CONFIG_LEDS_TRIGGER_ONESHOT=m
CONFIG_LEDS_TRIGGER_HEARTBEAT=m
CONFIG_LEDS_TRIGGER_BACKLIGHT=m
CONFIG_LEDS_TRIGGER_CPU=y
CONFIG_LEDS_TRIGGER_GPIO=m
CONFIG_LEDS_TRIGGER_DEFAULT_ON=m
CONFIG_LEDS_TRIGGER_TRANSIENT=m
CONFIG_EDAC_ATOMIC_SCRUB=y
CONFIG_EDAC_SUPPORT=y
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
CONFIG_RTC_SYSTOHC=y
CONFIG_RTC_SYSTOHC_DEVICE="rtc0"
CONFIG_RTC_INTF_SYSFS=y
CONFIG_RTC_INTF_PROC=y
CONFIG_RTC_INTF_DEV=y
CONFIG_RTC_INTF_DEV_UIE_EMUL=y
CONFIG_RTC_DRV_IMXDI=y
CONFIG_RTC_DRV_MXC=y
CONFIG_DMADEVICES=y
CONFIG_DMA_ENGINE=y
CONFIG_DMA_OF=y
CONFIG_IMX_SDMA=m
CONFIG_CLKDEV_LOOKUP=y
CONFIG_HAVE_CLK_PREPARE=y
CONFIG_COMMON_CLK=y
CONFIG_CLKSRC_OF=y
CONFIG_CLKSRC_PROBE=y
CONFIG_CLKSRC_MMIO=y
CONFIG_CLKSRC_IMX_GPT=y
CONFIG_IOMMU_SUPPORT=y
CONFIG_EXTCON=m
CONFIG_IRQCHIP=y
CONFIG_ARCH_HAS_RESET_CONTROLLER=y
CONFIG_DCACHE_WORD_ACCESS=y
CONFIG_EXT4_FS=y
CONFIG_EXT4_USE_FOR_EXT2=y
CONFIG_JBD2=y
CONFIG_FS_MBCACHE=y
CONFIG_EXPORTFS=y
CONFIG_FILE_LOCKING=y
CONFIG_FSNOTIFY=y
CONFIG_DNOTIFY=y
CONFIG_INOTIFY_USER=y
CONFIG_AUTOFS4_FS=y
CONFIG_FUSE_FS=m
CONFIG_OVERLAY_FS=y
CONFIG_FAT_FS=m
CONFIG_MSDOS_FS=m
CONFIG_VFAT_FS=m
CONFIG_FAT_DEFAULT_CODEPAGE=437
CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
CONFIG_NTFS_FS=m
CONFIG_NTFS_RW=y
CONFIG_PROC_FS=y
CONFIG_PROC_SYSCTL=y
CONFIG_PROC_PAGE_MONITOR=y
CONFIG_KERNFS=y
CONFIG_SYSFS=y
CONFIG_TMPFS=y
CONFIG_TMPFS_POSIX_ACL=y
CONFIG_TMPFS_XATTR=y
CONFIG_CONFIGFS_FS=y
CONFIG_MISC_FILESYSTEMS=y
CONFIG_ECRYPT_FS=m
CONFIG_ECRYPT_FS_MESSAGING=y
CONFIG_JFFS2_FS=m
CONFIG_JFFS2_FS_DEBUG=0
CONFIG_JFFS2_FS_WRITEBUFFER=y
CONFIG_JFFS2_ZLIB=y
CONFIG_JFFS2_RTIME=y
CONFIG_SQUASHFS=y
CONFIG_SQUASHFS_FILE_DIRECT=y
CONFIG_SQUASHFS_DECOMP_SINGLE=y
CONFIG_SQUASHFS_ZLIB=y
CONFIG_SQUASHFS_LZ4=y
CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3
CONFIG_NETWORK_FILESYSTEMS=y
CONFIG_NFS_FS=m
CONFIG_NFS_V2=m
CONFIG_NFS_V3=m
CONFIG_NFSD=m
CONFIG_NFSD_V3=y
CONFIG_GRACE_PERIOD=m
CONFIG_LOCKD=m
CONFIG_LOCKD_V4=y
CONFIG_NFS_COMMON=y
CONFIG_SUNRPC=m
CONFIG_CIFS=m
CONFIG_NLS=y
CONFIG_NLS_DEFAULT="iso8859-1"
CONFIG_NLS_CODEPAGE_437=y
CONFIG_NLS_ASCII=y
CONFIG_NLS_ISO8859_1=y
CONFIG_NLS_UTF8=y
CONFIG_MESSAGE_LOGLEVEL_DEFAULT=4
CONFIG_ENABLE_WARN_DEPRECATED=y
CONFIG_ENABLE_MUST_CHECK=y
CONFIG_FRAME_WARN=1024
CONFIG_DEBUG_FS=y
CONFIG_SECTION_MISMATCH_WARN_ONLY=y
CONFIG_DEBUG_KERNEL=y
CONFIG_HAVE_DEBUG_KMEMLEAK=y
CONFIG_LOCKUP_DETECTOR=y
CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC=y
CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=1
CONFIG_DETECT_HUNG_TASK=y
CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=0
CONFIG_BOOTPARAM_HUNG_TASK_PANIC=y
CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=1
CONFIG_PANIC_ON_OOPS_VALUE=0
CONFIG_PANIC_TIMEOUT=5
CONFIG_SCHED_DEBUG=y
CONFIG_DEBUG_BUGVERBOSE=y
CONFIG_RCU_CPU_STALL_TIMEOUT=21
CONFIG_HAVE_FUNCTION_TRACER=y
CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y
CONFIG_HAVE_DYNAMIC_FTRACE=y
CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y
CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
CONFIG_HAVE_C_RECORDMCOUNT=y
CONFIG_TRACING_SUPPORT=y
CONFIG_LKDTM=m
CONFIG_HAVE_ARCH_KGDB=y
CONFIG_STRICT_DEVMEM=y
CONFIG_ARM_UNWIND=y
CONFIG_DEBUG_IMX_UART_PORT=1
CONFIG_DEBUG_LL_INCLUDE="mach/debug-macro.S"
CONFIG_UNCOMPRESS_INCLUDE="debug/uncompress.h"
CONFIG_KEYS=y
CONFIG_ENCRYPTED_KEYS=m
CONFIG_SECURITY=y
CONFIG_SECURITYFS=y
CONFIG_INTEGRITY=y
CONFIG_DEFAULT_SECURITY_DAC=y
CONFIG_DEFAULT_SECURITY=""
CONFIG_CRYPTO=y
CONFIG_CRYPTO_ALGAPI=y
CONFIG_CRYPTO_ALGAPI2=y
CONFIG_CRYPTO_AEAD=m
CONFIG_CRYPTO_AEAD2=y
CONFIG_CRYPTO_BLKCIPHER=y
CONFIG_CRYPTO_BLKCIPHER2=y
CONFIG_CRYPTO_HASH=y
CONFIG_CRYPTO_HASH2=y
CONFIG_CRYPTO_RNG=m
CONFIG_CRYPTO_RNG2=y
CONFIG_CRYPTO_RNG_DEFAULT=m
CONFIG_CRYPTO_PCOMP=m
CONFIG_CRYPTO_PCOMP2=y
CONFIG_CRYPTO_AKCIPHER2=y
CONFIG_CRYPTO_MANAGER=y
CONFIG_CRYPTO_MANAGER2=y
CONFIG_CRYPTO_USER=m
CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y
CONFIG_CRYPTO_GF128MUL=y
CONFIG_CRYPTO_NULL=m
CONFIG_CRYPTO_NULL2=y
CONFIG_CRYPTO_WORKQUEUE=y
CONFIG_CRYPTO_AUTHENC=m
CONFIG_CRYPTO_TEST=m
CONFIG_CRYPTO_CCM=m
CONFIG_CRYPTO_GCM=m
CONFIG_CRYPTO_SEQIV=m
CONFIG_CRYPTO_ECHAINIV=m
CONFIG_CRYPTO_CBC=y
CONFIG_CRYPTO_CTR=m
CONFIG_CRYPTO_ECB=y
CONFIG_CRYPTO_XTS=y
CONFIG_CRYPTO_CMAC=m
CONFIG_CRYPTO_HMAC=m
CONFIG_CRYPTO_CRC32C=y
CONFIG_CRYPTO_GHASH=m
CONFIG_CRYPTO_MD4=m
CONFIG_CRYPTO_MD5=y
CONFIG_CRYPTO_SHA1=m
CONFIG_CRYPTO_SHA256=y
CONFIG_CRYPTO_AES=y
CONFIG_CRYPTO_ARC4=m
CONFIG_CRYPTO_DES=m
CONFIG_CRYPTO_DEFLATE=y
CONFIG_CRYPTO_ZLIB=m
CONFIG_CRYPTO_LZO=m
CONFIG_CRYPTO_ANSI_CPRNG=m
CONFIG_CRYPTO_DRBG_MENU=m
CONFIG_CRYPTO_DRBG_HMAC=y
CONFIG_CRYPTO_DRBG_HASH=y
CONFIG_CRYPTO_DRBG_CTR=y
CONFIG_CRYPTO_DRBG=m
CONFIG_CRYPTO_JITTERENTROPY=m
CONFIG_CRYPTO_USER_API=m
CONFIG_CRYPTO_USER_API_HASH=m
CONFIG_CRYPTO_USER_API_SKCIPHER=m
CONFIG_CRYPTO_USER_API_RNG=m
CONFIG_CRYPTO_HASH_INFO=y
CONFIG_CRYPTO_HW=y
CONFIG_CRYPTO_DEV_SAHARA=y
CONFIG_ASYMMETRIC_KEY_TYPE=m
CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE=m
CONFIG_PUBLIC_KEY_ALGO_RSA=m
CONFIG_X509_CERTIFICATE_PARSER=m
CONFIG_PKCS7_MESSAGE_PARSER=m
CONFIG_BITREVERSE=y
CONFIG_HAVE_ARCH_BITREVERSE=y
CONFIG_RATIONAL=y
CONFIG_GENERIC_STRNCPY_FROM_USER=y
CONFIG_GENERIC_STRNLEN_USER=y
CONFIG_GENERIC_NET_UTILS=y
CONFIG_GENERIC_PCI_IOMAP=y
CONFIG_GENERIC_IO=y
CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y
CONFIG_CRC_CCITT=m
CONFIG_CRC16=y
CONFIG_CRC_ITU_T=m
CONFIG_CRC32=y
CONFIG_CRC32_SLICEBY8=y
CONFIG_ZLIB_INFLATE=y
CONFIG_ZLIB_DEFLATE=y
CONFIG_LZO_COMPRESS=y
CONFIG_LZO_DECOMPRESS=y
CONFIG_LZ4_DECOMPRESS=y
CONFIG_DECOMPRESS_GZIP=y
CONFIG_GENERIC_ALLOCATOR=y
CONFIG_TEXTSEARCH=y
CONFIG_TEXTSEARCH_KMP=m
CONFIG_TEXTSEARCH_BM=m
CONFIG_TEXTSEARCH_FSM=m
CONFIG_ASSOCIATIVE_ARRAY=y
CONFIG_HAS_IOMEM=y
CONFIG_HAS_IOPORT_MAP=y
CONFIG_HAS_DMA=y
CONFIG_DQL=y
CONFIG_NLATTR=y
CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE=y
CONFIG_CLZ_TAB=y
CONFIG_MPILIB=m
CONFIG_LIBFDT=y
CONFIG_OID_REGISTRY=m
CONFIG_ARCH_HAS_SG_CHAIN=y
-20
View File
@@ -1,20 +0,0 @@
{ stdenv, buildLinux, fetchurl }:
buildLinux {
inherit stdenv;
version = "4.4.0";
src = fetchurl {
url = "mirror://kernel/linux/kernel/v4.x/linux-4.4.tar.xz";
sha256 = "401d7c8fef594999a460d10c72c5a94e9c2e1022f16795ec51746b0d165418b2";
};
configfile = ./kernel.config;
kernelPatches = [{
patch = ./usbarmory-dts.patch;
name = "usbarmory-dts";
}];
allowImportFromDerivation = true;
}
-418
View File
@@ -1,418 +0,0 @@
diff -Nru linux-4.4-orig/arch/arm/boot/dts/imx53-usbarmory-common.dtsi linux-4.4/arch/arm/boot/dts/imx53-usbarmory-common.dtsi
--- linux-4.4-orig/arch/arm/boot/dts/imx53-usbarmory-common.dtsi 1969-12-31 18:00:00.000000000 -0600
+++ linux-4.4/arch/arm/boot/dts/imx53-usbarmory-common.dtsi 2016-02-04 08:31:38.730794858 -0600
@@ -0,0 +1,241 @@
+/*
+ * USB armory MkI device tree include file
+ * https://inversepath.com/usbarmory
+ *
+ * Copyright (C) 2015, Inverse Path
+ * Andrej Rosano <andrej@inversepath.com>
+ *
+ * Licensed under GPLv2
+ */
+
+#include "imx53.dtsi"
+
+/ {
+ model = "Inverse Path USB armory";
+ compatible = "inversepath,imx53-usbarmory", "fsl,imx53";
+};
+
+/ {
+ chosen {
+ stdout-path = &uart1;
+ };
+
+ memory {
+ reg = <0x70000000 0x20000000>;
+ };
+
+ leds {
+ compatible = "gpio-leds";
+ pinctrl-names = "default";
+ pinctrl-0 = <&led_pin_gpio4_27>;
+
+ user {
+ label = "LED";
+ gpios = <&gpio4 27 0>;
+ linux,default-trigger = "heartbeat";
+ };
+ };
+
+ soc {
+ aips@60000000 {
+ sahara: crypto@63ff8000 {
+ compatible = "fsl,imx53-sahara";
+ reg = <0x63ff8000 0x4000>;
+ interrupts = <19 20>;
+ clocks = <&clks IMX5_CLK_SAHARA_IPG_GATE>,
+ <&clks IMX5_CLK_SAHARA_IPG_GATE>;
+ clock-names = "ipg", "ahb";
+ };
+ };
+ };
+};
+
+&cpu0 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a8";
+ reg = <0x0>;
+ clocks = <&clks IMX5_CLK_ARM>;
+ clock-latency = <61036>;
+ voltage-tolerance = <5>;
+ operating-points = <
+ /* kHz */
+ 166666 850000
+ 400000 900000
+ 800000 1050000
+ >;
+};
+
+&esdhc1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_esdhc1>;
+ status = "okay";
+};
+
+&iomuxc {
+ pinctrl-names = "default";
+
+ imx53-usbarmory {
+ led_pin_gpio4_27: led_gpio4_27@0 {
+ fsl,pins = <
+ MX53_PAD_DISP0_DAT6__GPIO4_27 0x80000000
+ >;
+ };
+
+ pinctrl_esdhc1: esdhc1grp {
+ fsl,pins = <
+ MX53_PAD_SD1_DATA0__ESDHC1_DAT0 0x1d5
+ MX53_PAD_SD1_DATA1__ESDHC1_DAT1 0x1d5
+ MX53_PAD_SD1_DATA2__ESDHC1_DAT2 0x1d5
+ MX53_PAD_SD1_DATA3__ESDHC1_DAT3 0x1d5
+ MX53_PAD_SD1_CMD__ESDHC1_CMD 0x1d5
+ MX53_PAD_SD1_CLK__ESDHC1_CLK 0x1d5
+ >;
+ };
+
+ pinctrl_i2c1_pmic: i2c1grp_pmic {
+ fsl,pins = <
+ MX53_PAD_EIM_D21__I2C1_SCL 0xc0000000
+ MX53_PAD_EIM_D28__I2C1_SDA 0xc0000000
+ >;
+ };
+
+ /*
+ UART mode pin header configration:
+ pin number: 1 2 3 4 5 6 7
+ function: GND 5V ? ? TX RX ?
+ */
+ pinctrl_uart1: uart1grp {
+ fsl,pins = <
+ MX53_PAD_CSI0_DAT10__UART1_TXD_MUX 0x1e4
+ MX53_PAD_CSI0_DAT11__UART1_RXD_MUX 0x1e4
+ >;
+ };
+
+ /*
+ GPIO mode pin header configuration:
+ 1 2 3 4 5 6 7
+ GND 5V GPIO5[26] GPIO5[27] GPIO5[28] GPIO5[29] GPIO5[30]
+ */
+ pinctrl_gpio5: gpio5grp {
+ fsl,pins = <
+ MX53_PAD_CSI0_DAT8__GPIO5_26 0xc0
+ MX53_PAD_CSI0_DAT9__GPIO5_27 0xc0
+ MX53_PAD_CSI0_DAT10__GPIO5_28 0xc0
+ MX53_PAD_CSI0_DAT11__GPIO5_29 0xc0
+ MX53_PAD_CSI0_DAT12__GPIO5_30 0xc0
+ >;
+ };
+
+ /*
+ SPI mode pin header configuration:
+ 1 2 3 4 5 6 7
+ GND 5V SCLK MOSI MISO /SS0 /SS1
+ */
+ pinctrl_ecspi2: ecspi2grp {
+ fsl,pins = <
+ MX53_PAD_CSI0_DAT8__ECSPI2_SCLK 0x80000000
+ MX53_PAD_CSI0_DAT9__ECSPI2_MOSI 0x80000000
+ MX53_PAD_CSI0_DAT10__ECSPI2_MISO 0x80000000
+ MX53_PAD_CSI0_DAT11__GPIO5_29 0x80000000
+ MX53_PAD_CSI0_DAT12__GPIO5_30 0x80000000
+ >;
+ };
+
+ /*
+ I2C mode pin header configuration:
+ 1 2 3 4 5 6 7
+ GND 5V SDA SCL GPIO5[28] GPIO5[29] GPIO5[30]
+ */
+ pinctrl_i2c1_pinheader: i2c1grp_pinheader {
+ fsl,pins = <
+ MX53_PAD_CSI0_DAT8__I2C1_SDA 0xc0000000
+ MX53_PAD_CSI0_DAT9__I2C1_SCL 0xc0000000
+ MX53_PAD_CSI0_DAT10__GPIO5_28 0x80000000
+ MX53_PAD_CSI0_DAT11__GPIO5_29 0x80000000
+ MX53_PAD_CSI0_DAT12__GPIO5_30 0x80000000
+ >;
+ };
+ };
+};
+
+&uart1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_uart1>;
+ status = "okay";
+};
+
+&vpu {
+ status = "okay";
+};
+
+&i2c1 {
+ pinctrl-0 = <&pinctrl_i2c1_pmic>;
+ status = "okay";
+ ltc3589: pmic@34 {
+ compatible = "lltc,ltc3589-2";
+ reg = <0x34>;
+ regulators {
+ sw1_reg: sw1 {
+ regulator-min-microvolt = <591930>;
+ regulator-max-microvolt = <1224671>;
+ lltc,fb-voltage-divider = <100000 158000>;
+ regulator-ramp-delay = <7000>;
+ regulator-boot-on;
+ regulator-always-on;
+ };
+
+ sw2_reg: sw2 {
+ regulator-min-microvolt = <704123>;
+ regulator-max-microvolt = <1456803>;
+ lltc,fb-voltage-divider = <180000 191000>;
+ regulator-ramp-delay = <7000>;
+ regulator-boot-on;
+ regulator-always-on;
+ };
+
+ sw3_reg: sw3 {
+ regulator-min-microvolt = <1341250>;
+ regulator-max-microvolt = <2775000>;
+ lltc,fb-voltage-divider = <270000 100000>;
+ regulator-ramp-delay = <7000>;
+ regulator-boot-on;
+ regulator-always-on;
+ };
+
+ bb_out_reg: bb-out {
+ regulator-min-microvolt = <3387341>;
+ regulator-max-microvolt = <3387341>;
+ lltc,fb-voltage-divider = <511000 158000>;
+ regulator-boot-on;
+ regulator-always-on;
+ };
+ ldo1_reg: ldo1 {
+ regulator-min-microvolt = <1306329>;
+ regulator-max-microvolt = <1306329>;
+ lltc,fb-voltage-divider = <100000 158000>;
+ regulator-boot-on;
+ regulator-always-on;
+ };
+
+ ldo2_reg: ldo2 {
+ regulator-min-microvolt = <704123>;
+ regulator-max-microvolt = <1456806>;
+ lltc,fb-voltage-divider = <180000 191000>;
+ regulator-ramp-delay = <7000>;
+ regulator-boot-on;
+ regulator-always-on;
+ };
+
+ ldo3_reg: ldo3 {
+ regulator-min-microvolt = <2800000>;
+ regulator-max-microvolt = <2800000>;
+ regulator-boot-on;
+ };
+
+ ldo4_reg: ldo4 {
+ regulator-min-microvolt = <1200000>;
+ regulator-max-microvolt = <3200000>;
+ };
+ };
+ };
+};
diff -Nru linux-4.4-orig/arch/arm/boot/dts/imx53-usbarmory.dts linux-4.4/arch/arm/boot/dts/imx53-usbarmory.dts
--- linux-4.4-orig/arch/arm/boot/dts/imx53-usbarmory.dts 1969-12-31 18:00:00.000000000 -0600
+++ linux-4.4/arch/arm/boot/dts/imx53-usbarmory.dts 2016-02-04 08:31:38.730794858 -0600
@@ -0,0 +1,18 @@
+/*
+ * USB armory MkI device mode device tree file
+ * https://inversepath.com/usbarmory
+ *
+ * Copyright (C) 2015, Inverse Path
+ * Andrej Rosano <andrej@inversepath.com>
+ *
+ * Licensed under GPLv2
+ */
+
+/dts-v1/;
+
+#include "imx53-usbarmory-common.dtsi"
+
+&usbotg {
+ dr_mode = "peripheral";
+ status = "okay";
+};
diff -Nru linux-4.4-orig/arch/arm/boot/dts/imx53-usbarmory-gpio.dts linux-4.4/arch/arm/boot/dts/imx53-usbarmory-gpio.dts
--- linux-4.4-orig/arch/arm/boot/dts/imx53-usbarmory-gpio.dts 1969-12-31 18:00:00.000000000 -0600
+++ linux-4.4/arch/arm/boot/dts/imx53-usbarmory-gpio.dts 2016-02-04 08:31:38.730794858 -0600
@@ -0,0 +1,26 @@
+/*
+ * USB armory MkI device mode device tree file
+ * https://inversepath.com/usbarmory
+ *
+ * Copyright (C) 2015, Inverse Path
+ * Andrej Rosano <andrej@inversepath.com>
+ *
+ * Licensed under GPLv2
+ */
+
+/dts-v1/;
+
+#include "imx53-usbarmory-common.dtsi"
+
+&usbotg {
+ dr_mode = "peripheral";
+ status = "okay";
+};
+
+&iomuxc {
+ pinctrl-0 = <&pinctrl_gpio5>;
+};
+
+&uart1 {
+ status = "disabled";
+};
diff -Nru linux-4.4-orig/arch/arm/boot/dts/imx53-usbarmory-host.dts linux-4.4/arch/arm/boot/dts/imx53-usbarmory-host.dts
--- linux-4.4-orig/arch/arm/boot/dts/imx53-usbarmory-host.dts 1969-12-31 18:00:00.000000000 -0600
+++ linux-4.4/arch/arm/boot/dts/imx53-usbarmory-host.dts 2016-02-04 08:31:38.730794858 -0600
@@ -0,0 +1,18 @@
+/*
+ * USB armory MkI host mode device tree file
+ * https://inversepath.com/usbarmory
+ *
+ * Copyright (C) 2015, Inverse Path
+ * Andrej Rosano <andrej@inversepath.com>
+ *
+ * Licensed under GPLv2
+ */
+
+/dts-v1/;
+
+#include "imx53-usbarmory-common.dtsi"
+
+&usbotg {
+ dr_mode = "host";
+ status = "okay";
+};
diff -Nru linux-4.4-orig/arch/arm/boot/dts/imx53-usbarmory-i2c.dts linux-4.4/arch/arm/boot/dts/imx53-usbarmory-i2c.dts
--- linux-4.4-orig/arch/arm/boot/dts/imx53-usbarmory-i2c.dts 1969-12-31 18:00:00.000000000 -0600
+++ linux-4.4/arch/arm/boot/dts/imx53-usbarmory-i2c.dts 2016-02-04 08:31:38.730794858 -0600
@@ -0,0 +1,32 @@
+/*
+ * USB armory MkI device mode device tree file
+ * https://inversepath.com/usbarmory
+ *
+ * Copyright (C) 2015, Inverse Path
+ * Andrej Rosano <andrej@inversepath.com>
+ *
+ * Licensed under GPLv2
+ */
+
+/dts-v1/;
+
+#include "imx53-usbarmory-common.dtsi"
+
+&usbotg {
+ dr_mode = "peripheral";
+ status = "okay";
+};
+
+&uart1 {
+ status = "disabled";
+};
+
+&iomuxc {
+ pinctrl-0 = <&pinctrl_i2c1_pinheader>;
+};
+
+&i2c1 {
+ ltc3589: pmic@34 {
+ status = "disabled";
+ };
+};
diff -Nru linux-4.4-orig/arch/arm/boot/dts/imx53-usbarmory-spi.dts linux-4.4/arch/arm/boot/dts/imx53-usbarmory-spi.dts
--- linux-4.4-orig/arch/arm/boot/dts/imx53-usbarmory-spi.dts 1969-12-31 18:00:00.000000000 -0600
+++ linux-4.4/arch/arm/boot/dts/imx53-usbarmory-spi.dts 2016-02-04 08:31:38.730794858 -0600
@@ -0,0 +1,45 @@
+/*
+ * USB armory MkI device mode device tree file
+ * https://inversepath.com/usbarmory
+ *
+ * Copyright (C) 2015, Inverse Path
+ * Andrej Rosano <andrej@inversepath.com>
+ *
+ * Licensed under GPLv2
+ */
+
+/dts-v1/;
+
+#include "imx53-usbarmory-common.dtsi"
+
+&usbotg {
+ dr_mode = "peripheral";
+ status = "okay";
+};
+
+&uart1 {
+ status = "disabled";
+};
+
+&iomuxc {
+ pinctrl-0 = <&pinctrl_ecspi2>;
+};
+
+&ecspi2 {
+ fsl,spi-num-chipselects = <2>;
+ cs-gpios = <&gpio5 29 0>, <&gpio5 30 0>;
+ status = "okay";
+
+ flash: m25p40@0 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "st,m25p40", "st,m25p";
+ spi-max-frequency = <20000000>;
+ reg = <0>;
+
+ partition@0 {
+ label = "test-partition";
+ reg = <0x0 0x80000>;
+ };
+ };
+};
diff -Nru linux-4.4-orig/arch/arm/boot/dts/Makefile linux-4.4/arch/arm/boot/dts/Makefile
--- linux-4.4-orig/arch/arm/boot/dts/Makefile 2016-02-04 13:29:20.880919101 -0600
+++ linux-4.4/arch/arm/boot/dts/Makefile 2016-02-04 13:27:10.733849955 -0600
@@ -278,6 +278,10 @@
imx53-smd.dtb \
imx53-tx53-x03x.dtb \
imx53-tx53-x13x.dtb \
+ imx53-usbarmory.dtb \
+ imx53-usbarmory-host.dtb \
+ imx53-usbarmory-i2c.dtb \
+ imx53-usbarmory-gpio.dtb \
imx53-voipac-bsb.dtb
dtb-$(CONFIG_SOC_IMX6Q) += \
imx6dl-apf6dev.dtb \
+17
View File
@@ -0,0 +1,17 @@
{ pkgs, ... }:
{
imports = [
./modules/fancontrol.nix
];
nixpkgs.overlays = [
(import ./overlay.nix)
];
nixpkgs.hostPlatform = "armv7l-linux";
boot.initrd.availableKernelModules = [ "ahci_mvebu" ];
boot.kernelPackages = pkgs.linuxPackagesFor pkgs.linux_5_15_helios4;
}
@@ -0,0 +1,18 @@
# Helios4 persistent hwmon
ACTION=="remove", GOTO="helios4_hwmon_end"
#
KERNELS=="j10-pwm", SUBSYSTEMS=="platform", ENV{_HELIOS4_FAN_}="j10", ENV{_IS_HELIOS4_FAN_}="1", ENV{IS_HELIOS4_HWMON}="1"
KERNELS=="j17-pwm", SUBSYSTEMS=="platform", ENV{_HELIOS4_FAN_}="j17", ENV{_IS_HELIOS4_FAN_}="1", ENV{IS_HELIOS4_HWMON}="1"
KERNELS=="0-004c", SUBSYSTEMS=="i2c", DRIVERS=="lm75", ENV{IS_HELIOS4_HWMON}="1"
SUBSYSTEM!="hwmon", GOTO="helios4_hwmon_end"
ENV{HWMON_PATH}="/sys%p"
#
ATTR{name}=="f1072004mdiomii00", ENV{IS_HELIOS4_HWMON}="1", ENV{HELIOS4_SYMLINK}="/dev/thermal-eth"
ATTR{name}=="armada_thermal", ENV{IS_HELIOS4_HWMON}="1", ENV{HELIOS4_SYMLINK}="/dev/thermal-cpu"
ATTR{name}=="f10e4078.thermal", ENV{IS_HELIOS4_HWMON}="1", ENV{HELIOS4_SYMLINK}="/dev/thermal-cpu"
#
ENV{IS_HELIOS4_HWMON}=="1", ATTR{name}=="lm75", ENV{HELIOS4_SYMLINK}="/dev/thermal-board"
ENV{_IS_HELIOS4_FAN_}=="1", ENV{HELIOS4_SYMLINK}="/dev/fan-$env{_HELIOS4_FAN_}"
#
ENV{IS_HELIOS4_HWMON}=="1", RUN+="/bin/ln -sf $env{HWMON_PATH} $env{HELIOS4_SYMLINK}"
LABEL="helios4_hwmon_end"
+44
View File
@@ -0,0 +1,44 @@
{ pkgs, ... }:
{
hardware.fancontrol.enable = true;
hardware.fancontrol.config = ''
# Helios4 PWM Fan Control Configuration
# Temp source : /dev/thermal-cpu
INTERVAL=10
FCTEMPS=/dev/fan-j10/pwm1=/dev/thermal-cpu/temp1_input /dev/fan-j17/pwm1=/dev/thermal-cpu/temp1_input
MINTEMP=/dev/fan-j10/pwm1=40 /dev/fan-j17/pwm1=40
MAXTEMP=/dev/fan-j10/pwm1=80 /dev/fan-j17/pwm1=80
MINSTART=/dev/fan-j10/pwm1=20 /dev/fan-j17/pwm1=20
MINSTOP=/dev/fan-j10/pwm1=29 /dev/fan-j17/pwm1=29
MINPWM=0
'';
boot.kernelModules = [ "lm75" ];
services.udev.packages = [
# Fan control
(pkgs.callPackage (
{ stdenv, lib, coreutils }:
stdenv.mkDerivation {
name = "helios4-udev-fancontrol";
dontUnpack = true;
dontBuild = true;
installPhase = ''
mkdir -p "$out/etc/udev/rules.d/";
install -Dm644 "${./90-helios4-hwmon.rules}" \
"$out/etc/udev/rules.d/90-helios4-hwmon.rules"
substituteInPlace "$out/etc/udev/rules.d/90-helios4-hwmon.rules" \
--replace '/bin/ln' '${lib.getBin coreutils}/bin/ln'
'';
meta = with lib; {
description = "Udev rules for fancontrol for the Helios4";
platforms = platforms.linux;
};
}
) {})
];
}
+48
View File
@@ -0,0 +1,48 @@
final: prev: {
linux_5_15_helios4 = final.linux_5_15.override {
kernelPatches = [
# A patch to get both PWM fans working
# the patch has been successfully applied to 5.15 and 5.19
{
patch = final.fetchpatch {
url = "https://raw.githubusercontent.com/armbian/build/03dbd9d3a733f097e23595e76ac60771c655ebf1/patch/kernel/archive/mvebu-5.15/92-mvebu-gpio-remove-hardcoded-timer-assignment.patch";
sha256 = "sha256-0h7v3Nua1LuHf4h53WdYEBrbUA9dOGdF06TDBlDplOQ=";
};
}
# support for Wake-On-Lan
{
patch = final.fetchpatch {
url = "https://raw.githubusercontent.com/armbian/build/03dbd9d3a733f097e23595e76ac60771c655ebf1/patch/kernel/archive/mvebu-5.15/92-mvebu-gpio-add_wake_on_gpio_support.patch";
sha256 = "sha256-OrvnVCU55P0U78jdoxGRJvl29i+Rvq8AdEGSCCpxa2I=";
};
}
{
patch = final.fetchpatch {
url = "https://raw.githubusercontent.com/armbian/build/03dbd9d3a733f097e23595e76ac60771c655ebf1/patch/kernel/archive/mvebu-5.15/94-helios4-dts-add-wake-on-lan-support.patch";
sha256 = "sha256-ai4161bTC22023eaVVWsvbk6fQKjkv0P4DQ4DA1Zgow=";
};
}
];
defconfig = "mvebu_v7_defconfig";
# Make the kernel build a bit faster by disabling GPU modules, which we don't need anyways
structuredExtraConfig = with final.lib.kernel; {
DRM = no;
};
};
ubootHelios4 = final.buildUBoot rec {
defconfig = "helios4_defconfig";
filesToInstall = [ "u-boot-spl.kwb" ];
# 2021.07 and later are broken, similar to this bug report:
# https://www.mail-archive.com/u-boot@lists.denx.de/msg451013.html#
version = "2021.04";
src = final.fetchFromGitHub {
owner = "u-boot";
repo = "u-boot";
rev = "v${version}";
sha256 = "sha256-QxrTPcx0n0NWUJ990EuIWyOBtknW/fHDRcrYP0yQzTo=";
};
patches = [];
};
}
+20
View File
@@ -0,0 +1,20 @@
{ lib, pkgs, ... }:
{
imports = [
../../../common/cpu/amd
../../../common/gpu/nvidia.nix
../../../common/pc/laptop
../../../common/pc/laptop/ssd
];
# Specify bus id of Nvidia and Intel graphics.
hardware.nvidia.prime = {
amdgpuBusId = "PCI:5:0:0";
nvidiaBusId = "PCI:1:0:0";
};
# Cooling management
services.thermald.enable = lib.mkDefault true;
}
+42
View File
@@ -0,0 +1,42 @@
{ lib, config, ... }:
let kernelPackages = config.boot.kernelPackages;
in {
imports = [
../../../common/cpu/amd
../../../common/gpu/amd
../../../common/gpu/nvidia.nix
../../../common/pc/laptop
../../../common/pc/laptop/ssd
];
hardware.nvidia.prime = {
amdgpuBusId = "PCI:5:0:0";
nvidiaBusId = "PCI:1:0:0";
};
services.thermald.enable = lib.mkDefault true;
# https://wiki.archlinux.org/title/backlight#Backlight_is_always_at_full_brightness_after_a_reboot_with_amdgpu_driver
systemd.services.fix-brightness = {
before = [
"systemd-backlight@backlight:${
if lib.versionOlder kernelPackages.kernel.version "5.18" then "amdgpu_bl0" else "nvidia_wmi_ec_backlight"
}.service"
];
description = "Convert 16-bit brightness values to 8-bit before systemd-backlight applies it";
script = ''
BRIGHTNESS_FILE="/var/lib/systemd/backlight/${
if lib.versionOlder kernelPackages.kernel.version "5.18" then
"pci-0000:05:00.0:backlight:amdgpu_bl0"
else
"platform-PNP0C14:00:backlight:nvidia_wmi_ec_backlight"
}"
BRIGHTNESS=$(cat "$BRIGHTNESS_FILE")
BRIGHTNESS=$(($BRIGHTNESS*255/65535))
BRIGHTNESS=''${BRIGHTNESS/.*} # truncating to int, just in case
echo $BRIGHTNESS > "$BRIGHTNESS_FILE"
'';
serviceConfig.Type = "oneshot";
wantedBy = [ "multi-user.target" ];
};
}
+20
View File
@@ -0,0 +1,20 @@
{ lib, pkgs, ... }:
{
imports = [
../../../common/cpu/amd
../../../common/gpu/nvidia.nix
../../../common/pc/laptop
../../../common/pc/laptop/ssd
];
# Specify bus id of Nvidia and Intel graphics.
hardware.nvidia.prime = {
amdgpuBusId = "PCI:6:0:0";
nvidiaBusId = "PCI:1:0:0";
};
# Cooling management
services.thermald.enable = lib.mkDefault true;
}
+19
View File
@@ -0,0 +1,19 @@
{ lib, pkgs, ... }:
{
imports = [
../../../common/cpu/intel
../../../common/gpu/nvidia.nix
../../../common/pc/laptop
../../../common/pc/laptop/ssd
];
# Specify bus id of Nvidia and Intel graphics.
hardware.nvidia.prime = {
intelBusId = "PCI:00:02:0";
nvidiaBusId = "PCI:01:00:0";
};
# Cooling management
services.thermald.enable = lib.mkDefault true;
}
+20
View File
@@ -0,0 +1,20 @@
{ config, lib, pkgs, ... }:
{
imports = [
../.
../../../../common/cpu/amd
../../../../common/gpu/amd
];
boot.kernelParams = [
# With BIOS version 1.12 and the IOMMU enabled, the amdgpu driver
# either crashes or is not able to attach to the GPU depending on
# the kernel version. I've seen no issues with the IOMMU disabled.
#
# BIOS version 1.13 fixes the IOMMU issues, but we leave the IOMMU
# in software mode to avoid a sad experience for those people that drew
# the short straw when they bought their laptop.
"iommu=soft"
];
}
+15
View File
@@ -0,0 +1,15 @@
{ config, lib, pkgs, ... }:
{
imports = [
../.
../../../common/pc/laptop/ssd
../../../common/pc/laptop/acpi_call.nix
];
boot.kernelParams = [
# Force use of the thinkpad_acpi driver for backlight control.
# This allows the backlight save/load systemd service to work.
"acpi_backlight=native"
];
}
+10
View File
@@ -0,0 +1,10 @@
{ config, lib, pkgs, ... }:
{
imports = [
../.
../../../../common/cpu/intel
];
services.throttled.enable = lib.mkDefault true;
}
+6
View File
@@ -8,4 +8,10 @@
# see https://github.com/NixOS/nixpkgs/issues/69289
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.2") pkgs.linuxPackages_latest;
boot.kernelParams = [
# Force use of the thinkpad_acpi driver for backlight control.
# This allows the backlight save/load systemd service to work.
"acpi_backlight=native"
];
}
+1
View File
@@ -3,6 +3,7 @@
imports = [
../../../common/cpu/intel
../../../common/pc/laptop/acpi_call.nix
../../../common/pc/laptop/ssd
../.
];
+9
View File
@@ -0,0 +1,9 @@
{ nixos, lib, pkgs, config, stdenv, ... }:
{
imports = [
../.
../../yoga.nix
];
services.xserver.wacom.enable = lib.mkDefault config.services.xserver.enable;
}
+7 -7
View File
@@ -4,6 +4,7 @@
imports = [
../.
../../../../common/cpu/amd
../../../../common/gpu/amd
];
boot.kernelParams = [
@@ -11,13 +12,12 @@
# either crashes or is not able to attach to the GPU depending on
# the kernel version. I've seen no issues with the IOMMU disabled.
#
# BIOS version 1.13 claims to fix IOMMU issues, but we leave the
# IOMMU off to avoid a sad experience for those people that drew
# BIOS version 1.13 fixes the IOMMU issues, but we leave the IOMMU
# in software mode to avoid a sad experience for those people that drew
# the short straw when they bought their laptop.
"iommu=off"
#
# Do not set iommu=off, because this will cause the SD-Card reader
# driver to kernel panic.
"iommu=soft"
];
# As of writing this, Linux 5.8 is the oldest kernel that is still
# supported and has decent Renoir support.
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.8") pkgs.linuxPackages_latest;
}
+1
View File
@@ -3,6 +3,7 @@
{
imports = [
../.
../../../common/pc/laptop/ssd
../../../common/pc/laptop/acpi_call.nix
];
+7
View File
@@ -0,0 +1,7 @@
{ lib, pkgs, ... }:
{
# This can be removed when the default kernel is at least version 5.11 due to sof module
boot.kernelPackages = lib.mkIf
(lib.versionOlder pkgs.linux.version "5.11")
(lib.mkDefault pkgs.linuxPackages_latest);
}
+7
View File
@@ -0,0 +1,7 @@
{
imports = [
../.
./audio.nix
./nvidia.nix
];
}
+13
View File
@@ -0,0 +1,13 @@
{ lib, pkgs, ... }:
{
hardware.nvidia.modesetting.enable = true;
hardware.opengl.driSupport32Bit = true;
hardware.opengl.enable = 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";
};
}
+19
View File
@@ -0,0 +1,19 @@
{
imports = [
../../../common/cpu/intel
# might need nvidia module but we don't know the PCI ids:
# https://github.com/NixOS/nixos-hardware/pull/274#discussion_r650483740
#../../../common/gpu/nvidia.nix
../../../common/pc/laptop/acpi_call.nix
../../../common/pc/laptop/ssd
];
# Need to set Thunderbolt to "BIOS Assist Mode"
# https://forums.lenovo.com/t5/Other-Linux-Discussions/T480-CPU-temperature-and-fan-speed-under-linux/m-p/4114832
boot.kernelParams = [ "acpi_backlight=native" ];
# Emulate mouse wheel on trackpoint
# hardware.trackpoint.emulateWheel = true;
services.fprintd.enable = true;
}
+20
View File
@@ -0,0 +1,20 @@
{ config, lib, pkgs, ... }:
{
imports = [
../../../../../common/pc/laptop/acpi_call.nix
];
# For suspending to RAM, set Config -> Power -> Sleep State to "Linux" in EFI.
# amdgpu.backlight=0 makes the backlight work
# acpi_backlight=none allows the backlight save/load systemd service to work.
boot.kernelParams = ["amdgpu.backlight=0" "acpi_backlight=none"];
# Wifi support
hardware.firmware = [ pkgs.rtw89-firmware ];
# For mainline support of rtw89 wireless networking
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.16") pkgs.linuxPackages_latest;
}
@@ -0,0 +1,6 @@
{ config, lib, pkgs, ... }:
{
# For mainline support of rtw89 wireless networking
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.16") pkgs.linuxPackages_latest;
}
+74
View File
@@ -0,0 +1,74 @@
{ lib, config, ... }: {
imports = [
../../../common/gpu/nvidia.nix
../../../common/cpu/intel
../../../common/pc/laptop/acpi_call.nix
../.
];
hardware = {
nvidia = {
prime = {
intelBusId = lib.mkDefault "PCI:0:2:0";
nvidiaBusId = lib.mkDefault "PCI:1:0:0";
};
};
# is this too much? It's convenient for Steam.
opengl = {
driSupport = lib.mkDefault true;
driSupport32Bit = lib.mkDefault true;
};
};
# required to make wireless work
hardware.enableAllFirmware = lib.mkDefault true;
# fix suspend/resume screen corruption in sync mode
hardware.nvidia.powerManagement =
lib.mkIf config.hardware.nvidia.prime.sync.enable {
enable = lib.mkDefault true;
};
# fix screen tearing in sync mode
hardware.nvidia.modesetting =
lib.mkIf config.hardware.nvidia.prime.sync.enable {
enable = lib.mkDefault true;
};
# Make the DPI the same in sync mode as in offload mode (disabled because
# these thinkpads come with many kinds of screens, but this is valid for the
# 1920x1080 ones)
#services.xserver.dpi = 96;
# throttled vs. thermald
# -----------------------
#
# NB: the p53 profile currently uses throttled to prevent too-eager CPU
# throttling. I understand throttled to have been a workaround solution at
# the time the p53 profile was created (throttled's original name was
# "lenovo_fix"). thermald would have been preferred if it worked at the
# time.
#
# I read
# https://wiki.archlinux.org/title/Lenovo_ThinkPad_X1_Carbon_(Gen_6)#Power_management.2FThrottling_issues
# as saying that thermald is fixed under the circumstance that led to the
# development of throttled given version 5.12+ of the kernel combined
# with version 2.4.3+ of thermald. At the time of this writing, the
# stable NixOS kernel is 5.15 and 2.4.9 of thermald.
#
# In the meantime, I also ran the "s-tui" program which can stress test the
# system, while eyeing up the core temps and CPU frequency under three
# scenarios: under thermald, under throttled, and with neither. None of the
# scenarios seem to have massively improved fan behavior, core temps, or
# average CPU frequency than another. The highest core temp always seems to
# hover around 90 degrees C, the lowest CPU Ghz around 3.4 on a 3.8Ghz machine.
#
# I ended up choosing throttled because subjectively, the fans seem quieter
# when it's stressed and it allows the average temps to get a degree or two
# higher when running throttled than when running in the other two scenarios,
# but still substantially under critical temp.
services.throttled.enable = lib.mkDefault true;
}
+78
View File
@@ -0,0 +1,78 @@
{ config, lib, ... }: {
imports = [
../../../common/gpu/nvidia.nix
../../../common/cpu/intel
../../../common/cpu/intel/kaby-lake
../../../common/pc/laptop/acpi_call.nix
../.
];
hardware = {
nvidia = {
prime = {
intelBusId = lib.mkDefault "PCI:0:2:0";
nvidiaBusId = lib.mkDefault "PCI:1:0:0";
};
};
# is this too much? It's convenient for Steam.
opengl = {
driSupport = lib.mkDefault true;
driSupport32Bit = lib.mkDefault true;
};
};
# required to make wireless work
hardware.enableAllFirmware = lib.mkDefault true;
# fix suspend/resume screen corruption in sync mode
hardware.nvidia.powerManagement =
lib.mkIf config.hardware.nvidia.prime.sync.enable {
enable = lib.mkDefault true;
};
# fix screen tearing in sync mode
hardware.nvidia.modesetting =
lib.mkIf config.hardware.nvidia.prime.sync.enable {
enable = lib.mkDefault true;
};
# Make the DPI the same in sync mode as in offload mode (disabled because
# these thinkpads come with many kinds of screens, but this is valid for the
# 1920x1080 ones)
#services.xserver.dpi = 96;
# silence ACPI "errors" at boot shown before NixOS stage 1 output (default is 4)
#boot.consoleLogLevel = 3;
# throttled vs. thermald
# -----------------------
#
# NB: the p53 profile currently uses throttled to prevent too-eager CPU
# throttling. I understand throttled to have been a workaround solution at
# the time the p53 profile was created (throttled's original name was
# "lenovo_fix"). thermald would have been preferred if it worked at the
# time.
#
# I read
# https://wiki.archlinux.org/title/Lenovo_ThinkPad_X1_Carbon_(Gen_6)#Power_management.2FThrottling_issues
# as saying that thermald is fixed under the circumstance that led to the
# development of throttled given version 5.12+ of the kernel combined
# with version 2.4.3+ of thermald. At the time of this writing, the
# stable NixOS kernel is 5.15 and 2.4.9 of thermald.
#
# In the meantime, I also ran the "s-tui" program which can stress test the
# system, while eyeing up the core temps and CPU frequency under three
# scenarios: under thermald, under throttled, and with neither. None of the
# scenarios seem to have massively improved fan behavior, core temps, or
# average CPU frequency than another. The highest core temp always seems to
# hover around 90 degrees C, the lowest CPU Ghz around 3.4 on a 3.8Ghz machine.
#
# I ended up choosing throttled because subjectively, the fans seem quieter
# when it's stressed and it allows the average temps to get a degree or two
# higher when running throttled than when running in the other two scenarios,
# but still substantially under critical temp.
services.throttled.enable = lib.mkDefault true;
}
+76
View File
@@ -0,0 +1,76 @@
{ lib, config, ... }: {
imports = [
../../../common/gpu/nvidia.nix
../../../common/cpu/intel
../../../common/pc/laptop/acpi_call.nix
../.
];
hardware = {
nvidia = {
prime = {
intelBusId = lib.mkDefault "PCI:0:2:0";
nvidiaBusId = lib.mkDefault "PCI:1:0:0";
};
};
# is this too much? It's convenient for Steam.
opengl = {
driSupport = lib.mkDefault true;
driSupport32Bit = lib.mkDefault true;
};
};
# required to make wireless work
hardware.enableAllFirmware = lib.mkDefault true;
# fix suspend/resume screen corruption in sync mode
hardware.nvidia.powerManagement =
lib.mkIf config.hardware.nvidia.prime.sync.enable {
enable = lib.mkDefault true;
};
# fix screen tearing in sync mode
hardware.nvidia.modesetting =
lib.mkIf config.hardware.nvidia.prime.sync.enable {
enable = lib.mkDefault true;
};
# Make the DPI the same in sync mode as in offload mode (disabled because
# these thinkpads come with many kinds of screens, but this is valid for the
# 1920x1080 ones)
#services.xserver.dpi = 96;
# silence ACPI "errors" at boot shown before NixOS stage 1 output (default is 4)
#boot.consoleLogLevel = 3;
# throttled vs. thermald
# -----------------------
#
# NB: the p53 profile currently uses throttled to prevent too-eager CPU
# throttling. I understand throttled to have been a workaround solution at
# the time the p53 profile was created (throttled's original name was
# "lenovo_fix"). thermald would have been preferred if it worked at the
# time.
#
# I read
# https://wiki.archlinux.org/title/Lenovo_ThinkPad_X1_Carbon_(Gen_6)#Power_management.2FThrottling_issues
# as saying that thermald is fixed under the circumstance that led to the
# development of throttled given version 5.12+ of the kernel combined
# with version 2.4.3+ of thermald. At the time of this writing, the
# stable NixOS kernel is 5.15 and 2.4.9 of thermald.
#
# In the meantime, I also ran the "s-tui" program which can stress test the
# system, while eyeing up the core temps and CPU frequency under three
# scenarios: under thermald, under throttled, and with neither. None of the
# scenarios seem to have massively improved fan behavior, core temps, or
# average CPU frequency than another. The highest core temp always seems to
# hover around 90 degrees C, the lowest CPU Ghz around 3.4 on a 3.8Ghz machine.
#
# I ended up choosing throttled because subjectively, the fans seem quieter
# when it's stressed and it allows the average temps to get a degree or two
# higher when running throttled than when running in the other two scenarios,
# but still substantially under critical temp.
services.throttled.enable = lib.mkDefault true;
}
-1
View File
@@ -1 +0,0 @@
t14s/
+12
View File
@@ -0,0 +1,12 @@
{ config, lib, pkgs, ... }:
{
imports = [
../.
../../../../common/cpu/amd
../../../../common/gpu/amd
];
# For support of newer AMD GPUs, backlight and internal microphone
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.8") pkgs.linuxPackages_latest;
}
+8
View File
@@ -0,0 +1,8 @@
{ config, lib, pkgs, ... }:
{
imports = [
../.
];
}
+10
View File
@@ -0,0 +1,10 @@
{ config, lib, pkgs, ... }:
{
imports = [
../.
];
# For support of MEDIATEK Corp. Device 7961 wireless network controller, see https://lwn.net/Articles/843303/
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.12") pkgs.linuxPackages_latest;
}
+11
View File
@@ -0,0 +1,11 @@
{ config, lib, pkgs, ... }:
{
imports = [
../.
];
# For the Qualcomm NFA-725A (Device 1103) wireless network controller
# See https://bugzilla.redhat.com/show_bug.cgi?id=2047878
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.16") pkgs.linuxPackages_latest;
}
Loaded 100 of 169 files, more files were not shown because too many files have changed in this diff. Show more