fix: remove lib.mdDoc (deprecated)

This commit is contained in:
Jalil David Salamé Messina 2024-04-19 19:23:49 +02:00
parent b1fc849c1f
commit 2519705f12
Signed by: jalil
GPG key ID: F016B9E770737A0B
2 changed files with 15 additions and 15 deletions

View file

@ -71,7 +71,7 @@ let
sway.options = { sway.options = {
background = lib.mkOption { background = lib.mkOption {
description = lib.mdDoc "The wallpaper to use."; description = "The wallpaper to use.";
type = types.path; type = types.path;
default = builtins.fetchurl { default = builtins.fetchurl {
url = "https://raw.githubusercontent.com/lunik1/nixos-logo-gruvbox-wallpaper/d4937c424fad79c1136a904599ba689fcf8d0fad/png/gruvbox-dark-rainbow.png"; url = "https://raw.githubusercontent.com/lunik1/nixos-logo-gruvbox-wallpaper/d4937c424fad79c1136a904599ba689fcf8d0fad/png/gruvbox-dark-rainbow.png";
@ -79,7 +79,7 @@ let
}; };
}; };
autostart = lib.mkOption { autostart = lib.mkOption {
description = lib.mdDoc '' description = ''
Autostart Sway when logging in to /dev/tty1. Autostart Sway when logging in to /dev/tty1.
This will make it so `exec sway` is run when logging in to TTY1, if This will make it so `exec sway` is run when logging in to TTY1, if
@ -97,13 +97,13 @@ let
type = types.submodule { type = types.submodule {
options = { options = {
once = lib.mkOption { once = lib.mkOption {
description = lib.mdDoc "Programs to start only once (`exec`)."; description = "Programs to start only once (`exec`).";
type = types.listOf types.str; type = types.listOf types.str;
default = [ ]; default = [ ];
example = [ "signal-desktop --start-in-tray" ]; example = [ "signal-desktop --start-in-tray" ];
}; };
always = lib.mkOption { always = lib.mkOption {
description = lib.mdDoc "Programs to start whenever the config is sourced (`exec_always`)."; description = "Programs to start whenever the config is sourced (`exec_always`).";
type = types.listOf types.str; type = types.listOf types.str;
default = [ ]; default = [ ];
example = [ "signal-desktop --start-in-tray" ]; example = [ "signal-desktop --start-in-tray" ];
@ -116,7 +116,7 @@ let
gui.options = { gui.options = {
enable = lib.mkEnableOption ("GUI applications"); enable = lib.mkEnableOption ("GUI applications");
tempInfo = lib.mkOption { tempInfo = lib.mkOption {
description = lib.mdDoc "Temperature info to display in the statusbar."; description = "Temperature info to display in the statusbar.";
default = null; default = null;
type = types.nullOr (types.submodule tempInfo); type = types.nullOr (types.submodule tempInfo);
}; };
@ -138,19 +138,19 @@ let
in in
{ {
options.jhome = lib.mkOption { options.jhome = lib.mkOption {
description = lib.mdDoc "Jalil's default home-manager configuration."; description = "Jalil's default home-manager configuration.";
default = { }; default = { };
type = types.submodule { type = types.submodule {
options = { options = {
enable = lib.mkEnableOption "jalil's home defaults"; enable = lib.mkEnableOption "jalil's home defaults";
hostName = lib.mkOption { hostName = lib.mkOption {
description = lib.mdDoc "The hostname of this system."; description = "The hostname of this system.";
type = types.str; type = types.str;
default = "nixos"; default = "nixos";
example = "my pc"; example = "my pc";
}; };
dev = lib.mkOption { dev = lib.mkOption {
description = lib.mdDoc "Setup development environment for programming languages."; description = "Setup development environment for programming languages.";
default = { }; default = { };
type = types.submodule { type = types.submodule {
options.enable = lib.mkEnableOption "development settings"; options.enable = lib.mkEnableOption "development settings";
@ -180,12 +180,12 @@ in
}; };
}; };
user = lib.mkOption { user = lib.mkOption {
description = lib.mdDoc "User settings."; description = "User settings.";
default = null; default = null;
type = types.nullOr (types.submodule user); type = types.nullOr (types.submodule user);
}; };
gui = lib.mkOption { gui = lib.mkOption {
description = lib.mdDoc "Jalil's default GUI configuration."; description = "Jalil's default GUI configuration.";
default = { }; default = { };
type = types.submodule gui; type = types.submodule gui;
}; };

View file

@ -30,7 +30,7 @@ let
"8bitdoFix" = mkDisableOption "a fix for 8bitdo controllers"; "8bitdoFix" = mkDisableOption "a fix for 8bitdo controllers";
steamHardwareSupport = mkDisableOption "steam hardware support"; steamHardwareSupport = mkDisableOption "steam hardware support";
ydotool = lib.mkOption { ydotool = lib.mkOption {
description = lib.mdDoc "Jalil's default ydotool configuration."; description = "Jalil's default ydotool configuration.";
default = { }; default = { };
type = types.submodule { type = types.submodule {
options.enable = mkDisableOption "ydotool"; options.enable = mkDisableOption "ydotool";
@ -58,12 +58,12 @@ let
config.options = { config.options = {
enable = lib.mkEnableOption "jalil's default configuration."; enable = lib.mkEnableOption "jalil's default configuration.";
dev = lib.mkOption { dev = lib.mkOption {
description = lib.mdDoc "Options for setting up a dev environment"; description = "Options for setting up a dev environment";
default = { }; default = { };
type = types.submodule { options.enable = lib.mkEnableOption "dev configuration"; }; type = types.submodule { options.enable = lib.mkEnableOption "dev configuration"; };
}; };
gui = lib.mkOption { gui = lib.mkOption {
description = lib.mdDoc "Jalil's default configuration for a NixOS gui."; description = "Jalil's default configuration for a NixOS gui.";
default = { }; default = { };
type = types.submodule gui; type = types.submodule gui;
}; };
@ -73,7 +73,7 @@ let
type = types.submodule styling; type = types.submodule styling;
}; };
importSSHKeysFromGithub = lib.mkOption { importSSHKeysFromGithub = lib.mkOption {
description = lib.mdDoc '' description = ''
Import public ssh keys from a github username. Import public ssh keys from a github username.
This will fetch the keys from https://github.com/$${username}.keys. This will fetch the keys from https://github.com/$${username}.keys.
@ -96,7 +96,7 @@ let
in in
{ {
options.jconfig = lib.mkOption { options.jconfig = lib.mkOption {
description = lib.mdDoc "Jalil's default NixOS configuration."; description = "Jalil's default NixOS configuration.";
default = { }; default = { };
type = types.submodule config; type = types.submodule config;
}; };