mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 17:27:14 +08:00 
			
		
		
		
	treewide: remove uses of lib.mdDoc
This commit is contained in:
		@@ -16,9 +16,8 @@
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  options.hardware.intelgpu.loadInInitrd =
 | 
			
		||||
    lib.mkEnableOption (
 | 
			
		||||
      lib.mdDoc "Load the Intel GPU kernel module at stage 1 boot. (Added to `boot.initrd.kernelModules`)"
 | 
			
		||||
    )
 | 
			
		||||
    lib.mkEnableOption
 | 
			
		||||
      "Load the Intel GPU kernel module at stage 1 boot. (Added to `boot.initrd.kernelModules`)"
 | 
			
		||||
    // {
 | 
			
		||||
      default = true;
 | 
			
		||||
    };
 | 
			
		||||
 
 | 
			
		||||
@@ -1,8 +1,8 @@
 | 
			
		||||
{ 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 by default if on new enough version of NixOS
 | 
			
		||||
    default = (lib.versionAtLeast (lib.versions.majorMinor lib.version) "24.05");
 | 
			
		||||
  };
 | 
			
		||||
 
 | 
			
		||||
@@ -18,7 +18,7 @@ in
 | 
			
		||||
    hardware.sensor.iio.bmi260.enable = mkOption {
 | 
			
		||||
      default = false;
 | 
			
		||||
      type = types.bool;
 | 
			
		||||
      description = mdDoc ''
 | 
			
		||||
      description = ''
 | 
			
		||||
        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.
 | 
			
		||||
 | 
			
		||||
  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 = true;
 | 
			
		||||
    };
 | 
			
		||||
 
 | 
			
		||||
@@ -12,18 +12,18 @@ in {
 | 
			
		||||
      };
 | 
			
		||||
      wifiCard = lib.mkOption {
 | 
			
		||||
        type = lib.types.enum [ "redpine" "sparklan" "none" ];
 | 
			
		||||
        description = lib.mdDoc ''
 | 
			
		||||
        description = ''
 | 
			
		||||
          Which wi-fi card is installed in your phone.
 | 
			
		||||
 | 
			
		||||
          Phones shipped before January 2023 have redpine, newer phones have sparklan.
 | 
			
		||||
        '';
 | 
			
		||||
        default = "redpine";
 | 
			
		||||
      };
 | 
			
		||||
      customInitrdModules = lib.mkEnableOption (lib.mdDoc "use of custom kernel modules in the initrd.");
 | 
			
		||||
      installUdevPackages = lib.mkEnableOption (lib.mdDoc "installation of udev packages from librem5-base.");
 | 
			
		||||
      lockdownFix = lib.mkEnableOption (lib.mdDoc "fix for orientation and proximity sensors not working after lockdown.");
 | 
			
		||||
      customInitrdModules = lib.mkEnableOption "use of custom kernel modules in the initrd.";
 | 
			
		||||
      installUdevPackages = lib.mkEnableOption "installation of udev packages from librem5-base.";
 | 
			
		||||
      lockdownFix = lib.mkEnableOption "fix for orientation and proximity sensors not working after lockdown.";
 | 
			
		||||
      audio = lib.mkOption {
 | 
			
		||||
        description = lib.mdDoc ''
 | 
			
		||||
        description = ''
 | 
			
		||||
          Whether to enable and configure PulseAudio for the Librem5 modem.
 | 
			
		||||
 | 
			
		||||
          This is required for audio during calls to work at all.
 | 
			
		||||
 
 | 
			
		||||
@@ -13,7 +13,7 @@ in
 | 
			
		||||
      unmuteAmp = lib.mkOption {
 | 
			
		||||
        type = lib.types.bool;
 | 
			
		||||
        default = false;
 | 
			
		||||
        description = lib.mdDoc ''
 | 
			
		||||
        description = ''
 | 
			
		||||
          "one-shot" unmute when kernel module first loads.
 | 
			
		||||
        '';
 | 
			
		||||
      };
 | 
			
		||||
@@ -21,7 +21,7 @@ in
 | 
			
		||||
      autoMuteAmp = lib.mkOption {
 | 
			
		||||
        type = lib.types.bool;
 | 
			
		||||
        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.
 | 
			
		||||
          (Reopening the device within the five-second close window will cancel mute.)
 | 
			
		||||
        '';
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user