mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-09 20:49:40 +01:00
treewide: remove uses of lib.mdDoc
This commit is contained in:
parent
eab049fe17
commit
14c333162b
6 changed files with 13 additions and 14 deletions
|
@ -16,9 +16,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
options.hardware.intelgpu.loadInInitrd =
|
options.hardware.intelgpu.loadInInitrd =
|
||||||
lib.mkEnableOption (
|
lib.mkEnableOption
|
||||||
lib.mdDoc "Load the Intel GPU kernel module at stage 1 boot. (Added to `boot.initrd.kernelModules`)"
|
"Load the Intel GPU kernel module at stage 1 boot. (Added to `boot.initrd.kernelModules`)"
|
||||||
)
|
|
||||||
// {
|
// {
|
||||||
default = true;
|
default = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
{
|
{
|
||||||
options.hardware.framework.enableKmod = lib.mkEnableOption (lib.mdDoc
|
options.hardware.framework.enableKmod = lib.mkEnableOption
|
||||||
"Enable the community created Framework kernel module that allows interacting with the embedded controller from sysfs."
|
"Enable the community created Framework kernel module that allows interacting with the embedded controller from sysfs."
|
||||||
) // {
|
// {
|
||||||
# Enable by default if on new enough version of NixOS
|
# Enable by default if on new enough version of NixOS
|
||||||
default = (lib.versionAtLeast (lib.versions.majorMinor lib.version) "24.05");
|
default = (lib.versionAtLeast (lib.versions.majorMinor lib.version) "24.05");
|
||||||
};
|
};
|
||||||
|
|
|
@ -18,7 +18,7 @@ in
|
||||||
hardware.sensor.iio.bmi260.enable = mkOption {
|
hardware.sensor.iio.bmi260.enable = mkOption {
|
||||||
default = false;
|
default = false;
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
description = mdDoc ''
|
description = ''
|
||||||
Enable Bosch BMI260 IMU kernel module driver.
|
Enable Bosch BMI260 IMU kernel module driver.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
@ -15,7 +15,7 @@ in
|
||||||
# NOTICE: Whenever you can limit PPT to 15W by pressing Fn + Shift to enter quiet mode.
|
# NOTICE: Whenever you can limit PPT to 15W by pressing Fn + Shift to enter quiet mode.
|
||||||
|
|
||||||
options.hardware.gpd.ppt = {
|
options.hardware.gpd.ppt = {
|
||||||
enable = mkEnableOption (mdDoc "Enable PPT control for device by ryzenadj.") // {
|
enable = mkEnableOption "Enable PPT control for device by ryzenadj." // {
|
||||||
# Default increase PPT to the BIOS default when power adapter plugin to increase performance.
|
# Default increase PPT to the BIOS default when power adapter plugin to increase performance.
|
||||||
default = true;
|
default = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -12,18 +12,18 @@ in {
|
||||||
};
|
};
|
||||||
wifiCard = lib.mkOption {
|
wifiCard = lib.mkOption {
|
||||||
type = lib.types.enum [ "redpine" "sparklan" "none" ];
|
type = lib.types.enum [ "redpine" "sparklan" "none" ];
|
||||||
description = lib.mdDoc ''
|
description = ''
|
||||||
Which wi-fi card is installed in your phone.
|
Which wi-fi card is installed in your phone.
|
||||||
|
|
||||||
Phones shipped before January 2023 have redpine, newer phones have sparklan.
|
Phones shipped before January 2023 have redpine, newer phones have sparklan.
|
||||||
'';
|
'';
|
||||||
default = "redpine";
|
default = "redpine";
|
||||||
};
|
};
|
||||||
customInitrdModules = lib.mkEnableOption (lib.mdDoc "use of custom kernel modules in the initrd.");
|
customInitrdModules = lib.mkEnableOption "use of custom kernel modules in the initrd.";
|
||||||
installUdevPackages = lib.mkEnableOption (lib.mdDoc "installation of udev packages from librem5-base.");
|
installUdevPackages = lib.mkEnableOption "installation of udev packages from librem5-base.";
|
||||||
lockdownFix = lib.mkEnableOption (lib.mdDoc "fix for orientation and proximity sensors not working after lockdown.");
|
lockdownFix = lib.mkEnableOption "fix for orientation and proximity sensors not working after lockdown.";
|
||||||
audio = lib.mkOption {
|
audio = lib.mkOption {
|
||||||
description = lib.mdDoc ''
|
description = ''
|
||||||
Whether to enable and configure PulseAudio for the Librem5 modem.
|
Whether to enable and configure PulseAudio for the Librem5 modem.
|
||||||
|
|
||||||
This is required for audio during calls to work at all.
|
This is required for audio during calls to work at all.
|
||||||
|
|
|
@ -13,7 +13,7 @@ in
|
||||||
unmuteAmp = lib.mkOption {
|
unmuteAmp = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
description = lib.mdDoc ''
|
description = ''
|
||||||
"one-shot" unmute when kernel module first loads.
|
"one-shot" unmute when kernel module first loads.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
@ -21,7 +21,7 @@ in
|
||||||
autoMuteAmp = lib.mkOption {
|
autoMuteAmp = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
default = true;
|
default = true;
|
||||||
description = lib.mdDoc ''
|
description = ''
|
||||||
Unmute the amp when an ALSA device is opened by a client. Mute, with a five-second delay when the ALSA device is closed.
|
Unmute the amp when an ALSA device is opened by a client. Mute, with a five-second delay when the ALSA device is closed.
|
||||||
(Reopening the device within the five-second close window will cancel mute.)
|
(Reopening the device within the five-second close window will cancel mute.)
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue