summaryrefslogtreecommitdiff
path: root/modules/programs
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2021-10-23 15:05:52 +0200
committerDaiderd Jordan <daiderd@gmail.com>2021-10-23 15:06:42 +0200
commit44da835ac40dab5fd231298b59d83487382d2fab (patch)
tree38759adb4565c164518441b6759960e11f1e61c1 /modules/programs
parent8dfeb92ec1b217898f9cf9f64421120b2a20fed4 (diff)
add forward compatibility for literalExample deprecation
Fixes #367
Diffstat (limited to 'modules/programs')
-rw-r--r--modules/programs/ssh/default.nix2
-rw-r--r--modules/programs/vim.nix2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/programs/ssh/default.nix b/modules/programs/ssh/default.nix
index af2d76b..f93890f 100644
--- a/modules/programs/ssh/default.nix
+++ b/modules/programs/ssh/default.nix
@@ -58,7 +58,7 @@ in
description = ''
The set of system-wide known SSH hosts.
'';
- example = literalExample ''
+ example = literalExpression ''
[
{
hostNames = [ "myhost" "myhost.mydomain.com" "10.10.1.4" ];
diff --git a/modules/programs/vim.nix b/modules/programs/vim.nix
index bceae54..345532e 100644
--- a/modules/programs/vim.nix
+++ b/modules/programs/vim.nix
@@ -31,7 +31,7 @@ in
programs.vim.extraKnownPlugins = mkOption {
type = types.attrsOf types.package;
default = {};
- example = literalExample
+ example = literalExpression
''
{
vim-jsx = pkgs.vimUtils.buildVimPluginFrom2Nix {