summaryrefslogtreecommitdiff
path: root/modules/system
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/system
parent8dfeb92ec1b217898f9cf9f64421120b2a20fed4 (diff)
add forward compatibility for literalExample deprecation
Fixes #367
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/patches.nix2
-rw-r--r--modules/system/shells.nix2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/system/patches.nix b/modules/system/patches.nix
index 0ef3e73..e434880 100644
--- a/modules/system/patches.nix
+++ b/modules/system/patches.nix
@@ -12,7 +12,7 @@ in
system.patches = mkOption {
type = types.listOf types.path;
default = [];
- example = literalExample ''
+ example = literalExpression ''
[
(pkgs.writeText "bashrc.patch" ''''
--- a/etc/bashrc
diff --git a/modules/system/shells.nix b/modules/system/shells.nix
index 3009927..ac9d619 100644
--- a/modules/system/shells.nix
+++ b/modules/system/shells.nix
@@ -11,7 +11,7 @@ in
environment.shells = mkOption {
type = types.listOf (types.either types.shellPackage types.path);
default = [];
- example = literalExample "[ pkgs.bashInteractive pkgs.zsh ]";
+ example = literalExpression "[ pkgs.bashInteractive pkgs.zsh ]";
description = ''
A list of permissible login shells for user accounts.
No need to mention <literal>/bin/sh</literal>