Merge pull request #208784 from SuperSandro2000/nix-ld
nixos/nix-ld: fix example texts
This commit is contained in:
commit
34f4701127
1 changed files with 14 additions and 15 deletions
|
@ -36,23 +36,22 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
meta.maintainers = [ lib.maintainers.mic92 ];
|
meta.maintainers = [ lib.maintainers.mic92 ];
|
||||||
options = {
|
options.programs.nix-ld = {
|
||||||
programs.nix-ld = {
|
enable = lib.mkEnableOption (lib.mdDoc ''nix-ld, Documentation: <https://github.com/Mic92/nix-ld>'');
|
||||||
enable = lib.mkEnableOption (lib.mdDoc ''nix-ld, Documentation: <https://github.com/Mic92/nix-ld>'');
|
package = lib.mkOption {
|
||||||
package = lib.mkOption {
|
type = lib.types.package;
|
||||||
type = lib.types.package;
|
description = lib.mdDoc "Which package to use for the nix-ld.";
|
||||||
description = lib.mdDoc "Which package to use for the nix-ld.";
|
default = pkgs.nix-ld;
|
||||||
default = pkgs.nix-ld;
|
defaultText = lib.literalExpression "pkgs.nix-ld";
|
||||||
defaultText = lib.mdDoc "pkgs.nix-ld";
|
};
|
||||||
};
|
libraries = lib.mkOption {
|
||||||
libraries = lib.mkOption {
|
type = lib.types.listOf lib.types.package;
|
||||||
type = lib.types.listOf lib.types.package;
|
description = lib.mdDoc "Libraries that automatically become available to all programs. The default set includes common libraries.";
|
||||||
description = lib.mdDoc "Libraries that automatically become available to all programs. The default set includes common libraries.";
|
default = baseLibraries;
|
||||||
default = baseLibraries;
|
defaultText = lib.literalExpression "baseLibraries derived from systemd and nix dependencies.";
|
||||||
defaultText = lib.mdDoc "baseLibraries";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.programs.nix-ld.enable {
|
config = lib.mkIf config.programs.nix-ld.enable {
|
||||||
systemd.tmpfiles.packages = [ cfg.package ];
|
systemd.tmpfiles.packages = [ cfg.package ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue