From d19cfc93694ed65e26d1573c7169a808bbe64c3a Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Fri, 23 Aug 2024 14:26:28 +0000 Subject: [PATCH] removed not needed lib.literalExpression from module doc --- nix/nixos-modules/options.nix | 10 +++------- nix/nixos-modules/secrix.nix | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/nix/nixos-modules/options.nix b/nix/nixos-modules/options.nix index 1a1c458..2aebd63 100644 --- a/nix/nixos-modules/options.nix +++ b/nix/nixos-modules/options.nix @@ -21,9 +21,7 @@ This is used by other option{x-banananetwork} modules. ''; type = with lib.types; nullOr str; - example = lib.literalExpression '' - ssh-ed25519 … - ''; + example = "ssh-ed25519 …"; }; sshPublicKeys = lib.mkOption { @@ -33,9 +31,7 @@ This is used by other option{x-banananetwork} modules. ''; type = with lib.types; listOf str; - example = lib.literalExpression '' - [ "ssh-ed25519 ..." ] - ''; + example = [ "ssh-ed25519 ..." ]; }; userName = lib.mkOption { @@ -43,7 +39,7 @@ my username for most/all uses ''; type = lib.types.str; - example = lib.literalExpression "zocker"; + example = "zocker"; }; }; diff --git a/nix/nixos-modules/secrix.nix b/nix/nixos-modules/secrix.nix index ae3eb49..5c97bc1 100644 --- a/nix/nixos-modules/secrix.nix +++ b/nix/nixos-modules/secrix.nix @@ -33,7 +33,7 @@ in ''; type = with lib.types; nullOr str; default = null; - example = lib.literalExpression "rsa"; + example = "rsa"; }; };