mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:50:44 +08:00
Replace usage of literalExample
Instead use the new function `literalExpression`. See https://github.com/NixOS/nixpkgs/pull/136909
This commit is contained in:
committed by
Robert Helgesson
parent
468c461139
commit
bd11e2c5e6
@@ -105,7 +105,7 @@ in {
|
||||
description = ''
|
||||
Package providing the <command>rofi</command> binary.
|
||||
'';
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
pkgs.rofi.override { plugins = [ pkgs.rofi-emoji ]; };
|
||||
'';
|
||||
};
|
||||
@@ -116,7 +116,7 @@ in {
|
||||
description = ''
|
||||
List of rofi plugins to be installed.
|
||||
'';
|
||||
example = literalExample "[ pkgs.rofi-calc ]";
|
||||
example = literalExpression "[ pkgs.rofi-calc ]";
|
||||
};
|
||||
|
||||
font = mkOption {
|
||||
@@ -166,7 +166,7 @@ in {
|
||||
theme = mkOption {
|
||||
default = null;
|
||||
type = with types; nullOr (oneOf [ str path themeType ]);
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
let
|
||||
# Use `mkLiteral` for string-like values that should show without
|
||||
# quotes, e.g.:
|
||||
@@ -211,7 +211,7 @@ in {
|
||||
|
||||
extraConfig = mkOption {
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
modi = "drun,emoji,ssh";
|
||||
kb-primary-paste = "Control+V,Shift+Insert";
|
||||
|
||||
Reference in New Issue
Block a user