From 2519705f12fe0430e4f41b60832df99f0540f908 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Fri, 19 Apr 2024 19:23:49 +0200 Subject: [PATCH] fix: remove lib.mdDoc (deprecated) --- home/options.nix | 20 ++++++++++---------- system/options.nix | 10 +++++----- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/home/options.nix b/home/options.nix index 91aa42f..d809d5d 100644 --- a/home/options.nix +++ b/home/options.nix @@ -71,7 +71,7 @@ let sway.options = { background = lib.mkOption { - description = lib.mdDoc "The wallpaper to use."; + description = "The wallpaper to use."; type = types.path; default = builtins.fetchurl { url = "https://raw.githubusercontent.com/lunik1/nixos-logo-gruvbox-wallpaper/d4937c424fad79c1136a904599ba689fcf8d0fad/png/gruvbox-dark-rainbow.png"; @@ -79,7 +79,7 @@ let }; }; autostart = lib.mkOption { - description = lib.mdDoc '' + description = '' Autostart Sway when logging in to /dev/tty1. This will make it so `exec sway` is run when logging in to TTY1, if @@ -97,13 +97,13 @@ let type = types.submodule { options = { once = lib.mkOption { - description = lib.mdDoc "Programs to start only once (`exec`)."; + description = "Programs to start only once (`exec`)."; type = types.listOf types.str; default = [ ]; example = [ "signal-desktop --start-in-tray" ]; }; 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; default = [ ]; example = [ "signal-desktop --start-in-tray" ]; @@ -116,7 +116,7 @@ let gui.options = { enable = lib.mkEnableOption ("GUI applications"); tempInfo = lib.mkOption { - description = lib.mdDoc "Temperature info to display in the statusbar."; + description = "Temperature info to display in the statusbar."; default = null; type = types.nullOr (types.submodule tempInfo); }; @@ -138,19 +138,19 @@ let in { options.jhome = lib.mkOption { - description = lib.mdDoc "Jalil's default home-manager configuration."; + description = "Jalil's default home-manager configuration."; default = { }; type = types.submodule { options = { enable = lib.mkEnableOption "jalil's home defaults"; hostName = lib.mkOption { - description = lib.mdDoc "The hostname of this system."; + description = "The hostname of this system."; type = types.str; default = "nixos"; example = "my pc"; }; dev = lib.mkOption { - description = lib.mdDoc "Setup development environment for programming languages."; + description = "Setup development environment for programming languages."; default = { }; type = types.submodule { options.enable = lib.mkEnableOption "development settings"; @@ -180,12 +180,12 @@ in }; }; user = lib.mkOption { - description = lib.mdDoc "User settings."; + description = "User settings."; default = null; type = types.nullOr (types.submodule user); }; gui = lib.mkOption { - description = lib.mdDoc "Jalil's default GUI configuration."; + description = "Jalil's default GUI configuration."; default = { }; type = types.submodule gui; }; diff --git a/system/options.nix b/system/options.nix index d4aa632..98456e2 100644 --- a/system/options.nix +++ b/system/options.nix @@ -30,7 +30,7 @@ let "8bitdoFix" = mkDisableOption "a fix for 8bitdo controllers"; steamHardwareSupport = mkDisableOption "steam hardware support"; ydotool = lib.mkOption { - description = lib.mdDoc "Jalil's default ydotool configuration."; + description = "Jalil's default ydotool configuration."; default = { }; type = types.submodule { options.enable = mkDisableOption "ydotool"; @@ -58,12 +58,12 @@ let config.options = { enable = lib.mkEnableOption "jalil's default configuration."; dev = lib.mkOption { - description = lib.mdDoc "Options for setting up a dev environment"; + description = "Options for setting up a dev environment"; default = { }; type = types.submodule { options.enable = lib.mkEnableOption "dev configuration"; }; }; gui = lib.mkOption { - description = lib.mdDoc "Jalil's default configuration for a NixOS gui."; + description = "Jalil's default configuration for a NixOS gui."; default = { }; type = types.submodule gui; }; @@ -73,7 +73,7 @@ let type = types.submodule styling; }; importSSHKeysFromGithub = lib.mkOption { - description = lib.mdDoc '' + description = '' Import public ssh keys from a github username. This will fetch the keys from https://github.com/$${username}.keys. @@ -96,7 +96,7 @@ let in { options.jconfig = lib.mkOption { - description = lib.mdDoc "Jalil's default NixOS configuration."; + description = "Jalil's default NixOS configuration."; default = { }; type = types.submodule config; };