Compare commits

...
Author SHA1 Message Date
Domen Kožar 305bbc2442 tinkpad t14s amd: enable deep sleep 2022-09-13 12:16:46 +01: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
Domen Kožar 936e464909 Merge pull request #261 from samueldr/feature/rpi-4-overlays
raspberry-pi/4: Add modesetting option
2021-05-13 10:04:36 +02:00
Samuel Dionne-Riel 38af9c5048 raspberry-pi/4: Add modesetting option 2021-05-12 21:00:19 -04:00
Domen Kožar 9e58ee154c Merge pull request #256 from domenkozar/rpi4
Add Raspberry Pi 4
2021-05-12 21:52:24 +02:00
Domen KožarandJörg Thalheim bd06334074 rpi4: don't override sane default for nix.buildCores
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2021-05-12 21:42:30 +02:00
Domen Kožar 2b4ed534a8 rpi4: remove loader.raspberryPi as it's legacy 2021-05-12 14:37:30 +02:00
Domen Kožar cdaf66c0a0 rpi4: remove cma 2021-05-12 14:19:27 +02:00
Vincent Gatine 72d7bb9434 add gpd-micropc 2021-05-11 16:28:15 +02:00
Domen Kožar b72c683304 Add Rpi4 2021-05-11 15:53:04 +02:00
Domen Kožar 02f067b234 Merge pull request #257 from kfiz/macbook-pro-12-1-path-fix
apple/macbook-pro/12-1/default.nix: Fixed impure <nixpkgs> import.
2021-05-11 15:51:51 +02:00
Doro Rose 52060c81af apple/macbook-pro/12-1/default.nix: Fixed impure <nixpkgs> import. 2021-05-11 10:31:41 +02:00
Domen Kožar 68babad7f9 Merge pull request #253 from NixOS/thinkpad-x13
add lenovo-thinkpad-x13
2021-05-10 15:28:16 +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
Jörg Thalheim da67c36853 add lenovo-thinkpad-x13 2021-05-01 08:29:22 +02:00
Jörg Thalheim f7540d6c27 Merge pull request #251 from NixOS/dell
dell-xps-15-7590: remove 20.03 compat
2021-04-25 08:48:49 +01:00
Jörg Thalheim 09febc71c1 dell-xps-15-7590: remove 20.03 compat 2021-04-25 07:03:51 +02:00
Jörg Thalheim 241d8300b2 Merge pull request #250 from earldouglas/thinkpad/x200s
Add a profile for the Thinkpad X200s
2021-04-21 04:33:29 +01:00
James Earl Douglas 00b40b766f Add a profile for the Thinkpad X200s 2021-04-20 19:50:55 -07:00
Jörg Thalheim 590bdcacd5 Merge pull request #249 from earldouglas/t460
Add a profile for the Thinkpad T460
2021-04-20 19:56:13 +01:00
James Earl Douglas dbbd0d4093 Add a profile for the Thinkpad T460 2021-04-20 05:27:36 -07:00
Jörg Thalheim 267d8b2d7f Merge pull request #241 from j0hax/amd-gpus
Add profiles for AMD GPUs
2021-04-14 15:26:21 +01:00
Johannes Arnold 40ddf363c2 Document driver choice 2021-04-14 16:18:05 +02:00
Jörg Thalheim 7c00c8b5ca Merge pull request #242 from diogox/patch-1
Add Lenovo X1 Extreme Gen2 Module
2021-04-06 07:34:55 +01:00
Jörg Thalheim 3ef0c9521c Merge pull request #245 from NomisIV/patch-1
Add default lenovo-thinkpad-x1 config to flake.nix
2021-04-06 07:34:30 +01:00
Jörg Thalheim eb9d3e7df1 Merge pull request #244 from NixOS/SuperSandro2000-patch-1
Remove usage of stdenv.lib
2021-04-06 07:32:55 +01:00
Jörg Thalheim 085790185c Merge pull request #246 from NixOS/dependabot/github_actions/cachix/install-nix-action-v13
build(deps): bump cachix/install-nix-action from v12 to v13
2021-04-05 08:39:49 +01:00
dependabot[bot] 5bf5dee4f5 build(deps): bump cachix/install-nix-action from v12 to v13
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from v12 to v13.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v12...8d6d5e949675fbadb765c6b1a975047fa5f09b27)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-05 06:22:25 +00:00
NomisIV 3714e747c1 Add default lenovo-thinkpad-x1 config to flake.nix 2021-04-04 23:30:24 +02:00
Sandro bbb03cc6fe Remove usage of stdenv.lib 2021-04-01 21:24:49 +02:00
diogox c52f18ba51 Add Lenovo X1 Extreme Gen2 Module 2021-03-26 10:42:26 +00:00
Johannes Arnold f2b2ae018d AMD: add configurations for graphics cards 2021-03-24 02:18:03 +01:00
Jörg Thalheim 758bc63af2 Merge pull request #186 from khumba/system76 2021-03-23 09:57:23 +00:00
Jörg Thalheim 681ffa8a8c Merge pull request #227 from winterqt/surface-control 2021-03-23 08:05:13 +00:00
Winter 6075b4d856 fix import 2021-03-22 16:48:20 -04:00
GürkanandJörg Thalheim 6406b7ae3f Add MSI GS60 2QE (#224)
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2021-03-21 15:28:09 +00:00
Winter bf19677a5f nixfmt 2021-03-17 15:46:55 -04:00
Winter 007f1d8a07 Merge branch 'master' into surface-control 2021-03-17 15:45:28 -04:00
Winter d3cd9a2229 microsoft-surface: add surface-control 2021-03-14 22:11:17 -04:00
Jörg Thalheim 31f61b90dd Merge pull request #230 from mexisme/microsoft/surface/firmware-surface-go 2021-03-13 16:14:14 +00:00
mexisme 055971b825 Merge branch 'up/master' into microsoft/surface/firmware-surface-go 2021-03-13 08:23:20 +13:00
Jörg Thalheim 831de9cac9 Merge pull request #236 from pmeiyu/master
ThinkPad X270: Disable Panel Self Refresh
2021-03-09 09:16:23 +00:00
Peng Mei Yu cca70642e8 ThinkPad X270: Disable Panel Self Refresh. 2021-03-09 13:41:09 +08:00
mexisme bfbb77e8f1 Use fetchFromGitHub instead of fetchgit 2021-03-06 22:48:50 +13:00
mexisme 523d8efb5d Should have used HTTP instead of SSH 2021-03-06 22:24:34 +13:00
mexisme 91162d3f17 Merge branch 'up/master' into microsoft/surface/firmware-surface-go 2021-03-06 22:18:02 +13:00
Jörg Thalheim 720d531b1c Merge pull request #235 from mexisme/microsoft/surface/kernel/update-5.10.19 2021-03-06 08:31:16 +00:00
mexisme 94f7c2cb9c Mark as done 2021-03-06 20:56:06 +13:00
mexisme 920bffdfbc Disable some modules that aren't yet fully supported by the patches 2021-03-06 17:58:57 +13:00
mexisme be4115ae23 Update the module options 2021-03-06 17:49:59 +13:00
mexisme 61210f5e44 Update to kernel 5.10.19
- Add kernel 5.10.19 and latest linux-surface patches
- Remove kernel 5.10.2

commit 7250b8cbb4
Author: mexisme <wildjim+dev@kiwinet.org>
Date:   Fri Feb 5 08:38:10 2021 +1300

commit 90b210dfee
Author: mexisme <wildjim+dev@kiwinet.org>
Date:   Fri Feb 5 08:37:41 2021 +1300

commit bbb5dec0e3
Author: mexisme <wildjim+dev@kiwinet.org>
Date:   Tue Feb 2 23:58:51 2021 +1300

commit bde79616d2
Author: mexisme <wildjim+dev@kiwinet.org>
Date:   Tue Feb 2 23:58:35 2021 +1300

commit be5b9c91ac
Author: mexisme <wildjim+dev@kiwinet.org>
Date:   Tue Feb 2 23:57:54 2021 +1300
2021-03-06 17:37:13 +13:00
mexisme 6f392a3ffb Merge branch 'up/master' into microsoft/surface/firmware-surface-go 2021-03-06 15:40:10 +13:00
mexisme 98d19435d0 Rename cfg option from "enable" --> "replace"
- Allows for @qzed's kernel patch: https://github.com/linux-surface/kernel/commit/22ef83836c4aa89e9eb98de9b47ed24b6c2a1d45
2021-03-06 15:38:17 +13:00
mexisme 128b64dada Relative path of repos not updated correctly 2021-03-06 11:28:12 +13:00
mexisme 6972d78ffb Remove (obsolete) Surface Go QCA6174 K1535 firmware binary 2021-03-06 11:07:43 +13:00
mexisme e274b742e1 Use the ath10k QCA6174 K1535 firmware backup repo, instead 2021-03-05 08:33:27 +13:00
Jörg Thalheim 3caaa0588e Merge pull request #233 from thiagokokada/add-nvidia-disable-profile
Add nvidia-disable profile
2021-03-03 17:35:12 +00:00
Thiago Kenji Okada 36094450fd Add nvidia-disable profile
This is already used in XPS 15-9560, but instead of defining it in XPS
15-9560 let's create a separate profile and expose it for those who want
to disable their NVIDIA GPU.
2021-02-28 13:51:46 -03:00
Jörg Thalheim c9b965a43e Merge pull request #207 from mitchmindtree/xps-9310 2021-02-27 21:10:57 +00:00
mitchmindtree c41f572654 Dell XPS 13 to flake.nix 2021-02-27 19:58:57 +01:00
mitchmindtree f361f64db0 Remove no-longer-necessary modprobe config for audio. Fixes microphone.
It seems that `sof-firmware` has since been updated and the
`extraModprobeConfig` is no longer necessary! Microphone input also now
seems to work nicely.
2021-02-27 12:54:54 +01:00
mitchmindtree d1e64db4c5 Enable QCA6390 bluetooth
Adds a patch for missing kernel configuration along with a list of
kernel modules that are missing by default.
2021-02-27 12:36:44 +01:00
mexisme 4f6aad61b6 Update linux-surface/linux-surface Rev & SHA256 2021-02-27 22:41:53 +13:00
mexisme 9e7cd653f9 Fix repo source for K1535 2021-02-27 22:37:38 +13:00
mexisme 311c6bf0ef Ref to backup repo for Surface Go firmware 2021-02-27 22:37:38 +13:00
mexisme e901e80233 Remove obsolete repo ref 2021-02-27 22:37:38 +13:00
mexisme 4bbf156238 Update README 2021-02-27 22:37:38 +13:00
mitchmindtree 0359644c22 Pin to Linux 5.10.18 for patches. Remove upstreamed wi-fi firmware.
Pin to the latest stable 5.10.18 release in order to ensure patches
don't unexpectedly conflict in newer linux versions.

The wi-fi firmware has since been upstreamed to the `linux-firmware`
repo, and as such is now available via `enableRedistributableFirmware`.
As a result we can remove the old expr that pulled the firmware from
kvalo's github.

Also removes two patches that have since been upstreamed.
2021-02-26 12:43:00 +01:00
mitchmindtree cc5d84ccef Update to rebased patches for 5.10 release of kernel
Removes the old disable-mhi-2 patch file in favour of using the patch at
kernel.org.

Also adds fwupd to allow users to update their firmware via fwupdmgr.
2021-02-26 12:43:00 +01:00
mitchmindtree 08d1c4dd2b Add wink patch for disabling MHI M2 state. Rename firmware.
Disabling the MHI M2 state appears to completely resolve issues where
enabling the wifi firmware would cause the the whole system to freeze
quite frequently. The reason for why this fix works so well is still
unknown and under investigation. See some discussion here:

http://lists.infradead.org/pipermail/ath11k/2020-December/000876.html

Also renames the firmware package to clarify that it is for the wifi
driver. This is to avoid confusion with the bluetooth firmware which
will be added in an upcoming patch.
2021-02-26 12:43:00 +01:00
mitchmindtree 7f1da4009b Add wink patch for IRQ locking 2021-02-26 12:43:00 +01:00
mitchmindtree 154350aa04 Use fetchpatch. Fix kernel version. Add recent ath11k patches. 2021-02-26 12:43:00 +01:00
mitchmindtree cdea79566b Use fetchFromGitHub to retrieve qca6390 fw more efficiently
Addresses @terinjokes comment [here][1].

[1]: https://github.com/NixOS/nixos-hardware/pull/207/files/906cd8b20cad90a9da37fae5c17527b9ae4e3c42#pullrequestreview-542698197
2021-02-26 12:43:00 +01:00
mitchmindtree b60b1f95eb Remove explicit sof-firmware as is already included
Previously, I'd added both the firmware and the `extraModprobeConfig`
that selects the DSP driver, however it seems only the latter is
necessary.

Addresses @terinjokes comment [here][1].

[1]: https://github.com/NixOS/nixos-hardware/pull/207/files#r534062750
2021-02-26 12:43:00 +01:00
mitchmindtree f0486916bf Add a new suite of ath11k patches recommended by kvalo
Here's a link to kvalo's branch with the kernel patches:

https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/log/?h=ath11k-qca6390-bringup

> In this tag there's now a brand new implementation for suspend, which
> relies that the platform provides power to QCA6390 during suspend. Not
> all platforms do, but most of them should do that. ath11k also prints a
> warning whenever it notices that the firmware has crashed, but I'm not
> sure yet if it (the MHI subsystem to be exact) can detect every case.
>
> The MSI patch is mostly the same, it had just some refactoring since the
> last version. Unfortunately there's no solution still for the weird
> crashes some people are seeing.

The patches are based on version 5.10-rc4 of linux, so you'll want to
use `linuxPackages_testing`.
2021-02-26 12:43:00 +01:00
mitchmindtree b23e492fe5 Add entry for Dell XPS 13 9310 to README 2021-02-26 12:43:00 +01:00
mitchmindtree 3345b81777 Install qca6390 firmware necessary for ax500 connectivity chip 2021-02-26 12:43:00 +01:00
mitchmindtree bcbbd2bd72 Blacklist pmouse as trackpad works over i2c 2021-02-26 12:43:00 +01:00
mitchmindtree 631011a23c Add necessary fw and alsa conf for audio. Add patch for AX500. 2021-02-26 12:43:00 +01:00
mitchmindtree 86d77642bd Add xps 13 9310 with common intel and laptop imports 2021-02-26 12:43:00 +01:00
mexisme f8c3b6e50e Move a modprobe option for Surface Go Wifi device (ath10k) into that specific derivative 2021-02-23 17:59:34 +13:00
mexisme eb2721b3f1 A few more details about using K1535 WiFi firmware 2021-02-23 17:48:50 +13:00
mexisme a9b2d0e3f1 Update to a clearer directory-structure 2021-02-23 12:40:08 +13:00
mexisme 56f4b2df00 Add MS Surface Range to the README.md 2021-02-23 08:28:27 +13:00
mexisme 77aa0ff827 Merge branch 'master' of github.com:NixOS/nixos-hardware into microsoft/surface/firmware-surface-go 2021-02-23 08:24:07 +13:00
Jörg Thalheim 115770eed0 Merge pull request #232 from malteneuss/patch-1
Fix link to flake file in README flake example
2021-02-16 05:38:26 +00:00
malteneuss 0e2334c531 Fix link to flake file in README flake example 2021-02-13 20:59:31 +01:00
John Ericson 0cb5491af9 Merge pull request #220 from NixOS/dell-xps-9550-nvidia
Copy NVidia 9500 NVidia settings for 9550
2021-02-10 13:17:02 -05:00
mexisme be2f416029 Update TODO.org 2021-02-09 17:19:58 +13:00
mexisme 72002dabdc Update README.md 2021-02-09 17:17:27 +13:00
John Ericson a989fd823e Mention Dell 9550 NVidia in Read Me and flake.nix 2021-02-08 18:25:17 -05:00
John Ericson b22284989a Merge remote-tracking branch 'origin/master' into dell-xps-9550-nvidia 2021-02-08 18:23:20 -05:00
mexisme 08076a7b73 Add initial metadata attribute for the additional source 2021-02-07 15:53:09 +13:00
mexisme f9378480c0 Fix the output hash for the additional source 2021-02-07 15:52:22 +13:00
mexisme 080c44106f A temporary hack to install the Surface Go firmware 2021-02-07 13:31:26 +13:00
Jörg Thalheim 3657e7c334 Merge pull request #229 from tfc/add-lenovo-x13-yoga
Add Lenovo X13 Yoga Gen 1
2021-02-06 20:42:53 +00:00
Jacek Galowicz f59106598e Add Lenovo X13 Yoga Gen 1 2021-02-06 18:33:03 +01:00
mexisme 9a35571829 Interim version of trying to update Surface Go Wifi in-place
- Can't seem to d/l the K1535 board firmware directly from Killer Networking?
2021-02-07 00:55:27 +13:00
WinterandJörg Thalheim d6a1231181 Add the Microsoft Surface configuration to flakes.nix (#226)
Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
2021-02-02 21:21:59 +00:00
mexisme a0d8383c42 Port of linux-surface/linux-surface Kernel patches to NixOS (#221) 2021-01-23 06:36:37 +00:00
Jörg Thalheim 874830945a Merge pull request #223 from will-clarke/patch-1
Update flake.nix
2021-01-12 05:46:13 +00:00
William Clarke f0719aa6d1 Update flake.nix
I think there may have been a typo - it makes more sense to me to name macbook pro with `pro`. 🤷 😃
2021-01-11 20:39:04 +00:00
Jörg Thalheim fb1682bab4 Merge pull request #222 from Mic92/fix-ci
raspberry-2: remove console.extraTTYs
2021-01-06 06:53:13 +00:00
Jörg Thalheim fd89332b4a raspberry-2: remove console.extraTTYs
This option is no longer needed. Also remove boot.extraTTYs since
NixOS is older than 20.03 is no longer supported.
2021-01-06 07:42:50 +01:00
John Ericson 6484d285c5 Copy NVidia 9500 NVidia settings for 9550 2020-12-28 19:46:47 -05:00
Jörg Thalheim c242378e63 Merge pull request #218 from yorickvP/master 2020-12-25 17:46:30 +00:00
Yorick van Pelt 1ea590a853 dell/xps/9360: drop <20.03 support 2020-12-21 16:10:28 +01:00
Yorick van Pelt 0a0e0a2e49 dell/xps/9360: drop qca6174 firmware
This was used because the firmware in linux-firmware was outdated.
It should not be after a year.
2020-12-21 16:04:41 +01:00
Jörg Thalheim 87522b29a2 Merge pull request #217 from blitz/l14-amd
lenovo/thinkpad/l14/amd: update iommu comment
2020-12-06 11:28:23 +00:00
Julian Stecklina dc5fa221b2 lenovo/thinkpad/l14/amd: update iommu comment 2020-12-05 14:02:07 +01:00
Jörg Thalheim 025c7a2a7e Merge pull request #216 from erdnaxe/master
dell/g3/3779: init
2020-12-01 17:17:15 +00:00
Alexandre Iooss 060c89b69f dell/g3/3779: init
Add support for the Dell G3 3779.
2020-12-01 15:19:30 +01:00
Jörg Thalheim 6531786e2d Merge pull request #215 from sevenfourk/patch-5
apple/macbook-pro/12-1: brcmfmac: mention resume issue
2020-12-01 13:09:14 +00:00
Ivan Kovnatsky b371da6e8d apple/macbook-pro/12-1: brcmfmac: mention resume issue 2020-12-01 14:42:01 +02:00
Ivan KovnatskyandJörg Thalheim 34c1bf11bb apple/macbook-pro/12-1: PM: set cpuFreqGovernor and power Up/Down commands (#214)
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2020-12-01 08:57:29 +00:00
Jörg Thalheim abfae8841b Merge pull request #212 from bbigras/patch-1
flake.nix: add dell-xps-13-9343
2020-11-26 09:33:49 +01:00
Bruno Bigras 0db1582e2a flake.nix: add dell-xps-13-9343 2020-11-26 02:58:02 -05:00
Jörg Thalheim 21ed8edd62 Merge pull request #213 from NixOS/dependabot/github_actions/cachix/install-nix-action-v12 2020-11-26 08:46:57 +01:00
Jörg Thalheim e64aafa1ff set nixpkgs to unstable 2020-11-26 08:34:03 +01:00
dependabot[bot] 1a2c40134f build(deps): bump cachix/install-nix-action from v10 to v12
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from v10 to v12.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v10...07da2520eebede906fbeefa9dd0a2b635323909d)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-26 07:32:06 +00:00
Jörg Thalheim 08d900d475 add dependabot 2020-11-26 08:31:05 +01:00
Jörg Thalheim 40ade7c034 Merge pull request #206 from sevenfourk/master 2020-11-05 11:19:39 +01:00
Ivan Kovnatsky 25c35ed7b7 lenovo/thinkpad/t14: added desc to README.md and flake.nix 2020-11-05 11:39:23 +02:00
Ivan Kovnatsky 8b04c30d8b lenovo/thinkpad/t14: created symlink to t14s/ 2020-11-04 13:16:12 +02:00
Jörg Thalheim 1b4ce6426f Merge pull request #202 from sevenfourk/patch-3 2020-11-03 09:36:17 +01:00
Ivan Kovnatsky 6a0f1a9e84 macbook: add README.md to describe switching Cmd and Alt/AltGr 2020-11-03 10:19:25 +02:00
Jörg Thalheim 26e9c94511 Merge pull request #204 from oxzi/x260-i915
lenovo/thinkpad/x260: i915.enable_psr=0 parameter
2020-11-03 08:53:36 +01:00
Jörg Thalheim 2a9ea518bd Merge pull request #203 from oxzi/x260-tlp
lenovo/thinkpad/x260: use services.tlp.settings
2020-11-03 08:53:05 +01:00
Alvar Penning fd644de340 lenovo/thinkpad/x260: i915.enable_psr=0 parameter
The video driver causes short freezes from time to time, especially if
an external monitor is attached. Adding the i915.enable_psr=0 kernel
parameter mitigates those freezes.

This is a known problem for the X260, as mentioned in the Arch Wiki. It
occurred mainly after switching to kernel version five.
2020-10-31 16:11:04 +01:00
Alvar Penning de6811f14d lenovo/thinkpad/x260: use services.tlp.settings
With switching from NixOS 20.03 to 20.09, the services.tlp.extraConfig
option became deprecated and was replaced by services.tlp.settings.

The ThinkPad X260 is only device within nixos-hardware which makes use
of this configuration.
2020-10-31 15:59:40 +01:00
sevenfourk d2ac7fb650 macbook: added option for swapped cmd and opt
https://wiki.archlinux.org/index.php/Apple_Keyboard#Switching_Cmd_and_Alt/AltGr
2020-10-31 12:06:55 +02:00
Jörg Thalheim 46a68df837 Merge pull request #199 from dadada/dadada/t14s 2020-10-29 19:21:30 +01:00
dadada 04c79afe1c t14s: add AMD Gen1 model
t14s: fix minimum required kernel version
2020-10-26 09:13:38 +01:00
dadada 81b5488961 t14s: add comment
Add commend about suspending to RAM and fingerprint sensor.
2020-10-26 01:07:23 +01:00
Jörg Thalheim 3cffbd5961 Merge pull request #198 from dadada/dadada/t14s
t14s: init
2020-10-25 21:18:32 +01:00
dadada 42ec21a27c t14s: init
Copied from t495.
2020-10-25 19:50:39 +01:00
Jörg Thalheim e8c5f886b0 Merge pull request #86 from yegortimoshenko/201810/ath3k
common/pc: disable ath3k if non-free firmware is not available
2020-10-20 06:37:54 +02:00
Jörg Thalheim 653f7ba3ca Merge pull request #196 from Mic92/eval-errors
raspberry-2: fix evaluation warning
2020-10-20 06:35:43 +02:00
Jörg Thalheim 770dbcdb49 Merge pull request #195 from candeira/thinkpad_x220_sandy-bridge 2020-10-20 06:35:01 +02:00
Jörg Thalheim 986f101a66 raspberry-2: fix evaluation warning 2020-10-20 06:25:14 +02:00
Jörg Thalheim b3827275b7 Merge pull request #194 from blitz/l14-amd
Add support for the Lenovo Thinkpad L14 (AMD) laptop
2020-10-15 02:12:51 +02:00
Julian Stecklina ccf7985cb3 lenovo/thinkpad/l14: init
Add support for the Lenovo Thinkpad L14 Gen 1 Intel and AMD variants.
2020-10-15 00:37:49 +02:00
Javier Candeira d43b95a86e Fix fetchGit instructions 2020-10-13 22:55:46 +11:00
Javier Candeira 7234b11dff Thinkpad x220 has Sandy Bridge CPU 2020-10-13 22:12:23 +11:00
Bryan Gardiner fdc0812787 system76: Remove kernel param ec_sys.write_support=1.
I don't think we need this in the generic configuration.  There is a call to
`modprobe ec_sys.write_support=1` in system76-driver, only for the airplane mode
daemon (which only applies to certain models, not including darp6), and the
driver executes the modprobe call anyhow.

Also the kernel's documentation for the parameter says:

    write_support:Dangerous, reboot and removal of battery may be needed. (bool)

So let's only enable this where it's required.
2020-10-12 18:06:11 -07:00
Bryan Gardiner d86324ba69 system76: Update configs to use the module from Nixpkgs. 2020-10-12 18:06:03 -07:00
Jörg Thalheim 55acbf7497 Merge pull request #192 from hoppla20/master 2020-10-12 04:53:07 +02:00
hoppla20 9d36eb67f2 Update default.nix 2020-10-01 07:54:29 +02:00
Vincent Cui f3eb1498e9 Added e470 to flake.nix and changing contributing section in README.md 2020-09-27 17:21:23 +02:00
Vincent Cui b175484c5a fix lenovo thinkpad e470 2020-09-23 20:08:23 +02:00
Vincent Cui 9bc1f316a6 add lenovo thinkpad e470 2020-09-23 08:06:47 +02:00
Vincent Cui 338792821a add e470 configuration 2020-09-23 08:01:20 +02:00
Jörg Thalheim 684eaddf74 Merge pull request #190 from marius851000/common
permit to access config in common/ via the flake
2020-09-13 19:43:52 +02:00
marius david 4e3aa0b6ce added access to common/ via flake.nix 2020-09-13 16:35:01 +02:00
Bryan Gardiner 602f9d86c6 Add options for applying the darp6 headset fixup. 2020-09-12 22:33:04 -07:00
Bryan Gardiner 0c5f176147 Add support for System76 hardware, specifically the Darter Pro 6.
This relies on new `system76`, `system76-acpi`, and `system76-io`
packages in `linuxPackages` in Nixpkgs.
2020-09-03 19:03:10 -07:00
Jörg Thalheim f2b06f530e Merge pull request #188 from symphorien/precision5530
add dell precision 5530
2020-08-30 19:15:25 +01:00
Symphorien Gibol 31f1498247 add dell precision 5530 2020-08-30 12:00:00 +00:00
Jörg Thalheim 984c72f653 Merge pull request #185 from Mic92/asus-fx504gd
Asus TUF FX504GD
2020-08-13 22:10:46 +01:00
ImExtends c75ebd4129 Add Asus TUF FX504GD 2020-08-13 21:43:19 +01:00
Jörg Thalheim 741b3ba508 lenovo/thinkpad/x1/7th-gen: fix evaluation 2020-08-13 15:01:48 +02:00
Jörg Thalheim 55f9eb6a73 Merge pull request #178 from bahaynes/master 2020-07-30 05:47:09 +01:00
bahaynes cc72f59d5a Removed tlp configuration.
Should be set correctly after https://github.com/NixOS/nixpkgs/pull/94064
is merged.
2020-07-29 20:51:08 -04:00
Jörg Thalheim b5a87414c6 Merge pull request #181 from Mic92/fetchgit 2020-07-28 10:06:37 +01:00
Jörg Thalheim eb070c346b README.md: document fetchgit
fixes #65
2020-07-28 09:56:17 +01:00
Jörg Thalheim ad72510a2b Merge pull request #180 from afreakk/master 2020-07-28 07:59:45 +01:00
bahaynes d56b2e96a6 Updated default (non-NVIDIA) config.
Removed xps-common, and migrated it to default.nix.
2020-07-27 13:00:20 -04:00
BenandJörg Thalheim 8e984dc856 Update dell/xps/15-9500/default.nix
Update intel drivers to default (Modesetting).

Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2020-07-27 10:11:53 -04:00
afreakk 823f0bc77f dell/xps/13-9360: conflicting font fix 2020-07-26 12:59:49 +02:00
bahaynes b7a5f1188f Moved NVIDIA config to common, and updated README. 2020-07-25 23:53:47 -04:00
bahaynes 6ffcdbacc5 Added dell xps 15-9500, with nvidia gpu. 2020-07-23 13:03:50 -04:00
Jörg Thalheim cc353d439e Merge pull request #176 from Mic92/flakes
add flake support
2020-07-06 16:22:31 +01:00
Jörg Thalheim 618819cc49 add flake support 2020-07-06 14:49:08 +01:00
Jörg Thalheim 62f453938f Merge pull request #174 from bbigras/9343
add xps 13 (9343)
2020-07-06 14:28:22 +01:00
Bruno Bigras 1ab852b88e add xps 13 (9343) 2020-07-05 10:46:39 -04:00
Jörg Thalheim 841caf7d20 Merge pull request #175 from Mic92/dell-fixes
dell/xps/13-7390: wifi fixes
2020-06-24 20:16:02 +01:00
Jörg Thalheim 5faf94b86f dell/xps/13-7390: wifi fixes 2020-06-23 20:12:57 +01:00
Jörg Thalheim a78b8b6476 Merge pull request #172 from Mic92/readme 2020-06-21 14:35:19 +01:00
Jörg Thalheim 6efc6af71a README.md: fix librem link 2020-06-21 14:32:53 +01:00
Jörg Thalheim 80a32af201 replace travis with github action
This way we get the latest nix.
2020-06-21 14:24:28 +01:00
Jörg Thalheim 373856f3e1 README: list is complete now 2020-06-21 09:14:32 +01:00
Jörg Thalheim 9146011f0b README.md: update description of the project 2020-06-21 08:50:28 +01:00
Jörg Thalheim 2f2c2d9ef5 Merge pull request #169 from erikarvstedt/improve-laptop-preset 2020-05-20 15:35:48 +01:00
Jörg Thalheim 385c5ba916 Merge pull request #168 from Mic92/tests 2020-05-20 15:34:34 +01:00
Erik Arvstedt 90868c67e8 pc/laptop: remove redundant cpuFreqGovernor setting
This setting has been part of NixOS since version 16.09
2020-05-20 16:29:50 +02:00
Jörg Thalheim a13d00bd7c tests: hide evaluation command behind verbose flag 2020-05-18 11:38:36 +01:00
Jörg Thalheim 4b129a0f71 fix toshiba/swanky evaluation (#167) 2020-05-18 11:27:18 +01:00
Jörg Thalheim 75a850cb3e Merge pull request #166 from Mic92/cleanup-readme 2020-05-17 16:00:13 +01:00
Jörg Thalheim eae378658f Merge pull request #164 from phunehehe/x1 2020-05-17 15:59:34 +01:00
Hoang Xuan Phu 8c320bbc8a lenovo/thinkpad/x1/7th-gen: init 2020-05-17 09:22:51 -04:00
Jörg Thalheim 744d5561be README.md: add missing link 2020-05-17 08:07:37 +01:00
Jörg Thalheim 718eaeed75 Merge pull request #165 from Mic92/quiet-tests 2020-05-17 08:02:22 +01:00
Jörg Thalheim 5f830cf8fc make tests less verbose 2020-05-17 07:56:56 +01:00
Jörg Thalheim a36f343222 Merge pull request #163 from 00-matt/dell-xps-13-9360/consolefont 2020-05-15 07:43:50 +01:00
Matthew Smith 69b9bdd53a dell/xps/13-9360: Stop using i18n.consoleFont
trace: warning: The option `i18n.consoleFont' defined in
`/nix/var/nix/profiles/per-user/root/channels/nixos-hardware/dell/xps/13-9360'
has been renamed to `console.font'.
2020-05-14 22:55:22 +01:00
Jörg Thalheim 8e8e65ba45 Merge pull request #161 from alyssais/pixelbook 2020-05-07 17:41:06 +01:00
Alyssa Ross 16cdc10b48 google/pixelbook: init 2020-05-07 15:26:58 +00:00
Jörg Thalheim 565f837027 Merge pull request #131 from asymmetric/imd 2020-05-07 13:21:57 +01:00
Matthias Beyer 130560e553 Add InfinityBook v4 (#159) 2020-05-05 23:20:10 +01:00
Jörg Thalheim 4ef357fe8b Merge pull request #158 from ehmry/master 2020-05-05 12:47:32 +01:00
Emery Hemingway d7d897fe24 New dell/latitude/3480
The touchpad is painful to use unless the "psmouse" kernel module
is disabled.
2020-05-05 01:24:25 +05:30
Jörg Thalheim d928c96e3c Merge pull request #156 from delan/patch-1 2020-04-24 10:35:50 +01:00
Delan Azabani 7efd48f100 README: fix nix-channel --update command
Following the current instructions yields these errors for some reason:

```
$ sudo nixos-rebuild switch
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos' does not exist, ignoring
error: file 'nixpkgs/nixos' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:13
building Nix...
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos' does not exist, ignoring
error: file 'nixpkgs/nixos' was not found in the Nix search path (add it using $NIX_PATH or -I)
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos' does not exist, ignoring
error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos' does not exist, ignoring
error: file 'nixpkgs/nixos/modules/installer/tools/nix-fallback-paths.nix' was not found in the Nix search path (add it using $NIX_PATH or -I)
/tmp/nixos-rebuild.vs4JVw/nix
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos' does not exist, ignoring
error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)
building the system configuration...
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos' does not exist, ignoring
error: file 'nixpkgs/nixos' was not found in the Nix search path (add it using $NIX_PATH or -I)
```
2020-04-24 18:36:40 +10:00
Wout Mertens bb1a8b78ba wiki syntax 2020-04-23 10:53:17 +02:00
Wout Mertens c8e3843b0a 7390: clarify intent 2020-04-23 10:52:16 +02:00
Jörg Thalheim c71abe67b9 Merge pull request #155 from Mic92/remove-thresholds 2020-04-21 21:11:45 +01:00
Jörg Thalheim 41d2c3322b Revert "Change TLP charge thresholds"
This reverts commit 76f681355c.

This setting is opinionated and should be left to the user.
See: https://github.com/NixOS/nixos-hardware/pull/154#issuecomment-617181517
2020-04-21 21:10:18 +01:00
Jörg Thalheim 16336614d3 Merge pull request #154 from j0hax/x230-tlp-thresholds 2020-04-21 11:48:33 +01:00
j0hax 76f681355c Change TLP charge thresholds 2020-04-21 03:47:11 +02:00
Jörg Thalheim e58c64a03c Merge pull request #153 from DamienCassou/fix-t460s
Improve support for t460s
2020-04-15 09:06:43 +01:00
Damien Cassou 157ae443af lenovo/thinkpad/t460s: Add missing acpi_call module
This is required by tlp for battery management.
2020-04-14 22:54:52 +02:00
Damien Cassou 0ef7d22b6c lenovo/thinkpad/t460s: Remove problematic options
See there links for details:

https://github.com/NixOS/nixos-hardware/pull/134#pullrequestreview-336181593
https://github.com/NixOS/nixos-hardware/pull/134#discussion_r361146814
2020-04-14 22:54:31 +02:00
Jörg Thalheim edb7199b5c Merge pull request #152 from ngiger/librem15v3
Added Librem15v3
2020-03-26 16:45:57 +00:00
Niklaus Giger 12bb72aa6b Create separate directories for librem 13v3 and 15v3 2020-03-26 17:43:33 +01:00
Niklaus Giger 9238b5f06e Automatically lock the desktop when removing the librem key 2020-03-23 20:21:11 +01:00
Niklaus Giger c6722b86bf Document librem laptop 15v3 2020-03-23 20:19:54 +01:00
Jörg Thalheim f4364f2457 Merge pull request #150 from danderson/master
thinkpad/t495: fix backlight save/load and and battery conditioning.
2020-03-15 18:37:21 +00:00
David Anderson 03dedf4cfd thinkpad/t495: fix backlight save/load and and battery conditioning.
Saving/loading the backlight state requires the acpi_backlight=native
kernel parameter.

acpi_call is required by TLP to get access to battery conditioning
information from the firmware.

Signed-off-by: David Anderson <dave@natulte.net>
2020-03-14 20:57:22 -07:00
Jörg Thalheim 9f6d639110 Merge pull request #149 from danderson/master
lenovo/thinkpad/t495: init from e495.
2020-03-12 09:12:30 +00:00
David Anderson 3d983701f9 lenovo/thinkpad/t495: init from e495.
The E495 and T495 are based on the same core Ryzen platform, so the
E495 tweaks apply similarly to the T495.

Tested on my own T495, works well.
2020-03-11 09:34:12 -07:00
Jörg Thalheim 62d7c2eddf Merge pull request #147 from Mic92/fix-travis
travis: parallelize evaluation and limit RAM usage
2020-03-11 09:46:57 +00:00
Jörg Thalheim 62a1812f3c Update README.wiki 2020-03-03 17:31:54 +00:00
Jörg Thalheim 9c952961f1 Add parallel test runner
The new test runner will evaluate all test profiles from the README.md
in parallel in separate nix-build processes.
Since we do not load all processes into one process,
this also helps saving memory.
2020-02-23 21:29:22 +00:00
Jörg Thalheim 5904e7605c Merge pull request #139 from danielstaleiny/master
Adding Dell XPS 15 9560
2020-02-18 13:52:09 +00:00
Daniel Rafaj 26454a206d add xps 9560 root readme to be able to easily find 2020-02-18 13:25:25 +01:00
Daniel Rafaj 8b50556e2d Add xps 9560 with its own quirks, I added versions:
1 default one, with nvidia working and intel working, needs optirun to
run application with nvidia
2 intel only, I am using this as my daily driver for long time, only
intel is turned on and nvidia is turned off and doesn't drain any
power.
3 nvidia only, intel is dissabled and nvidia is picked as default gpu,
no need to fiddle with optirun etc, good for gpu heavy application.

All these settings needs to reboot to work properly
2020-02-18 13:25:25 +01:00
Rebecca Turner 74efa57ee4 Support NixOS 19.09 for <dell/xps/15-7590> (#141)
Virtual console options were renamed in 20.03; use `console.earlySetup`
or `boot.earlyVconsoleSetup` depending on OS version.

https://github.com/NixOS/nixos-hardware/pull/114#discussion_r374953204
2020-02-18 11:13:15 +00:00
Jörg Thalheim 7accb4efab Merge pull request #143 from Mic92/xps-15-7590
xps/15-7590: don't enable unfree firmware by default
2020-02-17 10:54:44 +00:00
Jörg Thalheim 9506048413 Merge pull request #146 from Mic92/e495
thinkpad/e495: fix evaluation
2020-02-12 10:58:44 +00:00
Jörg Thalheim f5a4954ca3 thinkpad/e495: fix evaluation
fixes #145
2020-02-12 10:57:40 +00:00
Jörg Thalheim 859cd11263 Merge pull request #144 from Luis-Hebendanz/master
Added profile for issues 69289
2020-02-12 10:06:38 +00:00
Luis Hebendanz 6c7550d0b4 Added entry Thnikpad E495 to README 2020-02-12 10:56:49 +01:00
Luis HebendanzandJörg Thalheim f6e2381344 Update lenovo/thinkpad/e495/default.nix
Co-Authored-By: Jörg Thalheim <Mic92@users.noreply.github.com>
2020-02-12 10:52:49 +01:00
Luis Hebendanz d75b12a962 Added profile for issues 69289 2020-02-11 19:42:02 +01:00
Jörg Thalheim 6f502bc6e6 Merge pull request #138 from rummik/add-lenovo-thinkpad-l13
Add Lenovo ThinkPad L13 profile
2020-02-09 09:09:19 +00:00
Jörg Thalheim 67814a0d5c Merge pull request #142 from 9999years/7590
Add Dell XPS 15-7590 suggested options
2020-02-09 08:47:08 +00:00
Jörg Thalheim 6587634ad8 xps/15-7590: don't enable unfree firmware by default
Also don't set nixpkgs.pkgs. Instead just add an overlay.
2020-02-09 08:40:38 +00:00
Rebecca Turner 521f680999 Add Dell XPS 15-7590 suggested options
These suggested options are taken from my configuration but aren't quite
universal enough to be enabled by default.
2020-02-07 09:55:01 -05:00
Jörg Thalheim 2ab4e61b32 Revert "xps-15-7590: convert wiki to markdown."
This reverts commit 77983d16f6.

apparently github can link to wiki text fine.
2020-02-04 12:04:56 +00:00
Jörg Thalheim 4e19a42bd2 dell-xps-15-7590: fix README link 2020-02-04 12:03:13 +00:00
Jörg Thalheim 77983d16f6 xps-15-7590: convert wiki to markdown.
This allows it to symlink it in the README
2020-02-04 12:00:38 +00:00
Jörg Thalheim 5758237cbc README.md: link to dell xps 15-7590 2020-02-04 11:53:51 +00:00
Jörg Thalheim cc7140b4bf Merge pull request #114 from tomberek/master
Initial 15-7590
2020-02-04 11:52:02 +00:00
Tom Bereknyei 22a16c801c Apply suggestions from 9999years 2020-02-01 21:12:29 -05:00
Tom Bereknyei 3f1a5617bf Make note about EFI and remove 5.1 kernel hardcode 2020-02-01 20:49:06 -05:00
tomberekandJörg Thalheim f128fbbdd6 Update dell/xps/15-7590/README.wiki
Co-Authored-By: Jörg Thalheim <Mic92@users.noreply.github.com>
2020-02-01 20:49:06 -05:00
Tom Bereknyei 53ca456f60 Suggested fixes 2020-02-01 20:49:06 -05:00
Tom Bereknyei 64afb7c12d Wifi fixed by removing iwlwifi-cc-a0-48.ucode 2020-02-01 20:49:06 -05:00
Tom Bereknyei 814bd1a024 Initial 15-7590 2020-02-01 20:49:06 -05:00
*Kim Zick c30e20594b Update README.md 2020-01-07 10:04:52 -05:00
*Kim Zick (rummik) 6081bfd6d5 Add Lenovo ThinkPad L13 profile 2020-01-02 11:35:56 -05:00
Jörg Thalheim 89c4ddb0e6 Merge pull request #137 from mishudark/x280
Add Lenovo ThinkPad X280 profile
2019-12-31 16:15:24 +00:00
mishudark 1d746f2298 Add Lenovo ThinkPad X280 profile 2019-12-31 15:38:59 +01:00
Alexander Berlind c3b2ac63ff Add deepsleep to avoid wakeups during sleep mode (#136) 2019-12-28 09:50:04 +00:00
ilian adecd1113c apple: Add support for MacBook Air 3,X (#91) 2019-11-12 10:36:10 +00:00
Lorenzo Manacorda 19b4d5cede intel: add intel-media-driver
Provides hardware accelerated video playback from Broadwell onwards.
2019-11-11 20:39:59 +01:00
Oleksii Filonenko 5575153e2d Add Lenovo ThinkPad T420 profile 2019-11-02 14:35:47 +01:00
Alexander Berlind 5316e919c8 Add Dell XPS-7390 Profile (#128) 2019-10-30 19:15:22 +00:00
Domen Kožar c0182a0698 Merge pull request #127 from NixOS/dell-thermald
dell/xps: enable thermald service
2019-10-27 09:15:06 +01:00
Samuel Leathers 4916acd221 dell/xps: enable thermald service 2019-10-27 09:02:50 +01:00
Jörg Thalheim 1ea7efa262 Merge pull request #115 from michaelpj/imp/throttled
Replace ad hoc throttling fix with throttled
2019-10-21 14:52:29 +01:00
Michael Peyton Jones 2bf94227c1 Replace ad hoc throttling fix with throttled
`throttled` is a service designed to fix the same CPU throttling bug,
but it's an actively maintainted upstream project that we can use.
2019-10-16 22:31:05 +01:00
*Kim Zick ed0d3cc198 Initial p53 hardware configuration (#125) 2019-10-16 19:25:20 +01:00
Jörg Thalheim 77f581a4b5 Merge pull request #126 from adamse/patch-2
Fix readme markdown syntax
2019-10-16 18:34:44 +01:00
Adam Sandberg Eriksson d942730634 Fix readme markdown syntax 2019-10-16 15:05:55 +01:00
Jörg Thalheim ea09bae153 Add Dell E7240 Profile (#122)
Add Dell E7240 Profile
2019-10-09 15:18:55 +01:00
Jörg Thalheim 05e63ee072 Merge branch 'master' into add-e7240 2019-10-09 15:12:00 +01:00
Jörg Thalheim f08177ef66 Merge pull request #123 from rycee/thinkpad-x1-extreme-gen2
thinkpad/x1-extreme/gen2: add module
2019-10-09 15:10:11 +01:00
Robin Gloster 91eba96d66 Merge pull request #124 from exi/master
match specifically on the sound chip
2019-10-06 15:13:58 +02:00
Reno Reckling b60ea643a4 match specifically on the sound chip 2019-10-04 19:27:28 +02:00
Robert Helgesson de600352bc thinkpad/x1-extreme/gen2: add module 2019-09-29 00:17:13 +02:00
Ashley Gillman 26bbc980b9 Add Dell E7240 Profile
(Current XPS 15 works well)
2019-09-27 10:22:47 +01:00
Jörg Thalheim 0435629061 Merge pull request #119 from SRGOM/patch-1
Update README.md
2019-09-06 09:23:54 +01:00
Jörg Thalheim 2db2362e8f Merge pull request #120 from rycee/x250/acpi_call
thinkpad/x250: add acpi_call
2019-09-06 09:23:26 +01:00
Robert Helgesson 83ca0c4e6b thinkpad/x250: add acpi_call
This kernel module is needed to, for example, support tlp's

  - `START_CHARGE_THRESH_BAT?` and
  - `STOP_CHARGE_THRESH_BAT?`

options.
2019-09-04 22:46:49 +02:00
Robin Gloster 4ffa2ed198 Merge pull request #117 from Ma27/thinkpad-trackpoint-fixes
thinkpad: minor trackpoint fixes
2019-09-03 20:31:44 +02:00
Robin Gloster 6016f29d62 Merge pull request #118 from exi/master
Add better pulseaudio support for thinkpad t490
2019-09-03 20:30:53 +02:00
Reno Reckling 5932cef1b9 update readme for T490 2019-09-03 20:09:29 +02:00
SRGOM e338e4ee16 Update README.md
At first (till third glance) I thought only the listed profiles are supported
2019-09-03 00:47:25 -06:00
Reno Reckling 9e7fffdd5b Add better pulseaudio support for thinkpad t490 2019-09-02 19:11:30 +02:00
Maximilian Bosch abca8d0180 thinkpad/x1/6th-gen: fix trackpoint name
Newer ThinkPads have a new name for the Trackpoint - "TPPS/2 Elan TrackPoint".

Having the "[...] IBM Trackpoint" as default caused some weird
side-effects on my machine (e.g. stopped the trackpoint working after a
suspend) with the wrong name. Although this is mentioned in the option's
description[1], I think that this should be declared explicitly here.

As soon, as we supported newer models as well[2], we should probably
move this into its own common profile.

[1] https://nixos.org/nixos/options.html#hardware.trackpoint.device
[2] https://certification.ubuntu.com/catalog/component/input/5313/input%3ATPPS/2ElanTrackPoint/
2019-09-01 18:00:21 +02:00
Maximilian Bosch 4c8b4cf54f thinkpad: emulate wheel for a trackpoint by default
Most trackpoint users I know use the middle-button to have some
scrolling functionality. So I think that for ThinkPads at least we
should have this enabled by default if the trackpoint shall be used.
2019-09-01 17:59:17 +02:00
Jörg Thalheim 03db9669a6 Merge pull request #111 from NixOS/cleanup-swanky
toshiba/swanky: switch to default kernels
2019-07-26 07:22:19 +01:00
Yegor Timoshenko 34f24f2480 Merge pull request #116 from NixOS/fstrim
enable fstrim on SSDs
2019-07-24 12:42:37 +03:00
Jörg Thalheim e1a10b1536 enable fstrim on SSDs
This will run TRIM once a week using a systemd timer. Running TRIM regularly
will improves the performance and increases the SSDs lifespan. Since it is based
on the utillinux no additional package is required.
2019-07-23 09:04:03 +01:00
Jörg Thalheim 54268d11ae Specify a correct unit description (#112)
Specify a correct unit description
2019-07-05 09:10:57 +01:00
Victor Nawothnig 1d9358a8cf Specify a correct unit description 2019-07-04 16:59:11 +02:00
Jörg Thalheim f870de5eae toshiba/swanky: switch to default kernels
Both unstable and 19.03 come with 4.19+ kernels
making this option obsolete.
2019-07-02 10:49:23 +01:00
Jörg Thalheim 79e188ac6b Merge pull request #110 from NixOS/xps-13
dell/xps/13-9380: also import intel profile
2019-07-01 22:34:41 +01:00
Jörg Thalheim 2691961397 dell/xps/13-9380: mention fwupd 2019-07-01 10:37:13 +01:00
Jörg Thalheim 83c44abc3f dell/xps/13-9380: also import intel profile 2019-07-01 10:15:35 +01:00
Jörg Thalheim 59c97be4d0 Merge pull request #106 from jnetod/master
t430: add acpi_call module
2019-05-13 06:31:08 +01:00
Jörg Thalheim e585114348 Merge pull request #107 from JorisE/master
Added basic support for the t470s
2019-05-13 06:30:01 +01:00
Joris Engbers a5db2c9eaf Add basic support for the thinkpad t470s 2019-05-08 23:52:27 +02:00
Joris Engbers 127dbfd849 Add thinkpad 480s to list of profiles. 2019-05-08 23:34:21 +02:00
José Neto a8ea967866 t430: add acpi_call module 2019-05-04 15:04:05 -03:00
Stanislas 1e4abf794a README: Add Dell XPS 13 9360 profile (#104)
And reorder other XPS 13.
2019-04-26 19:43:47 +02:00
Jörg Thalheim 0dd12e05e5 Merge pull request #103 from tomfitzhenry/patch-1
pcengines/apu: expose GRUB over serial
2019-03-25 21:05:18 +00:00
Tom F a23235a6ed pcengines/apu: expose GRUB over serial
Prior to this commit, an apu's boot would go through stages of varying visibility:
1. BIOS: exposed to serial
2. GRUB: not exposed to serial
3. Linux: exposed to serial

This commit changes (2) to be visible over serial, so the entire boot is visible over serial.

Tested on nixos 18.09 on a https://www.pcengines.ch/apu1d.htm
2019-03-24 18:48:11 +11:00
Yegor Timoshenko a2e36c1b0c Merge pull request #100 from eyJhb/lenovo-x1-thresh
lenovo-x1: removed battery TLP threshholds
2019-02-19 12:45:08 +03:00
eyjhbb@gmail.com 3dac9eae9a lenovo-x1: removed battery TLP threshholds 2019-02-19 09:56:32 +01:00
Wael Nasreddine 36d8bd88cd dell/xps/13-9380: init (#97)
This is pretty much a copy of XPS 9370, without kaby-laky and the throttle bug. I was getting lockups with the kaby-laky changes and the throttle bug did not seem to have an impact either way.
2019-02-08 08:20:06 -08:00
Yegor Timoshenko 2b8807f75b Merge pull request #95 from NixOS/nix-env-part2
add dummy default.nix
2019-01-18 17:56:39 +03:00
Jörg Thalheim 411e9e10b9 add dummy default.nix 2019-01-18 13:51:39 +00:00
Jörg Thalheim f0db394fbf Merge pull request #92 from NixOS/fix-nix-env
fix nix-env evaluation
2019-01-09 09:03:02 +01:00
Jörg Thalheim b4e2df6aac fix nix-env evaluation
nix-env picked up `default.nix`, which contained our hardware profiles.
This is not only cpu-intensive to evaluate but also fails because
it does some import-from-derivation.
By moving default.nix to release.nix it should be no longer loaded
2019-01-04 08:48:42 +01:00
Yegor Timoshenko a9033dcc5f Merge pull request #88 from bhipple/update/x1-carbon
lenovo x1 carbon gen6: update S3 suspend
2018-12-28 09:51:15 +03:00
Benjamin Hipple bd1ef85b98 lenovo x1 carbon gen6: update S3 suspend
With UEFI >= 1.30, there's an explicit option to enable S3 power management.
Once this is selected, S3 is enabled and "deep" is selected as the default
/sys/power/mem_sleep value without requiring any kernel boot parameters.
2018-12-27 18:40:08 -05:00
Trolli Schmittlauch 1e2c130d38 add basic support for Lenovo Thinkpad T440s (#83)
This adds basic support for the Thinkpad T440s, based on the work done for the T440p. The expression enables:

- microcode updates
- trackpoint support
- kernel module for battery level management
2018-12-02 23:25:43 +00:00
Yegor Timoshenko 99cdc88306 Merge pull request #85 from NixOS/201810/microcode
common/cpu: default microcode updates to enableRedistributableFirmware
2018-10-31 10:28:40 +00:00
Yegor Timoshenko 3d337906f5 common/pc: disable ath3k if non-free firmware is not available 2018-10-30 19:40:51 +00:00
Yegor Timoshenko 1d254aceda common/cpu: default microcode updates to enableRedistributableFirmware 2018-10-30 18:16:36 +00:00
Jörg Thalheim 5c8cab8493 Merge pull request #82 from NixOS/travis-test-build
copy of #81
2018-10-23 10:40:47 +01:00
André-Patrick Bubel 941fbef86f move acpi_call.nix and cpu-throttling-bug.nix to common folder 2018-10-23 09:28:07 +01:00
André-Patrick Bubel d4a430fef2 CODEOWNERS: add moredread for Dell XPS 13 9370 2018-10-23 09:26:53 +01:00
André-Patrick Bubel 86cbb3256b dell/xps/13-9370: init 2018-10-23 09:26:53 +01:00
Jörg Thalheim 18a2d7a5e3 Merge pull request #80 from asymmetric/asymmetric/t450s
lenovo/thinkpad/t450s: init
2018-10-19 14:21:14 +01:00
Lorenzo Manacorda 78ea74365a lenovo/thinkpad/t450s: init 2018-10-19 14:55:47 +02:00
Yegor Timoshenko 78a1e6168f CODEOWNERS: add yegortimoshenko to three devices
- BeagleBoard PocketBeagle
- PC Engines APU
- Purism Librem 13v3
2018-10-12 13:18:03 +00:00
Yegor Timoshenko f78fd94f63 beagleboard/pocketbeagle: init 2018-10-12 13:17:02 +00:00
Jörg Thalheim b7185cd232 Merge pull request #76 from erictapen/t430-init
thinkpad: introduce t430
2018-09-04 20:16:15 +01:00
Justin Humm 142530bb88 README: add Lenovo Thinkpad T430 2018-09-04 20:43:16 +02:00
Justin Humm d5b0b9349f thinkpad: introduce t430
Copied everything from t440p, added a fix for the brightness keys
2018-09-04 20:42:09 +02:00
Jörg Thalheim 7fbb7d50a6 Merge pull request #70 from rvolosatovs/feature/x260
lenovo/thinkpad/x260: Init
2018-09-02 22:30:26 +01:00
Roman Volosatovs 6ed4feade2 lenovo/thinkpad/x260: Use med_power_with_dipm in TLP 2018-09-02 20:06:41 +02:00
Roman Volosatovs f37c5dfb9a lenovo/thinkpad/x260: Remove opinionated TLP config 2018-09-02 20:06:41 +02:00
Roman Volosatovs 0400c7e1dd README: Add Lenovo ThinkPad x260 2018-09-02 20:06:40 +02:00
Roman Volosatovs bdd79454ee default: Add Lenovo x260 2018-09-02 20:06:30 +02:00
Roman Volosatovs 6c55033883 lenovo/thinkpad/x260: Init 2018-09-02 20:06:30 +02:00
Yegor Timoshenko 55e7faf0cd Merge pull request #78 from azazel75/up
Fix unusable Lenovo Thinkpad X1 profile
2018-09-02 08:55:30 +00:00
Yegor Timoshenko 415f4f4747 ThinkPad X1 gen6 -> ThinkPad X1 (6th Gen) 2018-09-02 08:47:48 +00:00
Alberto Berti b9bdfee8c3 Fix table rendering. Add the target of the link to the X1 profile 2018-09-01 16:09:44 +02:00
Alberto Berti e785e2a3cb Unfortunately all the table has to be modified to have the changes rendered correctly 2018-09-01 16:04:47 +02:00
Alberto Berti 19553733f0 Add X1 profile to the README.md 2018-09-01 16:02:16 +02:00
Alberto Berti 9939e5b3a4 Fix acpi override load
As proposed by @garbas in #60
2018-09-01 15:34:06 +02:00
Alberto Berti 7f17d649cc Fix cpu-throttling service file reference 2018-09-01 15:33:27 +02:00
Jörg Thalheim 8fa41aff5b Merge pull request #77 from Mic92/imp/contributing-suggestions
[rebased from #67] Suggestions for CONTRIBUTING
2018-08-31 20:17:25 +01:00
Michael Peyton Jones e9d8b30995 Suggestions for CONTRIBUTING 2018-08-31 20:16:33 +01:00
Yegor Timoshenko cfc72f6c9b Merge pull request #75 from NixOS/20180825.135451/early-kms
cpu/intel: early KMS
2018-08-28 01:17:38 +03:00
Yegor Timoshenko 2526dcbe61 cpu/intel: early KMS 2018-08-25 13:55:35 +03:00
Yegor Timoshenko b10d7a40b8 LICENSE -> COPYING 2018-08-25 13:54:23 +03:00
Yegor Timoshenko 2ca9f58d7e Merge pull request #73 from NixOS/20180824.021016/swanky
Add Toshiba Chromebook 2 (swanky), Org -> Markdown
2018-08-24 18:58:18 +03:00
Yegor Timoshenko 23e4b913d3 toshiba/swanky: fix eval 2018-08-24 16:53:27 +03:00
Yegor Timoshenko 111d7e8138 Add toshiba-swanky to CI 2018-08-24 16:50:37 +03:00
Yegor Timoshenko 231323f697 CONTRIBUTING.org -> CONTRIBUTING.md 2018-08-24 14:16:24 +03:00
Yegor Timoshenko e1804a0fdc toshiba/swanky: reword guide 2018-08-24 14:16:24 +03:00
Yegor Timoshenko 631e81ce5e Toshiba Chromebook (swanky) -> Toshiba Chromebook 2 swanky 2018-08-24 14:16:24 +03:00
Yegor Timoshenko 80ad9d8b66 Add to README.md, redo the table in Markdown 2018-08-24 14:16:24 +03:00
Yegor Timoshenko 218ef7df3c Add Toshiba swanky along with documentation 2018-08-24 14:15:28 +03:00
Jörg Thalheim 7b8ca6d868 Merge pull request #71 from michaelpj/imp/t480s-throttling
T480s: use CPU throttling fix too
2018-08-23 10:28:43 +01:00
Jörg Thalheim 2ec8af3817 Merge pull request #72 from rehno-lindeque/apple/macbookpro/11-5/test
apple/macbookpro/11-5: Add to tests
2018-08-17 14:42:33 +01:00
Rehno Lindeque 4470239d63 apple/macbookpro/11-5: Add to tests 2018-08-15 19:19:44 -04:00
Michael Peyton Jones a633fa6f68 T480s: use CPU throttling fix too 2018-08-15 18:34:44 +01:00
Yegor Timoshenko d534770be7 intel: videoDrivers: intel -> modesetting (#57) 2018-08-04 16:59:08 +01:00
Jörg Thalheim 9af7afffeb Merge pull request #68 from rehno-lindeque/apple/macbookpro/11-5/init
apple/macbookpro/11-5: init
2018-07-30 23:53:52 +01:00
Rehno Lindeque a9f65b8896 apple/macbook-pro/11-5: Remove boot loader
Since the boot loader is already automatically generated by
nixos-generate-config, there is no need to include it here.
2018-07-30 17:55:13 -04:00
Rehno Lindeque 694fd85397 apple/macbookpro/11-5: Prevent intermittent xhci wakeup after suspend 2018-07-30 17:55:13 -04:00
Rehno Lindeque e31b175128 apple/macbook-pro/11-5: Change README to markdown
.wiki is just plain distracting to edit, markdown allows me to quickly write
up accompanying docs.
2018-07-30 17:55:13 -04:00
Rehno Lindeque ec4c3da289 apple/macbook-pro/11-5: Additional wiki resources
As suggested by issue #41.
2018-07-30 17:55:13 -04:00
Rehno Lindeque 93d292b830 apple/macbook-pro/11-5: init 2018-07-30 17:55:13 -04:00
Alberto Berti 56b7d7254f Link X1 6th gen to the README (#69) 2018-07-30 13:37:29 +01:00
Jörg Thalheim b4303dc68b Merge pull request #60 from azazel75/master
Add basic support for 6th-gen X1
2018-07-30 11:09:41 +01:00
Alberto Berti 4428c70b17 Enable powersave features when on battery (taken from #60) 2018-07-21 21:20:25 +02:00
Alberto Berti b84f46f208 Add missing pkgs parameter 2018-07-17 18:55:21 +02:00
Alberto Berti a3210f1d6b Fix typo 2018-07-17 17:53:53 +02:00
Alberto Berti 7a640afbb2 Add optional console font configuration to make it readable on QHD displays 2018-07-17 17:44:31 +02:00
Yegor Timoshenko 5561e7ab0b Merge pull request #66 from NixOS/fix-tests
Fix tests
2018-07-17 15:42:35 +03:00
Yegor Timoshenko 043605cfec Fix tests 2018-07-17 15:27:07 +03:00
Yegor Timoshenko 4b5093a316 Merge pull request #63 from boothead/patch-1
Add a note about rcu_sched problems
2018-07-13 12:17:01 +03:00
Ben Ford 8b463a3ca2 Add a link to the other forum thread I found 2018-07-13 09:49:39 +01:00
Ben Ford 212a5a7d7c Add a note about rcu_sched problems
How I fixed my XPS15 after it being dead for two months
2018-07-13 09:47:48 +01:00
Yegor Timoshenko 585a13d8b9 Add ThinkPad X270 profile 2018-06-21 16:20:57 +03:00
Yegor Timoshenko e30cdb1109 Add PC Engines APU to the table 2018-06-20 15:02:26 +03:00
Yegor Timoshenko 5a545d7145 Add Purism Librem 13v3 profile 2018-06-18 00:21:30 +03:00
Yegor Timoshenko 4d548d09cc Merge pull request #61 from michaelpj/imp/t480s
Add a basic t480s profile
2018-06-09 02:06:27 +03:00
Michael Peyton Jones c354d591a7 Add basic t480s profile 2018-06-08 23:54:34 +01:00
Michael Peyton Jones cbdcc55f37 Add acpi_call module 2018-06-08 23:54:25 +01:00
Alberto Berti 32a7893b8c Set a default to fix GTK/GNOME ui elements appareance 2018-06-03 01:55:59 +02:00
Alberto Berti b132065a43 Cosmetic 2018-06-03 01:33:37 +02:00
Alberto Berti b42212f6f0 Add a bit of documentation 2018-06-03 01:33:21 +02:00
Alberto Berti 179bcde845 Add stub for the S3 suspend state issue
See https://delta-xi.net/#056
2018-06-03 01:32:16 +02:00
Alberto Berti 654262071f Add the temporary fix for the cpu-throttling issue
See https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_X1_Carbon_(Gen_6)#Power_management.2FThrottling_issues
2018-06-03 01:31:17 +02:00
Alberto Berti 5dd535392d Move battery settings to the configuration for all the 6th gen models 2018-06-03 01:28:40 +02:00
Alberto Berti e0a8e01073 Give TLP more control over the battery and enable battery life saver parameters 2018-05-31 18:04:02 +02:00
Alberto Berti d0a8097eec Add basic support for 6th-gen X1 2018-05-31 15:56:43 +02:00
Yegor Timoshenko cfee9e13a5 Merge pull request #59 from yorickvP/patch-1
common/cpu/intel/kaby-lake: fix kernelParams -> boot.kernelParams
2018-05-23 18:46:27 +03:00
Yorick dd576672e7 common/cpu/intel/kaby-lake: fix kernelParams -> boot.kernelParams 2018-05-23 14:47:58 +02:00
Yegor Timoshenko 6ba1e22e3f qca6174-firmware: pin down commit 2018-05-15 23:25:30 +03:00
Yegor Timoshenko fbf167ed1e Merge pull request #58 from yorickvP/master
add XPS 13 (9360)
2018-05-15 19:56:14 +03:00
Yegor Timoshenko 0794564c45 dell/xps/13-9360: review 2018-05-15 19:54:45 +03:00
Yorick van Pelt b586e1051b add XPS 13 (9360) 2018-05-15 15:47:35 +02:00
Yegor Timoshenko b47ca3e377 pcengines/apu: init 2018-05-15 16:31:29 +03:00
226 changed files with 6217 additions and 1658 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
+6
View File
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
+15
View File
@@ -0,0 +1,15 @@
name: "Test"
on:
pull_request:
push:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v17
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Show nixpkgs version
run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'
- run: ./tests/run.py
-2
View File
@@ -1,2 +0,0 @@
language: nix
script: tests/eval.sh
+6
View File
@@ -1,2 +1,8 @@
beagleboard/pocketbeagle @yegortimoshenko
dell/xps/13-9370 @moredread
dell/xps/13-9380 @kalbasit
lenovo/thinkpad/x230 @makefu @yegortimoshenko
lenovo/thinkpad/x250 @Mic92
pcengines/apu @yegortimoshenko
purism/librem/13v3 @yegortimoshenko
system76/darp6 @khumba
+31
View File
@@ -0,0 +1,31 @@
# Writing profiles
When setting an option, use `lib.mkDefault` unless:
- The option *must* be set and the user should get an error if they try to override it.
- The setting should merge with the user's settings (typical for list or set options).
For example:
```nix
{ lib }: {
# Using mkDefault, because the user might want to disable tlp
services.tlp.enable = lib.mkDefault true;
# No need to use mkDefault, because the setting will merge with the user's setting
boot.kernelModules = [ "tmp_smapi" ];
}
```
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.
# 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.
# Testing
Because profiles can only be tested with the appropriate hardware, quality assurance is up to *you*.
-6
View File
@@ -1,6 +0,0 @@
Profiles should favor usability and stability, so performance hacks should be
activated by an additional NixOS option or conservative and performance configs
can be declared in separate profiles.
Because profiles can only be tested with the appropriate hardware, quality
assurance is up to *you*.
View File
File renamed without changes.
+197
View File
@@ -0,0 +1,197 @@
NixOS profiles to optimize settings for different hardware.
## Setup
### Using channels
Add and update `nixos-hardware` channel:
```
$ sudo nix-channel --add https://github.com/NixOS/nixos-hardware/archive/master.tar.gz nixos-hardware
$ sudo nix-channel --update
```
Then import an appropriate profile path from the table below. For example, to
enable ThinkPad X220 profile, your `imports` in `/etc/nixos/configuration.nix`
should look like:
```
imports = [
<nixos-hardware/lenovo/thinkpad/x220>
./hardware-configuration.nix
];
```
New updates to the expressions here will be fetched when you update the channel.
## Using nix flakes support
There is also experimental flake support. In your `/etc/nixos/flake.nix` add the following:
```nix
{
description = "NixOS configuration with flakes";
inputs.nixos-hardware.url = "github:NixOS/nixos-hardware/master";
outputs = { self, nixpkgs, nixos-hardware }: {
# replace <your-hostname> with your actual hostname
nixosConfigurations.<your-hostname> = nixpkgs.lib.nixosSystem {
# ...
modules = [
# ...
# add your model from this list: https://github.com/NixOS/nixos-hardware/blob/master/flake.nix
nixos-hardware.nixosModules.dell-xps-13-9380
];
};
};
}
```
### Using fetchGit
You can fetch the git repository directly:
```nix
imports = [
"${builtins.fetchGit { url = "https://github.com/NixOS/nixos-hardware.git"; }}/lenovo/thinkpad/x220"
];
```
Unlike the channel, this will update the git repository on a rebuild. However,
you can easily pin to a particular revision if you desire more stability.
## List of Profiles
See code for all available configurations.
| 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 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 17 9700, intel](dell/xps/15-9700/intel) | `<nixos-hardware/dell/xps/17-9700/intel` |
| [Dell XPS 17 9700, nvidia](dell/xps/15-9700/nvidia) | `<nixos-hardware/dell/xps/17-9700/nvidia>` |
| [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 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>` |
| [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 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 P1](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](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>` |
| [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>` |
## 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
-42
View File
@@ -1,42 +0,0 @@
NixOS profiles covering hardware quirks.
** Setup
Add and update ~nixos-hardware~ channel:
: $ sudo nix-channel --add https://github.com/NixOS/nixos-hardware/archive/master.tar.gz nixos-hardware
: $ sudo nix-channel --update nixos-hardware
Then import an appropriate profile path from the table below. For example, to
enable ThinkPad X220 profile, your ~imports~ in ~/etc/nixos/configuration.nix~
should look like:
: imports = [ <nixos-hardware/lenovo/thinkpad/x220> ./hardware-configuration.nix ];
** Profiles
|---------------------------+--------------------------------------------|
| Model | Path |
|---------------------------+--------------------------------------------|
| [[file:acer/aspire/4810t][Acer Aspire 4810T]] | ~<nixos-hardware/acer/aspire/4810t>~ |
| Airis N990 | ~<nixos-hardware/airis/n990>~ |
| Apple MacBook Air 4,X | ~<nixos-hardware/apple/macbook-air/4>~ |
| Apple MacBook Air 6,X | ~<nixos-hardware/apple/macbook-air/6>~ |
| [[file:apple/macbook-pro/10-1][Apple MacBook Pro 10,1]] | ~<nixos-hardware/apple/macbook-pro/10-1>~ |
| Apple MacBook Pro 12,1 | ~<nixos-hardware/apple/macbook-pro/12-1>~ |
| [[file:dell/xps/15-9550][Dell XPS 15 9550]] | ~<nixos-hardware/dell/xps/15-9550>~ |
| [[file:inversepath/usbarmory][Inverse Path USB armory]] | ~<nixos-hardware/inversepath/usbarmory>~ |
| Lenovo IdeaPad Z510 | ~<nixos-hardware/lenovo/ideapad/z510>~ |
| Lenovo ThinkPad T410 | ~<nixos-hardware/lenovo/thinkpad/t410>~ |
| Lenovo ThinkPad T440p | ~<nixos-hardware/lenovo/thinkpad/t440p>~ |
| Lenovo ThinkPad T460s | ~<nixos-hardware/lenovo/thinkpad/t460s>~ |
| Lenovo ThinkPad X140e | ~<nixos-hardware/lenovo/thinkpad/x140e>~ |
| Lenovo ThinkPad X220 | ~<nixos-hardware/lenovo/thinkpad/x220>~ |
| Lenovo ThinkPad X230 | ~<nixos-hardware/lenovo/thinkpad/x230>~ |
| Lenovo ThinkPad X250 | ~<nixos-hardware/lenovo/thinkpad/x250>~ |
| [[file:microsoft/surface-pro/3][Microsoft Surface Pro 3]] | ~<nixos-hardware/microsoft/surface-pro/3>~ |
| [[file:raspberry-pi/2][Raspberry Pi 2]] | ~<nixos-hardware/raspberry-pi/2>~ |
| [[file:samsung/np900x3c][Samsung Series 9 NP900X3C]] | ~<nixos-hardware/samsung/np900x3c>~ |
| Supermicro A1SRi-2758F | ~<nixos-hardware/supermicro/a1sri-2758f>~ |
| Supermicro X10SLL-F | ~<nixos-hardware/supermicro/x10sll-f>~ |
|---------------------------+--------------------------------------------|
+11
View File
@@ -0,0 +1,11 @@
## Switching Cmd and Alt/AltGr
This will switch the left Alt and Cmd key as well as the right Alt/AltGr and Cmd key.
```nix
boot.kernelParams = [
"hid_apple.swap_opt_cmd=1"
];
```
Reference: https://wiki.archlinux.org/index.php/Apple_Keyboard#Switching_Cmd_and_Alt/AltGr
+15
View File
@@ -0,0 +1,15 @@
{ config, lib, ... }:
{
imports = [
../../.
../../../common/pc/laptop
../../../common/pc/ssd
];
# Built-in iSight is recognized by the generic uvcvideo kernel module
hardware.facetimehd.enable = false;
hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
}
-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;
+70
View File
@@ -0,0 +1,70 @@
# Apple MacBook Pro 11,5
This configuration will **not** work with MacBook Pro 11,2 or 11,3 models.
## Notable features
* Prevent intermittent USB 3.0 controller wakeup signal when the lid is closed. Without this fix your laptop may get very hot and drain the battery after waking up in your laptop bag.
You can see for yourself which devices are allowed to wake up your laptop using the command:
```shell
cat /proc/acpi/wakeup
```
This fix works for Linux kernel 3.13 and above.
Sources:
* [Fix unwanted laptop resume after lid is closed](https://medium.com/@laurynas.karvelis_95228/install-arch-linux-on-macbook-pro-11-2-retina-install-guide-for-year-2017-2034ceed4cb2#66ba)
* [Arch wiki: MacBookPro11,x Suspend](https://wiki.archlinux.org/index.php/MacBookPro11,x#Suspend)
* [simonvandel/dotfiles (nix config)](https://github.com/simonvandel/dotfiles/blob/f254a4a607257faee295ce798ed215273c342850/nixos/vandel-macair/configuration.nix#L45)
## Graphics
The [MacBookPro11,4 and MacBookPro11,5](https://support.apple.com/kb/SP719) models ship with a discrete ATI/AMD graphics card (whereas MacBookPro11,2 and MacBookPro11,3 ship with NVidia cards). This is alongside the usual integrated Intel GPU.
To switch from the older `radeon` driver to the newer `amdgpu` driver (via experimental `si_support`), include `nixos-hardware.nixosModules.common-gpu-amd-southern-islands` (or `${nixos-hardware}/common/gpu/amd/southern-islands`) in your configuration. This will get you vulkan support among other benefits.
For example, in your `flake.nix`:
```nix
nixosConfigurations = {
macbook-pro-11-5 = lib.nixosSystem {
system = "x86_64-linux";
modules = [
nixos-hardware.nixosModules.apple-macbook-pro-11-5
nixos-hardware.nixosModules.common-gpu-amd-southern-islands
{
# Your personal configuration
}
];
};
};
```
## Power management
You may also wish to look into dynamic switching between integrated and discrete graphics, but this config doesn't currently attempt it.
See the removed [hardware.amdHybridGraphics.disable](https://github.com/NixOS/nixpkgs/pull/33915) option for an entry point.
## Hardware probes
Hardware probes generated with `nix run nixpkgs#hw-probe -- -all -upload`:
* Probe [#305905e674](https://linux-hardware.org/?probe=305905e674) of Apple MacBookPro11,5 (with `amdgpu` driver)
DRM (Direct Rendering Manager) snapshots generated with `drm_info -j | curl -d @- https://drmdb.emersion.fr/submit`:
* Snapshot [#e8f8076f1f1b](https://drmdb.emersion.fr/snapshots/e8f8076f1f1b) (with `amdgpu` driver)
## Additional resources
* Arch linux wiki: [MacBookPro11,x](https://wiki.archlinux.org/index.php/MacBookPro11,x)
* Kernel patches: [MacBookPro11,x](https://bugzilla.kernel.org/buglist.cgi?quicksearch=macbookpro11)
For more context about experimental `amdgpu` support, see:
* [Enabling AMDGPU by default for SI & CIK (November 2021)](https://gitlab.freedesktop.org/drm/amd/-/issues/1776)
* [Enabling AMDGPU by default for SI & CIK (August 2020))](https://lists.freedesktop.org/archives/amd-gfx/2020-August/052243.html)
* [Feature support matrix](https://wiki.gentoo.org/wiki/AMDGPU#Feature_support)
+24
View File
@@ -0,0 +1,24 @@
{ lib, config, pkgs, ... }:
let
kernelPackages = config.boot.kernelPackages;
in
{
imports = [
../.
../../../common/pc/laptop/ssd
];
# Enable broadcom-43xx firmware
hardware.enableRedistributableFirmware = lib.mkDefault true;
services.udev.extraRules =
# Disable XHC1 wakeup signal to avoid resume getting triggered some time
# after suspend. Reboot required for this to take effect.
lib.optionalString
(lib.versionAtLeast kernelPackages.kernel.version "3.13")
''SUBSYSTEM=="pci", KERNEL=="0000:00:14.0", ATTR{power/wakeup}="disabled"'';
}
+15
View File
@@ -0,0 +1,15 @@
# MacBook Pro 12,1
## Wireless won't get reconnected after resume/hibernate
The wifi driver is unloaded before suspend/hibernate to workaround driver issues.
This means it might be required to restart your wifi deamon i.e. wpa_supplicant:
```nix
powerManagement.powerUpCommands = ''
${pkgs.systemd}/bin/systemctl restart wpa_supplicant.service
'';
};
```
You can apply this to your network management software of choice.
+14 -2
View File
@@ -1,12 +1,24 @@
{ lib, ... }:
{ lib, pkgs, modulesPath, ... }:
{
imports = [
../.
../../../common/pc/laptop/ssd
<nixpkgs/nixos/modules/hardware/network/broadcom-43xx.nix>
"${modulesPath}/hardware/network/broadcom-43xx.nix"
];
powerManagement = {
# Enable gradually increasing/decreasing CPU frequency, rather than using
# "powersave", which would keep CPU frequency at 0.8GHz.
cpuFreqGovernor = lib.mkDefault "conservative";
# brcmfmac being loaded during hibernation would not let a successful resume
# https://bugzilla.kernel.org/show_bug.cgi?id=101681#c116.
# Also brcmfmac could randomly crash on resume from sleep.
powerUpCommands = lib.mkBefore "${pkgs.kmod}/bin/modprobe brcmfmac";
powerDownCommands = lib.mkBefore "${pkgs.kmod}/bin/rmmod brcmfmac";
};
# USB subsystem wakes up MBP right after suspend unless we disable it.
services.udev.extraRules = lib.mkDefault ''
SUBSYSTEM=="pci", KERNEL=="0000:00:14.0", ATTR{power/wakeup}="disabled"
+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'";
};
};
};
}
+10
View File
@@ -0,0 +1,10 @@
{ ... }:
{
imports = [
../../common/cpu/intel
../../common/pc/laptop
];
#Nouveau doesn't work at all on this model.
boot.kernelParams = [ "nouveau.modeset=0" ];
}
+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
'';
}
+10
View File
@@ -0,0 +1,10 @@
{ lib, ... }:
{
boot.kernelParams = [ "console=ttyO0,115200n8" ];
boot.loader = {
generic-extlinux-compatible.enable = lib.mkDefault true;
grub.enable = lib.mkDefault false;
};
}
+4 -1
View File
@@ -1,3 +1,6 @@
{ config, lib, ... }:
{
hardware.cpu.amd.updateMicrocode = true;
hardware.cpu.amd.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
}
+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;
}
+4 -8
View File
@@ -1,12 +1,8 @@
{ lib, pkgs, ... }:
{ config, lib, pkgs, ... }:
{
hardware.cpu.intel.updateMicrocode = lib.mkDefault true;
services.xserver.videoDrivers = [ "intel" ];
hardware.opengl.extraPackages = with pkgs; [
vaapiIntel
vaapiVdpau
libvdpau-va-gl
imports = [
./cpu-only.nix
../../gpu/intel.nix
];
}
+8
View File
@@ -0,0 +1,8 @@
{
imports = [ ../. ];
boot.kernelParams = [
"i915.enable_fbc=1"
"i915.enable_psr=2"
];
}
+23
View File
@@ -0,0 +1,23 @@
{ config, lib, pkgs, ... }:
{
boot.initrd.kernelModules = [ "amdgpu" ];
services.xserver.videoDrivers = [ "amdgpu" ];
hardware.opengl.extraPackages = with pkgs; [
rocm-opencl-icd
rocm-opencl-runtime
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";
}
+5
View File
@@ -0,0 +1,5 @@
{
imports = [ ../. ];
# Explicitly set amdgpu support in place of radeon
boot.kernelParams = [ "radeon.cik_support=0" "amdgpu.cik_support=1" ];
}
@@ -0,0 +1,5 @@
{
imports = [ ../. ];
# Explicitly set amdgpu support in place of radeon
boot.kernelParams = [ "radeon.si_support=0" "amdgpu.si_support=1" ];
}
+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
];
}
+9
View File
@@ -0,0 +1,9 @@
{ lib, pkgs, ... }:
{
# 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" ];
}
+26
View File
@@ -0,0 +1,26 @@
{ lib, pkgs, ... }:
# This creates a new 'nvidia-offload' program that runs the application passed to it on the GPU
# As per https://nixos.wiki/wiki/Nvidia
let
nvidia-offload = pkgs.writeShellScriptBin "nvidia-offload" ''
export __NV_PRIME_RENDER_OFFLOAD=1
export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export __VK_LAYER_NV_optimus=NVIDIA_only
exec "$@"
'';
in
{
services.xserver.videoDrivers = lib.mkDefault [ "nvidia" ];
environment.systemPackages = [ nvidia-offload ];
hardware.nvidia.prime = {
offload.enable = lib.mkDefault true;
# Hardware should specify the bus ID for intel/nvidia devices
};
hardware.opengl.extraPackages = with pkgs; [
vaapiVdpau
];
}
+5 -1
View File
@@ -1,5 +1,9 @@
{ lib, ... }:
{ config, lib, ... }:
{
boot.blacklistedKernelModules = lib.optionals (!config.hardware.enableRedistributableFirmware) [
"ath3k"
];
services.xserver.libinput.enable = lib.mkDefault true;
}
+1 -5
View File
@@ -1,7 +1,3 @@
{ lib, ... }:
{
boot.kernel.sysctl = {
"vm.swappiness" = lib.mkDefault 10;
};
}
{}
+10
View File
@@ -0,0 +1,10 @@
# acpi_call makes tlp work for newer thinkpads
{ config, ... }:
{
boot = {
kernelModules = [ "acpi_call" ];
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
};
}
+5 -7
View File
@@ -3,11 +3,9 @@
{
imports = [ ../. ];
# TODO: fix in NixOS/nixpkgs
# Disable governor set in hardware-configuration.nix,
# required when services.tlp.enable is true:
powerManagement.cpuFreqGovernor =
lib.mkIf config.services.tlp.enable (lib.mkForce null);
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);
}
+1 -3
View File
@@ -1,7 +1,5 @@
{ lib, ... }:
{
boot.kernel.sysctl = {
"vm.swappiness" = lib.mkDefault 1;
};
services.fstrim.enable = lib.mkDefault true;
}
+3 -1
View File
@@ -1 +1,3 @@
{ ... }: {}
# This file is necessary so nix-env -qa does not break,
# when nixos-hardware is used as a channel
{}
+8
View File
@@ -0,0 +1,8 @@
On some kernel versions user ashgillman has experiences suspend issues
(see https://bugzilla.redhat.com/show_bug.cgi?id=1597481).
Try:
```nix
boot.kernelPackages = pkgs.linuxPackages_4_14;
```
+8
View File
@@ -0,0 +1,8 @@
{ lib, pkgs, ... }:
{
imports = [
../../common/cpu/intel
../../common/pc/laptop
];
}
+24
View File
@@ -0,0 +1,24 @@
{ 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:0:2:0";
nvidiaBusId = "PCI:1:0:0";
};
# Cooling management
services.thermald.enable = lib.mkDefault true;
# Use same ACPI identifier as Dell Ubuntu
boot.kernelParams = [
"acpi_osi=Linux-Dell-Video"
];
}
+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
+14
View File
@@ -0,0 +1,14 @@
{ lib, pkgs, ... }:
{
imports = [
../../../common/cpu/intel
../../../common/pc/laptop
../../../common/pc/laptop/ssd
];
# touchpad goes over i2c
boot.blacklistedKernelModules = [ "psmouse" ];
services.xserver.videoDrivers = lib.mkDefault [ "intel" ];
}
+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
];
}
+24
View File
@@ -0,0 +1,24 @@
{ lib, pkgs, ... }:
{
imports = [
../../../common/cpu/intel
../../../common/pc/laptop
../../../common/pc/laptop/ssd
];
boot.kernelParams = [
# fix lspci hanging with nouveau
# source https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1803179/comments/149
"acpi_rev_override=1"
"acpi_osi=Linux"
"nouveau.modeset=0"
"pcie_aspm=force"
"drm.vblankoffdelay=1"
"nouveau.runpm=0"
"mem_sleep_default=deep"
# fix flicker
# source https://wiki.archlinux.org/index.php/Intel_graphics#Screen_flickering
"i915.enable_psr=0"
];
}
+26
View File
@@ -0,0 +1,26 @@
= Dell XPS 13 7390 =
== Installation ==
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].
To perform firmware upgrades just activate the service
<code>
services.fwupd.enable = true;
</code>
Then use <code>fwupdmgr</code> to perform updates.
+17
View File
@@ -0,0 +1,17 @@
{ lib, pkgs, ... }:
{
imports = [
../../../common/cpu/intel
../../../common/pc/laptop
../../../common/pc/laptop/ssd
];
boot.kernelParams = [ "mem_sleep_default=deep" ];
# older version break wifi:
# - https://github.com/NixOS/nixos-hardware/issues/173
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.6") pkgs.linuxPackages_latest;
services.thermald.enable = true;
}
+21
View File
@@ -0,0 +1,21 @@
{ lib, pkgs, ... }: {
imports = [
../../../common/cpu/intel
../../../common/pc/laptop
../../../common/pc/ssd
];
# Includes the Wi-Fi and Bluetooth firmware for the QCA6390.
hardware.enableRedistributableFirmware = true;
# 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.
boot.blacklistedKernelModules = [ "psmouse" ];
# Allows for updating firmware via `fwupdmgr`.
services.fwupd.enable = true;
}
+12
View File
@@ -0,0 +1,12 @@
{ lib, ... }:
{
imports = [
../../../common/cpu/intel
../../../common/pc/laptop
../../../common/pc/laptop/ssd
];
# This will save you money and possibly your life!
services.thermald.enable = lib.mkDefault true;
}
+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;
}
+13
View File
@@ -0,0 +1,13 @@
{ lib, pkgs, ... }:
{
imports = [
../../../common/cpu/intel/kaby-lake
../../../common/pc/laptop
];
boot.blacklistedKernelModules = [ "psmouse" ]; # touchpad goes over i2c
# This will save you money and possibly your life!
services.thermald.enable = true;
}
+16
View File
@@ -0,0 +1,16 @@
= Dell XPS 13 9370 =
== Battery drain when sleeping ==
The laptop uses the S2 sleep mode by default instead of S3, which leads to
draining a lot of battery during sleep.
Though this is intentional by the manufacturer and might cause lockups when
forced I - @moredread - never had any issues with it.
See https://wiki.archlinux.org/index.php/Dell_XPS_13_(9370)#Power_Management
and https://bugzilla.kernel.org/show_bug.cgi?id=199689#c3 for reference
== Additional resources ==
* Arch linux wiki: [https://wiki.archlinux.org/index.php/Dell_XPS_13_(9370) Dell XPS 13 9370]
+20
View File
@@ -0,0 +1,20 @@
{ lib, pkgs, ... }:
{
imports = [
../../../common/cpu/intel/kaby-lake
../../../common/pc/laptop
../../../common/pc/laptop/acpi_call.nix
];
# Force S3 sleep mode. See README.wiki for details.
boot.kernelParams = [ "mem_sleep_default=deep" ];
# touchpad goes over i2c
boot.blacklistedKernelModules = [ "psmouse" ];
services.throttled.enable = lib.mkDefault true;
# This will save you money and possibly your life!
services.thermald.enable = true;
}
+20
View File
@@ -0,0 +1,20 @@
= Dell XPS 13 9380 =
== Firmware upgrades ==
Note that this device is supported by [https://fwupd.org/ fwupd].
To perform firmware upgrades just activate the service
<code>
services.fwupd.enable = true;
</code>
Then use <code>fwupdmgr</code> to perform updates.
== Battery drain when sleeping ==
The laptop uses the S2 sleep mode by default instead of S3, which leads to
draining a lot of battery during sleep.
See https://wiki.archlinux.org/index.php/Dell_XPS_13_(9370)#Power_Management
and https://bugzilla.kernel.org/show_bug.cgi?id=199689#c3 for reference
+18
View File
@@ -0,0 +1,18 @@
{ lib, pkgs, ... }:
{
imports = [
../../../common/cpu/intel
../../../common/pc/laptop
../../../common/pc/laptop/acpi_call.nix
];
# Force S3 sleep mode. See README.wiki for details.
boot.kernelParams = [ "mem_sleep_default=deep" ];
# touchpad goes over i2c
boot.blacklistedKernelModules = [ "psmouse" ];
# This will save you money and possibly your life!
services.thermald.enable = true;
}
+54
View File
@@ -0,0 +1,54 @@
= Dell XPS 15 7590 =
*Mostly copied from 15-9550
== Tested Hardware ==
* CPU: Intel(R) Core(TM) i9-9980HK
* RAM: 32 GB
* HDD: 1 TiB SSD
* Screen: 15" 4k (3840✕2160)
* Input: Touchscreen and trackpad.
== 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 driver for this. (If you just have SSD it's pointless and just slows things down needlessly anyways.)
=== Wifi ===
~~Wifi does not work with kernels older than 5.1 (firmware not present) or newer~~ (https://bbs.archlinux.org/viewtopic.php?id=247705)
Update: The 48.ucode causes the Killer wifi card to crash. The iwlfwifi-cc-a0-46.ucode works perfectly.
default.nix contains an overlay that removes the offending ucode from the linux-firmware bundle.
To use it one also needs to enable unfree firmware in their own configuration (<code>hardware.enableRedistributableFirmware = true;</code>)
```
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.grub = {
device = "nodev";
efiSupport = true;
efiInstallAsRemovable = true;
};
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_5_1;
```
Disable the `canTouchEfiVariables` after a boot or two to prevent NVRAM wearout.
=== After installation ===
* ''Add systemd-boot to UEFI boot list.'' The (uneditable anyways) settings mapping drive UUIDs to HD* work fine.
=== Optional ===
* ''Update BIOS.'' According to Reddit, this helps with battery life.
=== Troubleshooting ===
+43
View File
@@ -0,0 +1,43 @@
{ lib, ... }:
{
imports = [
../../../common/cpu/intel
../../../common/pc/laptop
../../../common/pc/ssd
];
# Set to true for just the first run, then disable it.
# boot.loader.efi.canTouchEfiVariables = lib.mkDefault true;
# Load GPU drivers.
# hardware.bumblebee.enable = lib.mkDefault true;
# High DPI for X users. 175 "looks reasonable" but I didn't do the actual DPI
# calculation.
# services.xserver.dpi = lib.mkDefault 175;
# Earlier font-size setup
console.earlySetup = true;
# Prevent small EFI partiion from filling up
boot.loader.grub.configurationLimit = 10;
# The 48.ucode causes the Killer wifi card to crash.
# The iwlfwifi-cc-a0-46.ucode works perfectly
nixpkgs.overlays = [
(self: super: {
firmwareLinuxNonfree = super.firmwareLinuxNonfree.overrideAttrs (old: {
src = super.fetchgit {
url =
"https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git";
rev = "bf13a71b18af229b4c900b321ef1f8443028ded8";
sha256 = "1dcaqdqyffxiadx420pg20157wqidz0c0ca5mrgyfxgrbh6a4mdj";
};
postInstall = ''
rm $out/lib/firmware/iwlwifi-cc-a0-48.ucode
'';
outputHash = "0dq48i1cr8f0qx3nyq50l9w9915vhgpwmwiw3b4yhisbc3afyay4";
});
})
];
}
+22
View File
@@ -0,0 +1,22 @@
= Dell XPS 15 9550 =
== Tested Hardware ==
* CPU: Intel(R) Core(TM) i7-10875H CPU @ 2.30GHz
* RAM: 64 GB
* HDD: 1 TiB SSD
* Screen: 15" 4k (3840✕2160)
* Graphics: NVIDIA Corporation TU117M [GeForce GTX 1650 Ti Mobile], with Intel Graphics too.
* Input: Touchscreen and trackpad.
== Notes ==
Also tested with Dell WD19TB Thunderbolt Dock.
== NVIDIA Offload ==
In order to run a program on the NVIDIA gpu, you can use the `nvidia-offload` function, for example:
```
nvidia-offload `nix-shell -p glxinfo --run 'glxgears'`
```
This is a short bash script that sets the proper environment variables and calls your command.
+28
View File
@@ -0,0 +1,28 @@
{ lib, ... }:
let
thermald-conf = ./thermald-conf.xml;
in
{
imports = [
../../../common/cpu/intel
../../../common/pc/laptop
../../../common/pc/laptop/ssd
];
# Boot loader
boot.kernelParams = lib.mkDefault [ "acpi_rev_override" ];
# This will save you money and possibly your life!
services.thermald.enable = lib.mkDefault true;
# 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
'';
}
+15
View File
@@ -0,0 +1,15 @@
{ lib, pkgs, ... }:
{
imports = [
../default.nix
../../../../common/gpu/nvidia.nix
];
hardware.nvidia.prime = {
# Bus ID of the Intel GPU.
intelBusId = lib.mkDefault "PCI:0:2:0";
# Bus ID of the NVIDIA GPU.
nvidiaBusId = lib.mkDefault "PCI:1:0:0";
};
}
+205
View File
@@ -0,0 +1,205 @@
<?xml version="1.0"?>
<!-- BEGIN -->
<ThermalConfiguration>
<Platform>
<Name> Auto generated </Name>
<ProductName>XPS 15 9500</ProductName>
<Preference>QUIET</Preference>
<PPCC>
<PowerLimitIndex>0</PowerLimitIndex>
<PowerLimitMinimum>10000</PowerLimitMinimum>
<PowerLimitMaximum>68000</PowerLimitMaximum>
<TimeWindowMinimum>56000</TimeWindowMinimum>
<TimeWindowMaximum>56000</TimeWindowMaximum>
<StepSize>250</StepSize>
</PPCC>
<ThermalZones>
<ThermalZone>
<Type>auto_zone_0</Type>
<TripPoints>
<TripPoint>
<SensorType>SEN2</SensorType>
<Temperature>55000</Temperature>
<Type>Passive</Type>
<CoolingDevice>
<Type>B0D4</Type>
<SamplingPeriod>1</SamplingPeriod>
<TargetState>45000000</TargetState>
</CoolingDevice>
</TripPoint>
<TripPoint>
<SensorType>SEN2</SensorType>
<Temperature>57000</Temperature>
<Type>Passive</Type>
<CoolingDevice>
<Type>B0D4</Type>
<SamplingPeriod>1</SamplingPeriod>
<TargetState>40000000</TargetState>
</CoolingDevice>
</TripPoint>
<TripPoint>
<SensorType>SEN2</SensorType>
<Temperature>60000</Temperature>
<Type>Passive</Type>
<CoolingDevice>
<Type>B0D4</Type>
<SamplingPeriod>1</SamplingPeriod>
<TargetState>35000000</TargetState>
</CoolingDevice>
</TripPoint>
<TripPoint>
<SensorType>SEN2</SensorType>
<Temperature>64000</Temperature>
<Type>Passive</Type>
<CoolingDevice>
<Type>B0D4</Type>
<SamplingPeriod>3</SamplingPeriod>
<TargetState>35000000</TargetState>
</CoolingDevice>
</TripPoint>
<TripPoint>
<SensorType>SEN2</SensorType>
<Temperature>68000</Temperature>
<Type>Passive</Type>
<CoolingDevice>
<Type>B0D4</Type>
<SamplingPeriod>3</SamplingPeriod>
<TargetState>20000000</TargetState>
</CoolingDevice>
</TripPoint>
<TripPoint>
<SensorType>SEN2</SensorType>
<Temperature>70000</Temperature>
<Type>Passive</Type>
<CoolingDevice>
<Type>B0D4</Type>
<SamplingPeriod>3</SamplingPeriod>
<TargetState>15000000</TargetState>
</CoolingDevice>
</TripPoint>
</TripPoints>
</ThermalZone>
<ThermalZone>
<Type>auto_zone_1</Type>
<TripPoints>
<TripPoint>
<SensorType>SEN5</SensorType>
<Temperature>38000</Temperature>
<Type>Passive</Type>
<CoolingDevice>
<Type>B0D4</Type>
<SamplingPeriod>1</SamplingPeriod>
<TargetState>22000000</TargetState>
</CoolingDevice>
</TripPoint>
<TripPoint>
<SensorType>SEN5</SensorType>
<Temperature>39000</Temperature>
<Type>Passive</Type>
<CoolingDevice>
<Type>B0D4</Type>
<SamplingPeriod>1</SamplingPeriod>
<TargetState>17000000</TargetState>
</CoolingDevice>
</TripPoint>
<TripPoint>
<SensorType>SEN5</SensorType>
<Temperature>40000</Temperature>
<Type>Passive</Type>
<CoolingDevice>
<Type>B0D4</Type>
<SamplingPeriod>3</SamplingPeriod>
<TargetState>12000000</TargetState>
</CoolingDevice>
</TripPoint>
<TripPoint>
<SensorType>SEN5</SensorType>
<Temperature>41000</Temperature>
<Type>Passive</Type>
<CoolingDevice>
<Type>B0D4</Type>
<SamplingPeriod>3</SamplingPeriod>
</CoolingDevice>
</TripPoint>
</TripPoints>
</ThermalZone>
<ThermalZone>
<Type>auto_zone_2</Type>
<TripPoints>
<TripPoint>
<SensorType>VIR1</SensorType>
<Temperature>57000</Temperature>
<Type>Passive</Type>
<CoolingDevice>
<Type>B0D4</Type>
<SamplingPeriod>3</SamplingPeriod>
<TargetState>15000000</TargetState>
</CoolingDevice>
</TripPoint>
<TripPoint>
<SensorType>VIR1</SensorType>
<Temperature>60000</Temperature>
<Type>Passive</Type>
<CoolingDevice>
<Type>B0D4</Type>
<SamplingPeriod>3</SamplingPeriod>
</CoolingDevice>
</TripPoint>
</TripPoints>
</ThermalZone>
<ThermalZone>
<Type>auto_zone_3</Type>
<TripPoints>
<TripPoint>
<SensorType>VIR2</SensorType>
<Temperature>76000</Temperature>
<Type>Passive</Type>
<CoolingDevice>
<Type>B0D4</Type>
<SamplingPeriod>1</SamplingPeriod>
</CoolingDevice>
</TripPoint>
</TripPoints>
</ThermalZone>
<ThermalZone>
<Type>auto_zone_4</Type>
<TripPoints>
<TripPoint>
<SensorType>WRLS</SensorType>
<Temperature>80000</Temperature>
<Type>Passive</Type>
<CoolingDevice>
<Type>B0D4</Type>
<SamplingPeriod>1</SamplingPeriod>
</CoolingDevice>
</TripPoint>
</TripPoints>
</ThermalZone>
<ThermalZone>
<Type>auto_zone_5</Type>
<TripPoints>
<TripPoint>
<SensorType>STG1</SensorType>
<Temperature>66000</Temperature>
<Type>Passive</Type>
<CoolingDevice>
<Type>B0D4</Type>
<SamplingPeriod>1</SamplingPeriod>
<TargetState>19000000</TargetState>
</CoolingDevice>
</TripPoint>
<TripPoint>
<SensorType>STG1</SensorType>
<Temperature>90000</Temperature>
<Type>Passive</Type>
<CoolingDevice>
<Type>B0D4</Type>
<SamplingPeriod>1</SamplingPeriod>
</CoolingDevice>
</TripPoint>
</TripPoints>
</ThermalZone>
</ThermalZones>
</Platform>
</ThermalConfiguration>
<!-- END -->
+22 -1
View File
@@ -5,12 +5,19 @@ Most of this I presume also applies to the XPS 13 1530, the 13" variant.
== Tested Hardware ==
* CPU: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
* RAM: 16 GB
* RAM: 32 GB
* HDD: 512 GiB SSD
* Screen: 15" 4k (3840✕2160)
* Graphics: NVIDIA Corporation GM107M, with Intel Graphics too.
* Input: Touchscreen and trackpad.
== NVIDIA Offload ==
In order to run a program on the NVIDIA gpu, you can use the `nvidia-offload` function, for example:
```
nvidia-offload `nix-shell -p glxinfo --run 'glxgears'`
```
This is a short bash script that sets the proper environment variables and calls your command.
== Firmware Configuration ==
@@ -36,3 +43,17 @@ These settings are needed both for booting the final install, and installer itse
* ''Update BIOS.'' According to Reddit, this helps with battery life.
* ''Update Intel's Thunderbolt firmware.'' Without this, the Thunderbolt port will only work as power source, and not transfer data.
=== Troubleshooting ===
==== rcu_sched freezing problems ====
After a recent update my machine became unstable. X couldn't start and even running `lspci` would lock the machine. I'm not sure what the root cause was, but I found the fix here: https://wiki.archlinux.org/index.php/Dell_XPS_15_9560#Troubleshooting
TL;DR I added this line:
```
boot.kernelParams = [ "acpi_rev_override=1" "pcie_aspm=off" "nouveau.modeset=0" ];
```
Some more detail about the problem can be found here: https://bbs.archlinux.org/viewtopic.php?id=223056
+4 -2
View File
@@ -4,12 +4,14 @@
imports = [
../../../common/cpu/intel
../../../common/pc/laptop
# To just use Intel integrated graphics with Intel's open source driver
# ../../../common/gpu/nvidia-disable
];
# TODO: boot loader
boot.loader.systemd-boot.enable = lib.mkDefault true;
boot.loader.efi.canTouchEfiVariables = lib.mkDefault true;
# To just use Intel integrated graphics with Intel's open source driver
# hardware.nvidiaOptimus.disable = true;
# This will save you money and possibly your life!
services.thermald.enable = true;
}
+15
View File
@@ -0,0 +1,15 @@
{ lib, pkgs, ... }:
{
imports = [
../default.nix
../../../../common/gpu/nvidia.nix
];
hardware.nvidia.prime = {
# Bus ID of the Intel GPU.
intelBusId = lib.mkDefault "PCI:0:2:0";
# Bus ID of the NVIDIA GPU.
nvidiaBusId = lib.mkDefault "PCI:1:0:0";
};
}
+54
View File
@@ -0,0 +1,54 @@
= Dell XPS 15 9560 =
== Tested Hardware ==
* CPU: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
* RAM: 16 GB
* HDD: 512 GiB SSD
* Screen: 15.6" FHD(1920x1080) InfinityEdge
* Graphics: NVIDIA Corporation GTX1050 4GB GDDR5, with Intel Graphics too.
* Input: trackpad
== 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).'' Thakfully doing so is as easy as changing any other simple setting.
* ''Disable Intel hardware RAID and use AHCI instead.'' Intel doesn't seem to provide a working linux driver for this. (If you just have SSD it's pointless and just slows things down needlessly anyways.)
=== After installation ===
* ''Add systemd-boot to UEFI boot list.'' The (uneditable anyways) settings mapping drive UUIDs to HD* work fine.
=== Optional ===
* ''Disable C-States.'' This is a processor idling thing. It seems to cause random crashes (Blank screen, no normal panic debug dump). Unfortunately, without it, the computer cannot be suspended. On the other hand, it doesn't seem to affect acpi's estimation of battery life when the computer is running with minimal load, but I haven't tested battery life in practice. I list it as optional as there's a tradeoff, and the crashes are rare enough one can probably get through installation just fine.
* ''Update BIOS.'' According to Reddit, this helps with battery life.
* ''Update Intel's Thunderbolt firmware.'' Without this, the Thunderbolt port will only work as power source, and not transfer data.
=== Troubleshooting ===
==== rcu_sched freezing problems ====
After a recent update my machine became unstable. X couldn't start and even running `lspci` would lock the machine. I'm not sure what the root cause was, but I found the fix here: https://wiki.archlinux.org/index.php/Dell_XPS_15_9560#Troubleshooting
TL;DR I added this line:
I am leaving these params here, I haven't test these so use on your own risk.
I am using different method to disable nvidia.
("acpi_rev_override=1" param is save and I have been using it for a while now,
no crashes.)
```
boot.kernelParams = [ "acpi_rev_override=1" "pcie_aspm=off" "nouveau.modeset=0" ];
```
Some more detail about the problem can be found here: https://bbs.archlinux.org/viewtopic.php?id=223056
+24
View File
@@ -0,0 +1,24 @@
{ lib, pkgs, ... }:
{
imports = [
../../../common/cpu/intel
../../../common/pc/laptop
./xps-common.nix
];
# This configuration makes intel default and optionaly applications could run nvidia with optirun.
# To Optimize for your use case import intel or nvidia only configuration instead
# xps-9560/intel
# or
# xps-9560/nvidia
##### bumblebee working, needs reboot to take affect and to use it run: optirun "<application>"
services.xserver.videoDrivers = lib.mkDefault [ "intel" "nvidia" ];
boot.blacklistedKernelModules = lib.mkDefault [ "nouveau" "bbswitch" ];
boot.extraModulePackages = lib.mkDefault [ pkgs.linuxPackages.nvidia_x11 ];
hardware.bumblebee.enable = lib.mkDefault true;
hardware.bumblebee.pmMethod = lib.mkDefault "none";
}
+10
View File
@@ -0,0 +1,10 @@
{ lib, pkgs, ... }:
{
imports = [
../../../../common/cpu/intel
../../../../common/pc/laptop
../../../../common/gpu/nvidia-disable.nix
../xps-common.nix
];
}
+22
View File
@@ -0,0 +1,22 @@
{ lib, pkgs, ... }:
{
imports = [
../../../../common/cpu/intel
../../../../common/gpu/nvidia.nix
../../../../common/pc/laptop
../xps-common.nix
];
# This runs only nvidia, great for games or heavy use of render applications
##### disable intel, run nvidia only and as default
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";
};
}
+8
View File
@@ -0,0 +1,8 @@
{ lib, ... }:
{
boot.kernelParams = lib.mkDefault [ "acpi_rev_override" ];
# This will save you money and possibly your life!
services.thermald.enable = lib.mkDefault true;
}
+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);
}
+158
View File
@@ -0,0 +1,158 @@
{
description = "nixos-hardware";
outputs = { self }: {
nixosModules = {
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-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-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-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-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;
friendlyarm-nanopc-t4 = import ./friendlyarm/nanopc-t4;
google-pixelbook = import ./google/pixelbook;
gpd-micropc = import ./gpd/micropc;
hp-elitebook-2560p = import ./hp/elitebook/2560p;
intel-nuc-8i7beh = import ./intel/nuc/8i7beh;
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-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-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-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-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;
lenovo-thinkpad-x230 = import ./lenovo/thinkpad/x230;
lenovo-thinkpad-x250 = import ./lenovo/thinkpad/x250;
lenovo-thinkpad-x260 = import ./lenovo/thinkpad/x260;
lenovo-thinkpad-x270 = import ./lenovo/thinkpad/x270;
lenovo-thinkpad-x280 = import ./lenovo/thinkpad/x280;
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;
onenetbook-4 = import ./onenetbook/4;
pcengines-apu = import ./pcengines/apu;
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;
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;
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-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-ssd = import ./common/pc/ssd;
};
};
}
+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
'';
}];
}
+9
View File
@@ -0,0 +1,9 @@
{ ... }:
{
imports = [
../../common/pc/laptop
../../common/pc/laptop/ssd
../../common/cpu/intel/kaby-lake
];
}
+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" ];
}
+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
Loaded 100 of 226 files, more files were not shown because too many files have changed in this diff. Show more