Skip to content

Commit 9fee7eb

Browse files
committed
fix spelling and capitolizations
1 parent 2a2e0b3 commit 9fee7eb

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

lenovo/thinkpad/x13s/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
The MIPI camera does work, however, it's not accelerated by the ISP and therefore image processing is done on CPU.
88

99
## Wifi and Bluetooth MAC addresses
10-
Wifi mac address is automatically generated.
10+
Wi-Fi MAC address is automatically generated.
1111

12-
Bluetooth mac is automatically generated.
12+
Bluetooth MAC is automatically generated.
1313

1414
## TPM
1515
Currently TPM does not work. Disable in your config to help boot speed.
@@ -26,4 +26,4 @@ hardware.bluetooth.enable = true;
2626
networking.modemmanager.enable = true;
2727
networking.networkmanager.enable = true;
2828
boot.loader.systemd-boot.enable = true;
29-
```
29+
```

lenovo/thinkpad/x13s/default.nix

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ in
1818
];
1919

2020
options.hardware.lenovo.x13s = {
21-
wifiMac = lib.mkOption {
21+
wifiMAC = lib.mkOption {
2222
type = lib.types.nullOr (lib.types.strMatching "([0-9a-f]{2}(:[0-9a-f]{2}){5})");
2323
description = ''
24-
WiFi MAC address to set on boot. When not set a random mac
24+
Wi-Fi MAC address to set on boot. When not set a random MAC
2525
address is assigned. Expects lowercase.
2626
'';
2727
default = null;
2828
};
2929

30-
bluetoothMac = lib.mkOption {
30+
bluetoothMAC = lib.mkOption {
3131
type = lib.types.nullOr (lib.types.strMatching "([0-9A-F]{2}(:[0-9A-F]{2}){5})");
3232
description = ''
33-
Bluetooth MAC address to set on boot. If null, the mac is
33+
Bluetooth MAC address to set on boot. If null, the MAC is
3434
generated using /etc/machine-id to seed the random generator.
3535
When not set, bluetooth.service fails to start. Expects
3636
upper case.
@@ -41,14 +41,14 @@ in
4141

4242
config = lib.mkMerge ([
4343

44-
# WiFi
45-
(lib.mkIf (cfg.wifiMac != null) {
44+
# Wi-Fi
45+
(lib.mkIf (cfg.wifiMAC != null) {
4646
# https://github.com/jhovold/linux/wiki/X13s#wi-fi
4747
services.udev.extraRules = builtins.concatStringsSep ", " [
4848
''ACTION=="add"''
4949
''SUBSYSTEM=="net"''
5050
''KERNELS=="0006:01:00.0"''
51-
''RUN+="${pkgs.iproute2}/bin/ip link set dev $name address ${cfg.wifiMac}"''
51+
''RUN+="${pkgs.iproute2}/bin/ip link set dev $name address ${cfg.wifiMAC}"''
5252
];
5353
})
5454

@@ -63,10 +63,10 @@ in
6363
restartIfChanged = false;
6464

6565
script = ''
66-
BLUETOOTH_MAC="${lib.optionalString (cfg.bluetoothMac != null) cfg.bluetoothMac}"
66+
BLUETOOTH_MAC="${lib.optionalString (cfg.bluetoothMAC != null) cfg.bluetoothMAC}"
6767
6868
if [ "$BLUETOOTH_MAC" = "" ] ; then
69-
echo 'generating bluetooth mac'
69+
echo 'Generating Bluetooth MAC'
7070
# we might be able to use the system serial number but, if we lost machine-id
7171
# the system has probably lost the bluetooth device keys anyway
7272
SEED=$(( $(cat /etc/machine-id | head -c 128 | sed -e 's/[^0-9]//g;s/^0*//') ))
@@ -80,7 +80,7 @@ in
8080
# > be constructed by leaving the Group bit zero.
8181
#
8282
# First, and only argument is for passing a file to seed RANDOM.
83-
# recommend using `/etc/machine-id` to pin the mac address if needed.
83+
# recommend using `/etc/machine-id` to pin the MAC address if needed.
8484
8585
BLUETOOTH_MAC="$(RANDOM=$SEED ; printf '%X%X:%02X:%02X:%02X:%02X:%02X' \
8686
$[RANDOM%16] $[((RANDOM%4)+1)*4-2] \
@@ -95,11 +95,11 @@ in
9595
# would like to find a better way to handle this.
9696
while ! [ -d /sys/class/bluetooth ] ; do
9797
sleep 5
98-
echo "waiting for bluetooth"
98+
echo "Waiting for Bluetooth"
9999
done
100100
sleep 5
101101
102-
echo "assigning mac: $BLUETOOTH_MAC"
102+
echo "Assigning MAC: $BLUETOOTH_MAC"
103103
yes | ${config.hardware.bluetooth.package}/bin/btmgmt --index 0 public-addr $BLUETOOTH_MAC
104104
'';
105105

@@ -202,7 +202,7 @@ in
202202
}
203203
)
204204

205-
# grub does not handle device tree yet
205+
# GRUB does not handle device tree yet
206206
(lib.mkIf (config.boot.loader.grub.enable) {
207207
warnings = lib.optional (
208208
!config.boot.loader.grub.efiSupport

0 commit comments

Comments
 (0)