1
0
Fork 0
mirror of https://github.com/hercules-ci/flake-parts.git synced 2024-12-14 11:47:31 +00:00

Remove redundant lib.mdDoc

This commit is contained in:
Robert Hensing 2022-11-11 07:39:25 +01:00
parent 6b87695050
commit d8f05073ae
9 changed files with 14 additions and 14 deletions

View file

@ -109,7 +109,7 @@ let
${name} = mkOption {
type = types.lazyAttrsOf option.type;
default = { };
description = lib.mdDoc ''
description = ''
See {option}`perSystem.${name}` for description and examples.
'';
};

View file

@ -27,13 +27,13 @@ let
type = mkOption {
type = lib.types.enum [ "app" ];
default = "app";
description = lib.mdDoc ''
description = ''
A type tag for `apps` consumers.
'';
};
program = mkOption {
type = programType;
description = lib.mdDoc ''
description = ''
A path to an executable or a derivation with `meta.mainProgram`.
'';
};

View file

@ -18,7 +18,7 @@ in
type = types.lazyAttrsOf types.unspecified;
default = { };
apply = mapAttrs (k: v: { _file = "${toString self.outPath}/flake.nix#darwinModules.${k}"; imports = [ v ]; });
description = lib.mdDoc ''
description = ''
[nix-darwin](https://daiderd.com/nix-darwin/) modules.
'';
};

View file

@ -16,7 +16,7 @@ in
{ freeformType = types.lazyAttrsOf types.raw; }
];
};
description = lib.mdDoc ''
description = ''
Raw flake output attributes. Any attribute can be set here, but some
attributes are represented by options, to provide appropriate
configuration merging.

View file

@ -15,7 +15,7 @@ in
nixosConfigurations = mkOption {
type = types.lazyAttrsOf types.raw;
default = { };
description = lib.mdDoc ''
description = ''
Instantiated NixOS configurations. Used by `nixos-rebuild`.
'';
example = literalExpression ''

View file

@ -18,7 +18,7 @@ in
type = types.lazyAttrsOf types.unspecified;
default = { };
apply = mapAttrs (k: v: { _file = "${toString self.outPath}/flake.nix#nixosModules.${k}"; imports = [ v ]; });
description = lib.mdDoc ''
description = ''
NixOS modules.
You may use this for reusable pieces of configuration, service modules, etc.

View file

@ -23,7 +23,7 @@ in
default = final: prev: {};
}
'';
description = lib.mdDoc ''
description = ''
An attribute set of [overlays](https://nixos.org/manual/nixpkgs/stable/#chap-overlays).
Note that the overlays themselves are not mergeable. While overlays

View file

@ -16,7 +16,7 @@ in
{
options = {
systems = mkOption {
description = lib.mdDoc ''
description = ''
All the system types to enumerate in the flake output subattributes.
In other words, all valid values for `system` in e.g. `packages.<system>.foo`.
@ -25,12 +25,12 @@ in
};
perInput = mkOption {
description = lib.mdDoc "Function from system to function from flake to `system`-specific attributes.";
description = "Function from system to function from flake to `system`-specific attributes.";
type = types.functionTo (types.functionTo (types.lazyAttrsOf types.unspecified));
};
perSystem = mkOption {
description = lib.mdDoc "A function from system to flake-like attributes omitting the `<system>` attribute.";
description = "A function from system to flake-like attributes omitting the `<system>` attribute.";
type = mkPerSystemType ({ config, system, ... }: {
_file = ./perSystem.nix;
config = {
@ -50,7 +50,7 @@ in
allSystems = mkOption {
type = types.lazyAttrsOf types.unspecified;
description = lib.mdDoc "The system-specific config for each of systems.";
description = "The system-specific config for each of systems.";
internal = true;
};
};

View file

@ -17,7 +17,7 @@ let
adHoc = mkOption {
type = types.bool;
default = false;
description = lib.mdDoc ''
description = ''
Whether to provide a stub option declaration for {option}`perSystem.<name>`.
The stub option declaration does not support merging and lacks
@ -32,7 +32,7 @@ in
{
options = {
transposition = lib.mkOption {
description = lib.mdDoc ''
description = ''
A helper that defines transposed attributes in the flake outputs.
Transposition is the operation that swaps the indices of a data structure.