Skip to content

lenovo/thinkpad/x13s: add options and use other options#1751

Open
BrainWart wants to merge 16 commits into
NixOS:masterfrom
BrainWart:x13s-updates
Open

lenovo/thinkpad/x13s: add options and use other options#1751
BrainWart wants to merge 16 commits into
NixOS:masterfrom
BrainWart:x13s-updates

Conversation

@BrainWart

@BrainWart BrainWart commented Jan 31, 2026

Copy link
Copy Markdown
Description of changes

Use options for x13s specific information. Change the way the device tree is selected as well. The built-in NixOS options better handle this now. systemd-boot needs no additional configuration when using hardware.deviceTree. There's now a rough, commented out, implementation for booting using Grub. The system bluetooth device will now get a MAC address automatically generated based on /etc/machine-id.

I've attempted to break the changes up in 4 commits splitting up the different changes in easier to review chunks. Drafting the PR now to get feedback and any feedback is appreciated.

Booting the configs

Things done
  • Tested the changes in your own NixOS Configuration
  • Tested the changes end-to-end by using your fork of nixos-hardware and importing it via <nixos-hardware> or Flake input

@BrainWart BrainWart changed the title x13s updates lenovo/thinkpad/x13s: add options and use other options Jan 31, 2026
@BrainWart BrainWart marked this pull request as ready for review February 5, 2026 00:28
Comment thread lenovo/thinkpad/x13s/default.nix Outdated
path = "${pkgs.modemmanager}/share/ModemManager/fcc-unlock.available.d/105b";
}
];
if [ "$BLUETOOTH_MAC" = "" ] ; then

@Mic92 Mic92 Mar 31, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would use lib.optionalString here.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've attempted to use lib.optionalString. If the changes in 2b6ba0e are not quite what you're looking for, please let me know. I appreciate your time. Thank you.

Comment thread lenovo/thinkpad/x13s/README.md Outdated
Comment thread lenovo/thinkpad/x13s/README.md Outdated
Comment thread lenovo/thinkpad/x13s/default.nix Outdated
Comment thread lenovo/thinkpad/x13s/default.nix Outdated
Comment thread lenovo/thinkpad/x13s/default.nix Outdated
Comment thread lenovo/thinkpad/x13s/default.nix Outdated
Comment thread lenovo/thinkpad/x13s/default.nix Outdated
Comment thread lenovo/thinkpad/x13s/default.nix Outdated
Comment thread lenovo/thinkpad/x13s/default.nix Outdated
Comment thread lenovo/thinkpad/x13s/default.nix Outdated
Comment thread lenovo/thinkpad/x13s/default.nix Outdated
BrainWart and others added 14 commits June 24, 2026 21:49
Module appears to have come from either https://codeberg.org/adamcstephens/nixos-x13s.git
or https://github.com/BrainWart/x13s-nixos/tree/main. Tagging authors
from the module history.

Co-Authored-By: Adam Stephens <adam@valkor.net>
Co-Authored-By: Beaver <beavernotacat@gmail.com>
Co-Authored-By: Daniel Barter <danielbarter@gmail.com>
Co-Authored-By: Stefan Junker <mail@stefanjunker.de>
Co-Authored-By: steveej <steveej@noreply.codeberg.org>
Co-Authored-By: TheNightmanCodeth <joseph.diragi@icloud.com>
change uses the deviceTree features in nixpkgs. one could use
specialisation to select the el2 device tree for this system now.
grub install would not take the entire package so we are now generating
the entire list of included dtbs as extra files.
@BrainWart

Copy link
Copy Markdown
Author

@toastal, I've made the changes you've requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants