diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2023-01-02 18:56:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-02 18:56:06 +0000 |
commit | 34f4701127a26d0651e867595d50e5c3b5b3c7d1 (patch) | |
tree | 90cee1d03bd03f4ad942c59dee9b59f324525aac /nixos | |
parent | 66cf271b3a020675a2eee6e7cc7584b7d8ddb42f (diff) | |
parent | 0b9f76a8d37cfd3b457efe37d2ab7930722de016 (diff) |
Merge pull request #208784 from SuperSandro2000/nix-ld
nixos/nix-ld: fix example texts
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/programs/nix-ld.nix | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/nixos/modules/programs/nix-ld.nix b/nixos/modules/programs/nix-ld.nix index f753cf5f97e5b..9a12b4ca5c74f 100644 --- a/nixos/modules/programs/nix-ld.nix +++ b/nixos/modules/programs/nix-ld.nix @@ -36,23 +36,22 @@ let in { meta.maintainers = [ lib.maintainers.mic92 ]; - options = { - programs.nix-ld = { - enable = lib.mkEnableOption (lib.mdDoc ''nix-ld, Documentation: <https://github.com/Mic92/nix-ld>''); - package = lib.mkOption { - type = lib.types.package; - description = lib.mdDoc "Which package to use for the nix-ld."; - default = pkgs.nix-ld; - defaultText = lib.mdDoc "pkgs.nix-ld"; - }; - libraries = lib.mkOption { - type = lib.types.listOf lib.types.package; - description = lib.mdDoc "Libraries that automatically become available to all programs. The default set includes common libraries."; - default = baseLibraries; - defaultText = lib.mdDoc "baseLibraries"; - }; + options.programs.nix-ld = { + enable = lib.mkEnableOption (lib.mdDoc ''nix-ld, Documentation: <https://github.com/Mic92/nix-ld>''); + package = lib.mkOption { + type = lib.types.package; + description = lib.mdDoc "Which package to use for the nix-ld."; + default = pkgs.nix-ld; + defaultText = lib.literalExpression "pkgs.nix-ld"; + }; + libraries = lib.mkOption { + type = lib.types.listOf lib.types.package; + description = lib.mdDoc "Libraries that automatically become available to all programs. The default set includes common libraries."; + default = baseLibraries; + defaultText = lib.literalExpression "baseLibraries derived from systemd and nix dependencies."; }; }; + config = lib.mkIf config.programs.nix-ld.enable { systemd.tmpfiles.packages = [ cfg.package ]; |