mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 03:29:45 +01:00
Replace usage of literalExample
Instead use the new function `literalExpression`. See https://github.com/NixOS/nixpkgs/pull/136909
This commit is contained in:
parent
468c461139
commit
bd11e2c5e6
148 changed files with 335 additions and 335 deletions
|
@ -115,7 +115,7 @@ let
|
|||
if versionAtLeast config.home.stateVersion "19.09"
|
||||
then null
|
||||
else "us";
|
||||
defaultText = literalExample "null";
|
||||
defaultText = literalExpression "null";
|
||||
description = ''
|
||||
Keyboard layout. If <literal>null</literal>, then the system
|
||||
configuration will be used.
|
||||
|
@ -149,7 +149,7 @@ let
|
|||
if versionAtLeast config.home.stateVersion "19.09"
|
||||
then null
|
||||
else "";
|
||||
defaultText = literalExample "null";
|
||||
defaultText = literalExpression "null";
|
||||
example = "colemak";
|
||||
description = ''
|
||||
X keyboard variant. If <literal>null</literal>, then the
|
||||
|
@ -182,7 +182,7 @@ in
|
|||
options = {
|
||||
home.username = mkOption {
|
||||
type = types.str;
|
||||
defaultText = literalExample ''
|
||||
defaultText = literalExpression ''
|
||||
"$USER" for state version < 20.09,
|
||||
undefined for state version ≥ 20.09
|
||||
'';
|
||||
|
@ -192,7 +192,7 @@ in
|
|||
|
||||
home.homeDirectory = mkOption {
|
||||
type = types.path;
|
||||
defaultText = literalExample ''
|
||||
defaultText = literalExpression ''
|
||||
"$HOME" for state version < 20.09,
|
||||
undefined for state version ≥ 20.09
|
||||
'';
|
||||
|
@ -321,7 +321,7 @@ in
|
|||
home.activation = mkOption {
|
||||
type = hm.types.dagOf types.str;
|
||||
default = {};
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
myActivationAction = lib.hm.dag.entryAfter ["writeBoundary"] '''
|
||||
$DRY_RUN_CMD ln -s $VERBOSE_ARG \
|
||||
|
|
|
@ -17,7 +17,7 @@ in {
|
|||
engines = mkOption {
|
||||
type = with types; listOf fcitxEngine;
|
||||
default = [ ];
|
||||
example = literalExample "with pkgs.fcitx-engines; [ mozc hangul ]";
|
||||
example = literalExpression "with pkgs.fcitx-engines; [ mozc hangul ]";
|
||||
description = let
|
||||
enginesDrv = filterAttrs (const isDerivation) pkgs.fcitx-engines;
|
||||
engines = concatStringsSep ", "
|
||||
|
|
|
@ -12,7 +12,7 @@ in {
|
|||
addons = mkOption {
|
||||
type = with types; listOf package;
|
||||
default = [ ];
|
||||
example = literalExample "with pkgs; [ fcitx5-rime ]";
|
||||
example = literalExpression "with pkgs; [ fcitx5-rime ]";
|
||||
description = ''
|
||||
Enabled Fcitx5 addons.
|
||||
'';
|
||||
|
|
|
@ -9,7 +9,7 @@ in {
|
|||
config = mkOption {
|
||||
type = yamlFormat.type;
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
daemon = {
|
||||
modules = ["Xim" "Indicator"];
|
||||
|
|
|
@ -21,7 +21,7 @@ with lib;
|
|||
absPath = if hasPrefix "/" p then p else "${basePath}/${p}";
|
||||
in
|
||||
removePrefix (homeDirectory + "/") absPath;
|
||||
defaultText = literalExample "<name>";
|
||||
defaultText = literalExpression "<name>";
|
||||
description = ''
|
||||
Path to target file relative to ${basePathDesc}.
|
||||
'';
|
||||
|
|
|
@ -37,7 +37,7 @@ in rec {
|
|||
package = mkOption {
|
||||
type = types.nullOr types.package;
|
||||
default = null;
|
||||
example = literalExample "pkgs.dejavu_fonts";
|
||||
example = literalExpression "pkgs.dejavu_fonts";
|
||||
description = ''
|
||||
Package providing the font. This package will be installed
|
||||
to your profile. If <literal>null</literal> then the font
|
||||
|
|
|
@ -27,7 +27,7 @@ in {
|
|||
settings = mkOption {
|
||||
type = with types; attrsOf (attrsOf hm.types.gvariant);
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
"org/gnome/calculator" = {
|
||||
button-mode = "programming";
|
||||
|
|
|
@ -33,7 +33,7 @@ let
|
|||
package = mkOption {
|
||||
type = types.nullOr types.package;
|
||||
default = null;
|
||||
example = literalExample "pkgs.gnome.gnome_themes_standard";
|
||||
example = literalExpression "pkgs.gnome.gnome_themes_standard";
|
||||
description = ''
|
||||
Package providing the theme. This package will be installed
|
||||
to your profile. If <literal>null</literal> then the theme
|
||||
|
@ -97,9 +97,9 @@ in {
|
|||
type = types.path;
|
||||
default = "${config.home.homeDirectory}/.gtkrc-2.0";
|
||||
defaultText =
|
||||
literalExample ''"''${config.home.homeDirectory}/.gtkrc-2.0"'';
|
||||
literalExpression ''"''${config.home.homeDirectory}/.gtkrc-2.0"'';
|
||||
example =
|
||||
literalExample ''"''${config.xdg.configHome}/gtk-2.0/gtkrc"'';
|
||||
literalExpression ''"''${config.xdg.configHome}/gtk-2.0/gtkrc"'';
|
||||
description = ''
|
||||
The location to put the GTK configuration file.
|
||||
'';
|
||||
|
|
|
@ -78,7 +78,7 @@ in {
|
|||
|
||||
overlays = mkOption {
|
||||
default = null;
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
[ (self: super: {
|
||||
openssh = super.openssh.override {
|
||||
hpnSupport = true;
|
||||
|
|
|
@ -78,7 +78,7 @@ in {
|
|||
package = mkOption {
|
||||
type = types.nullOr types.package;
|
||||
default = null;
|
||||
example = literalExample "pkgs.adwaita-qt";
|
||||
example = literalExpression "pkgs.adwaita-qt";
|
||||
description = "Theme package to be used in Qt5 applications.";
|
||||
};
|
||||
};
|
||||
|
|
|
@ -105,7 +105,7 @@ let
|
|||
This may override other values.
|
||||
'';
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
Keywords = "calc;math";
|
||||
DBusActivatable = "false";
|
||||
|
@ -157,7 +157,7 @@ in {
|
|||
'';
|
||||
default = { };
|
||||
type = types.attrsOf (types.submodule desktopEntry);
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
firefox = {
|
||||
name = "Firefox";
|
||||
|
|
|
@ -30,7 +30,7 @@ in {
|
|||
associations.added = mkOption {
|
||||
type = types.attrsOf strListOrSingleton;
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
"mimetype1" = [ "foo1.desktop" "foo2.desktop" "foo3.desktop" ];
|
||||
"mimetype2" = "foo4.desktop";
|
||||
|
@ -57,7 +57,7 @@ in {
|
|||
defaultApplications = mkOption {
|
||||
type = types.attrsOf strListOrSingleton;
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
"mimetype1" = [ "default1.desktop" "default2.desktop" ];
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ in {
|
|||
type = types.bool;
|
||||
default = pkgs.hostPlatform.isLinux;
|
||||
defaultText =
|
||||
literalExample "true if host platform is Linux, false otherwise";
|
||||
literalExpression "true if host platform is Linux, false otherwise";
|
||||
description = ''
|
||||
Whether to install programs and files to support the
|
||||
XDG Shared MIME-info specification and XDG MIME Applications
|
||||
|
|
|
@ -17,7 +17,7 @@ in {
|
|||
config = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
example = literalExample ''[ "/etc/xdg" ]'';
|
||||
example = literalExpression ''[ "/etc/xdg" ]'';
|
||||
description = ''
|
||||
Directory names to add to <envar>XDG_CONFIG_DIRS</envar>
|
||||
in the user session.
|
||||
|
@ -27,7 +27,7 @@ in {
|
|||
data = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
example = literalExample ''[ "/usr/share" "/usr/local/share" ]'';
|
||||
example = literalExpression ''[ "/usr/share" "/usr/local/share" ]'';
|
||||
description = ''
|
||||
Directory names to add to <envar>XDG_DATA_DIRS</envar>
|
||||
in the user session.
|
||||
|
|
|
@ -13,14 +13,14 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.alacritty;
|
||||
defaultText = literalExample "pkgs.alacritty";
|
||||
defaultText = literalExpression "pkgs.alacritty";
|
||||
description = "The Alacritty package to install.";
|
||||
};
|
||||
|
||||
settings = mkOption {
|
||||
type = yamlFormat.type;
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
window.dimensions = {
|
||||
lines = 3;
|
||||
|
|
|
@ -25,7 +25,7 @@ with lib;
|
|||
+ "}[,\\]]?'";
|
||||
shellcommand_external_filtering = "False";
|
||||
};
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
type = "shellcommand";
|
||||
command = "abook --mutt-query";
|
||||
|
|
|
@ -200,7 +200,7 @@ in {
|
|||
handle_mouse = true;
|
||||
prefer_plaintext = true;
|
||||
};
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
auto_remove_unread = true;
|
||||
ask_subject = false;
|
||||
|
|
|
@ -31,7 +31,7 @@ in {
|
|||
</citerefentry>
|
||||
for options.
|
||||
'';
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
listen-port = 60000;
|
||||
dht-listen-port = 60000;
|
||||
|
|
|
@ -93,7 +93,7 @@ in {
|
|||
extraConfig = mkOption {
|
||||
type = jsonFormat.type;
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
poll.interval = 0;
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.atuin;
|
||||
defaultText = literalExample "pkgs.atuin";
|
||||
defaultText = literalExpression "pkgs.atuin";
|
||||
description = "The package to use for atuin.";
|
||||
};
|
||||
|
||||
|
@ -50,7 +50,7 @@ in {
|
|||
entries = entryOrAttrsOf (entryOrAttrsOf entry);
|
||||
in attrsOf entries // { description = "Atuin configuration"; };
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
auto_sync = true;
|
||||
sync_frequency = "5m";
|
||||
|
|
|
@ -106,7 +106,7 @@ let
|
|||
transform = mkOption {
|
||||
type = types.nullOr (matrixOf 3 3 types.float);
|
||||
default = null;
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
[
|
||||
[ 0.6 0.0 0.0 ]
|
||||
[ 0.0 0.6 0.0 ]
|
||||
|
@ -169,7 +169,7 @@ let
|
|||
exclusive.
|
||||
'';
|
||||
default = null;
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
x = 1.25;
|
||||
y = 1.25;
|
||||
|
@ -280,7 +280,7 @@ in {
|
|||
type = globalHooksModule;
|
||||
description = "Global hook scripts";
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
postswitch = {
|
||||
"notify-i3" = "''${pkgs.i3}/bin/i3-msg restart";
|
||||
|
@ -312,7 +312,7 @@ in {
|
|||
type = types.attrsOf profileModule;
|
||||
description = "Autorandr profiles specification.";
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
"work" = {
|
||||
fingerprint = {
|
||||
|
|
|
@ -97,7 +97,7 @@ in
|
|||
shellAliases = mkOption {
|
||||
default = {};
|
||||
type = types.attrsOf types.str;
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
ll = "ls -l";
|
||||
".." = "cd ..";
|
||||
|
|
|
@ -33,7 +33,7 @@ in {
|
|||
themes = mkOption {
|
||||
type = types.attrsOf types.lines;
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
dracula = builtins.readFile (pkgs.fetchFromGitHub {
|
||||
owner = "dracula";
|
||||
|
|
|
@ -31,9 +31,9 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.beets;
|
||||
defaultText = literalExample "pkgs.beets";
|
||||
defaultText = literalExpression "pkgs.beets";
|
||||
example =
|
||||
literalExample "(pkgs.beets.override { enableCheck = true; })";
|
||||
literalExpression "(pkgs.beets.override { enableCheck = true; })";
|
||||
description = ''
|
||||
The <literal>beets</literal> package to use.
|
||||
Can be used to specify extensions.
|
||||
|
|
|
@ -23,7 +23,7 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.bottom;
|
||||
defaultText = literalExample "pkgs.bottom";
|
||||
defaultText = literalExpression "pkgs.bottom";
|
||||
description = "Package providing <command>bottom</command>.";
|
||||
};
|
||||
|
||||
|
@ -38,7 +38,7 @@ in {
|
|||
See <link xlink:href="https://github.com/ClementTsang/bottom/blob/master/sample_configs/default_config.toml"/>
|
||||
for the default configuration.
|
||||
'';
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
flags = {
|
||||
avg_cpu = true;
|
||||
|
|
|
@ -67,7 +67,7 @@ in {
|
|||
execution = "less {file}";
|
||||
}
|
||||
];
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
[
|
||||
{ invocation = "p"; execution = ":parent"; }
|
||||
{ invocation = "edit"; shortcut = "e"; execution = "$EDITOR {file}" ; }
|
||||
|
@ -124,14 +124,14 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.broot;
|
||||
defaultText = literalExample "pkgs.broot";
|
||||
defaultText = literalExpression "pkgs.broot";
|
||||
description = "Package providing broot";
|
||||
};
|
||||
|
||||
skin = mkOption {
|
||||
type = types.attrsOf types.str;
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
status_normal_fg = "grayscale(18)";
|
||||
status_normal_bg = "grayscale(3)";
|
||||
|
|
|
@ -21,7 +21,7 @@ let
|
|||
inherit visible;
|
||||
type = types.package;
|
||||
default = defaultPkg;
|
||||
defaultText = literalExample "pkgs.${browser}";
|
||||
defaultText = literalExpression "pkgs.${browser}";
|
||||
description = "The ${name} package to use.";
|
||||
};
|
||||
} // optionalAttrs (!isProprietaryChrome) {
|
||||
|
@ -72,7 +72,7 @@ let
|
|||
};
|
||||
in listOf (coercedTo str (v: { id = v; }) extensionType);
|
||||
default = [ ];
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
[
|
||||
{ id = "cjpalhdlnbpafiamejdnhcphjbkeiagm"; } # ublock origin
|
||||
{
|
||||
|
|
|
@ -51,7 +51,7 @@ in {
|
|||
See <command>dircolors --print-database</command>
|
||||
for options.
|
||||
'';
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
OTHER_WRITABLE = "30;46";
|
||||
".sh" = "01;32";
|
||||
|
|
|
@ -16,8 +16,8 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.eclipses.eclipse-platform;
|
||||
defaultText = literalExample "pkgs.eclipses.eclipse-platform";
|
||||
example = literalExample "pkgs.eclipses.eclipse-java";
|
||||
defaultText = literalExpression "pkgs.eclipses.eclipse-platform";
|
||||
example = literalExpression "pkgs.eclipses.eclipse-java";
|
||||
description = ''
|
||||
The Eclipse package to install.
|
||||
'';
|
||||
|
|
|
@ -29,8 +29,8 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.emacs;
|
||||
defaultText = literalExample "pkgs.emacs";
|
||||
example = literalExample "pkgs.emacs25-nox";
|
||||
defaultText = literalExpression "pkgs.emacs";
|
||||
example = literalExpression "pkgs.emacs25-nox";
|
||||
description = "The Emacs package to use.";
|
||||
};
|
||||
|
||||
|
@ -55,7 +55,7 @@ in {
|
|||
default = self: [ ];
|
||||
type = hm.types.selectorFunction;
|
||||
defaultText = "epkgs: []";
|
||||
example = literalExample "epkgs: [ epkgs.emms epkgs.magit ]";
|
||||
example = literalExpression "epkgs: [ epkgs.emms epkgs.magit ]";
|
||||
description = ''
|
||||
Extra packages available to Emacs. To get a list of
|
||||
available packages run:
|
||||
|
@ -67,7 +67,7 @@ in {
|
|||
default = self: super: { };
|
||||
type = hm.types.overlayFunction;
|
||||
defaultText = "self: super: {}";
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
self: super: rec {
|
||||
haskell-mode = self.melpaPackages.haskell-mode;
|
||||
# ...
|
||||
|
|
|
@ -107,8 +107,8 @@ in {
|
|||
pkgs.firefox
|
||||
else
|
||||
pkgs.firefox-unwrapped;
|
||||
defaultText = literalExample "pkgs.firefox";
|
||||
example = literalExample ''
|
||||
defaultText = literalExpression "pkgs.firefox";
|
||||
example = literalExpression ''
|
||||
pkgs.firefox.override {
|
||||
# See nixpkgs' firefox/wrapper.nix to check which options you can use
|
||||
cfg = {
|
||||
|
@ -129,7 +129,7 @@ in {
|
|||
extensions = mkOption {
|
||||
type = types.listOf types.package;
|
||||
default = [ ];
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
with pkgs.nur.repos.rycee.firefox-addons; [
|
||||
https-everywhere
|
||||
privacy-badger
|
||||
|
@ -182,7 +182,7 @@ in {
|
|||
settings = mkOption {
|
||||
type = with types; attrsOf (either bool (either int str));
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
"browser.startup.homepage" = "https://nixos.org";
|
||||
"browser.search.region" = "GB";
|
||||
|
@ -254,7 +254,7 @@ in {
|
|||
};
|
||||
}));
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
wikipedia = {
|
||||
keyword = "wiki";
|
||||
|
|
|
@ -153,7 +153,7 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.fish;
|
||||
defaultText = literalExample "pkgs.fish";
|
||||
defaultText = literalExpression "pkgs.fish";
|
||||
description = ''
|
||||
The fish package to install. May be used to change the version.
|
||||
'';
|
||||
|
@ -162,7 +162,7 @@ in {
|
|||
shellAliases = mkOption {
|
||||
type = with types; attrsOf str;
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
g = "git";
|
||||
"..." = "cd ../..";
|
||||
|
@ -227,7 +227,7 @@ in {
|
|||
programs.fish.plugins = mkOption {
|
||||
type = types.listOf pluginModule;
|
||||
default = [ ];
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
[
|
||||
{
|
||||
name = "z";
|
||||
|
@ -261,7 +261,7 @@ in {
|
|||
programs.fish.functions = mkOption {
|
||||
type = with types; attrsOf (either lines functionModule);
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
__fish_command_not_found_handler = {
|
||||
body = "__fish_default_command_not_found_handler $argv[1]";
|
||||
|
|
|
@ -16,7 +16,7 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.foot;
|
||||
defaultText = literalExample "pkgs.foot";
|
||||
defaultText = literalExpression "pkgs.foot";
|
||||
description = "The foot package to install";
|
||||
};
|
||||
|
||||
|
@ -31,7 +31,7 @@ in {
|
|||
xlink:href="https://codeberg.org/dnkl/foot/src/branch/master/foot.ini"/>
|
||||
for a list of available options.
|
||||
'';
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
main = {
|
||||
term = "xterm-256color";
|
||||
|
|
|
@ -18,7 +18,7 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.fzf;
|
||||
defaultText = literalExample "pkgs.fzf";
|
||||
defaultText = literalExpression "pkgs.fzf";
|
||||
description = "Package providing the <command>fzf</command> tool.";
|
||||
};
|
||||
|
||||
|
@ -96,7 +96,7 @@ in {
|
|||
shellIntegrationOptions = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
example = literalExample ''[ "-d 40%" ]'';
|
||||
example = literalExpression ''[ "-d 40%" ]'';
|
||||
description = ''
|
||||
If <option>programs.fzf.tmux.enableShellIntegration</option> is set to <literal>true</literal>,
|
||||
shell integration will use these options for fzf-tmux.
|
||||
|
|
|
@ -15,7 +15,7 @@ let
|
|||
aliases = mkOption {
|
||||
type = with types; attrsOf str;
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
co = "pr checkout";
|
||||
pv = "pr view";
|
||||
|
@ -68,7 +68,7 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.gh;
|
||||
defaultText = literalExample "pkgs.gh";
|
||||
defaultText = literalExpression "pkgs.gh";
|
||||
description = "Package providing <command>gh</command>.";
|
||||
};
|
||||
|
||||
|
@ -77,7 +77,7 @@ in {
|
|||
default = { };
|
||||
description =
|
||||
"Configuration written to <filename>$XDG_CONFIG_HOME/gh/config.yml</filename>.";
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
git_protocol = "ssh";
|
||||
|
||||
|
|
|
@ -108,7 +108,7 @@ let
|
|||
contents = mkOption {
|
||||
type = types.attrsOf types.anything;
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
user = {
|
||||
email = "bob@work.example.com";
|
||||
|
@ -146,7 +146,7 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.git;
|
||||
defaultText = literalExample "pkgs.git";
|
||||
defaultText = literalExpression "pkgs.git";
|
||||
description = ''
|
||||
Git package to install. Use <varname>pkgs.gitAndTools.gitFull</varname>
|
||||
to gain access to <command>git send-email</command> for instance.
|
||||
|
@ -213,7 +213,7 @@ in {
|
|||
includes = mkOption {
|
||||
type = types.listOf includeModule;
|
||||
default = [ ];
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
[
|
||||
{ path = "~/path/to/config.inc"; }
|
||||
{
|
||||
|
|
|
@ -16,14 +16,14 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.go;
|
||||
defaultText = literalExample "pkgs.go";
|
||||
defaultText = literalExpression "pkgs.go";
|
||||
description = "The Go package to use.";
|
||||
};
|
||||
|
||||
packages = mkOption {
|
||||
type = with types; attrsOf path;
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
"golang.org/x/text" = builtins.fetchGit "https://go.googlesource.com/text";
|
||||
"golang.org/x/time" = builtins.fetchGit "https://go.googlesource.com/time";
|
||||
|
|
|
@ -29,14 +29,14 @@ in
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.gnupg;
|
||||
defaultText = literalExample "pkgs.gnupg";
|
||||
example = literalExample "pkgs.gnupg23";
|
||||
defaultText = literalExpression "pkgs.gnupg";
|
||||
example = literalExpression "pkgs.gnupg23";
|
||||
description = "The Gnupg package to use (also used the gpg-agent service).";
|
||||
};
|
||||
|
||||
settings = mkOption {
|
||||
type = types.attrsOf (types.either primitiveType (types.listOf types.str));
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
no-comments = false;
|
||||
s2k-cipher-algo = "AES128";
|
||||
|
@ -54,7 +54,7 @@ in
|
|||
|
||||
scdaemonSettings = mkOption {
|
||||
type = types.attrsOf (types.either primitiveType (types.listOf types.str));
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
disable-ccid = true;
|
||||
}
|
||||
|
@ -68,9 +68,9 @@ in
|
|||
|
||||
homedir = mkOption {
|
||||
type = types.path;
|
||||
example = literalExample "\"\${config.xdg.dataHome}/gnupg\"";
|
||||
example = literalExpression "\"\${config.xdg.dataHome}/gnupg\"";
|
||||
default = "${config.home.homeDirectory}/.gnupg";
|
||||
defaultText = literalExample "\"\${config.home.homeDirectory}/.gnupg\"";
|
||||
defaultText = literalExpression "\"\${config.home.homeDirectory}/.gnupg\"";
|
||||
description = "Directory to store keychains and configuration.";
|
||||
};
|
||||
};
|
||||
|
|
|
@ -45,7 +45,7 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.himalaya;
|
||||
defaultText = literalExample "pkgs.himalaya";
|
||||
defaultText = literalExpression "pkgs.himalaya";
|
||||
description = ''
|
||||
Package providing the <command>himalaya</command> mail client.
|
||||
'';
|
||||
|
@ -54,7 +54,7 @@ in {
|
|||
settings = mkOption {
|
||||
type = tomlFormat.type;
|
||||
default = { };
|
||||
example = lib.literalExample ''
|
||||
example = lib.literalExpression ''
|
||||
{
|
||||
default-page-size = 50;
|
||||
}
|
||||
|
@ -76,7 +76,7 @@ in {
|
|||
settings = mkOption {
|
||||
type = tomlFormat.type;
|
||||
default = { };
|
||||
example = lib.literalExample ''
|
||||
example = lib.literalExpression ''
|
||||
{
|
||||
default-page-size = 50;
|
||||
}
|
||||
|
|
|
@ -97,7 +97,7 @@ in {
|
|||
settings = mkOption {
|
||||
type = types.attrs;
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
color_scheme = 6;
|
||||
cpu_count_from_one = 0;
|
||||
|
|
|
@ -59,7 +59,7 @@ in {
|
|||
<link xlink:href="https://github.com/greshake/i3status-rust/blob/master/blocks.md"/>
|
||||
for block options.
|
||||
'';
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
[
|
||||
{
|
||||
block = "disk_space";
|
||||
|
@ -91,7 +91,7 @@ in {
|
|||
Any extra options to add to i3status-rust
|
||||
<filename>config</filename>.
|
||||
'';
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
theme = {
|
||||
name = "solarized-dark";
|
||||
|
@ -181,7 +181,7 @@ in {
|
|||
</citerefentry>
|
||||
for options.
|
||||
'';
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
bottom = {
|
||||
blocks = [
|
||||
{
|
||||
|
@ -234,7 +234,7 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.i3status-rust;
|
||||
defaultText = literalExample "pkgs.i3status-rust";
|
||||
defaultText = literalExpression "pkgs.i3status-rust";
|
||||
description = "Package providing i3status-rust";
|
||||
};
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ in {
|
|||
</citerefentry>
|
||||
for options.
|
||||
'';
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
colors = true;
|
||||
color_good = "#e0e0e0";
|
||||
|
@ -99,7 +99,7 @@ in {
|
|||
</citerefentry>
|
||||
for options.
|
||||
'';
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
format = "♪ %volume";
|
||||
format_muted = "♪ muted (%volume)";
|
||||
|
@ -119,7 +119,7 @@ in {
|
|||
</citerefentry>
|
||||
for options.
|
||||
'';
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
"volume master" = {
|
||||
position = 1;
|
||||
|
|
|
@ -170,7 +170,7 @@ in
|
|||
|
||||
networks = mkOption {
|
||||
default = {};
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
freenode = {
|
||||
nick = "hmuser";
|
||||
|
|
|
@ -33,7 +33,7 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.jq;
|
||||
defaultText = literalExample "pkgs.jq";
|
||||
defaultText = literalExpression "pkgs.jq";
|
||||
description = "jq package to use.";
|
||||
};
|
||||
|
||||
|
@ -44,7 +44,7 @@ in {
|
|||
<para>See <link xlink:href="https://stedolan.github.io/jq/manual/#Colors"/>.
|
||||
'';
|
||||
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
null = "1;30";
|
||||
false = "0;31";
|
||||
|
|
|
@ -642,7 +642,7 @@ in {
|
|||
plugins = mkOption {
|
||||
type = with types; listOf package;
|
||||
default = [ ];
|
||||
example = literalExample "[ pkgs.kakounePlugins.kak-fzf ]";
|
||||
example = literalExpression "[ pkgs.kakounePlugins.kak-fzf ]";
|
||||
description = ''
|
||||
List of kakoune plugins to install. To get a list of
|
||||
supported plugins run:
|
||||
|
|
|
@ -24,7 +24,7 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.keychain;
|
||||
defaultText = literalExample "pkgs.keychain";
|
||||
defaultText = literalExpression "pkgs.keychain";
|
||||
description = ''
|
||||
Keychain package to install.
|
||||
'';
|
||||
|
|
|
@ -36,7 +36,7 @@ in {
|
|||
type = types.nullOr (types.listOf types.str);
|
||||
default = null;
|
||||
description = "Command-line options to use when launched by Mac OS GUI";
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
[
|
||||
"--single-instance"
|
||||
"--directory=/tmp/my-dir"
|
||||
|
@ -48,7 +48,7 @@ in {
|
|||
settings = mkOption {
|
||||
type = types.attrsOf eitherStrBoolInt;
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
scrollback_lines = 10000;
|
||||
enable_audio_bell = false;
|
||||
|
@ -73,7 +73,7 @@ in {
|
|||
type = types.attrsOf types.str;
|
||||
default = { };
|
||||
description = "Mapping of keybindings to actions.";
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
"ctrl+c" = "copy_or_interrupt";
|
||||
"ctrl+f>2" = "set_font_size 20";
|
||||
|
@ -85,7 +85,7 @@ in {
|
|||
type = types.attrsOf types.str;
|
||||
default = { };
|
||||
description = "Environment variables to set or override.";
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
"LS_COLORS" = "1";
|
||||
}
|
||||
|
|
|
@ -19,8 +19,8 @@ in {
|
|||
settings = mkOption {
|
||||
type = yamlFormat.type;
|
||||
default = { };
|
||||
defaultText = literalExample "{ }";
|
||||
example = literalExample ''
|
||||
defaultText = literalExpression "{ }";
|
||||
example = literalExpression ''
|
||||
{
|
||||
gui.theme = {
|
||||
lightTheme = true;
|
||||
|
|
|
@ -117,7 +117,7 @@ in {
|
|||
cmdKeybindings = mkOption {
|
||||
type = with types; attrsOf (nullOr str);
|
||||
default = { };
|
||||
example = literalExample ''{ "<c-g>" = "cmd-escape"; }'';
|
||||
example = literalExpression ''{ "<c-g>" = "cmd-escape"; }'';
|
||||
description = ''
|
||||
Keys to bind to command line commands which can only be one of the
|
||||
builtin commands. Keys set to null or an empty string are deleted.
|
||||
|
@ -127,7 +127,7 @@ in {
|
|||
previewer.source = mkOption {
|
||||
type = with types; nullOr path;
|
||||
default = null;
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
pkgs.writeShellScript "pv.sh" '''
|
||||
#!/bin/sh
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.mangohud;
|
||||
defaultText = literalExample "pkgs.mangohud";
|
||||
defaultText = literalExpression "pkgs.mangohud";
|
||||
description = "The Mangohud package to install.";
|
||||
};
|
||||
|
||||
|
@ -47,7 +47,7 @@ in {
|
|||
settings = mkOption {
|
||||
type = with types; attrsOf settingsType;
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
output_folder = ~/Documents/mangohud/;
|
||||
full = true;
|
||||
|
@ -64,7 +64,7 @@ in {
|
|||
settingsPerApplication = mkOption {
|
||||
type = with types; attrsOf (attrsOf settingsType);
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
mpv = {
|
||||
no_display = true;
|
||||
|
|
|
@ -28,7 +28,7 @@ in {
|
|||
Add terms to the <filename>matplotlibrc</filename> file to
|
||||
control the default matplotlib behavior.
|
||||
'';
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
backend = "Qt5Agg";
|
||||
axes = {
|
||||
|
|
|
@ -94,7 +94,7 @@ let
|
|||
extraConfig = mkOption {
|
||||
type = extraConfigType;
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
Create = "both";
|
||||
CopyArrivalDate = "yes";
|
||||
|
@ -192,7 +192,7 @@ in {
|
|||
extraConfig.channel = mkOption {
|
||||
type = extraConfigType;
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
MaxMessages = 10000;
|
||||
MaxSize = "1m";
|
||||
|
@ -222,7 +222,7 @@ in {
|
|||
extraConfig.account = mkOption {
|
||||
type = extraConfigType;
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
PipelineDepth = 10;
|
||||
Timeout = 60;
|
||||
|
|
|
@ -197,15 +197,15 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.isync;
|
||||
defaultText = literalExample "pkgs.isync";
|
||||
example = literalExample "pkgs.isync";
|
||||
defaultText = literalExpression "pkgs.isync";
|
||||
example = literalExpression "pkgs.isync";
|
||||
description = "The package to use for the mbsync binary.";
|
||||
};
|
||||
|
||||
groups = mkOption {
|
||||
type = types.attrsOf (types.attrsOf (types.listOf types.str));
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
inboxes = {
|
||||
account1 = [ "Inbox" ];
|
||||
|
|
|
@ -17,7 +17,7 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.mercurial;
|
||||
defaultText = literalExample "pkgs.mercurial";
|
||||
defaultText = literalExpression "pkgs.mercurial";
|
||||
description = "Mercurial package to install.";
|
||||
};
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.mpv;
|
||||
example = literalExample
|
||||
example = literalExpression
|
||||
"pkgs.wrapMpv (pkgs.mpv-unwrapped.override { vapoursynthSupport = true; }) { youtubeSupport = true; }";
|
||||
description = ''
|
||||
Package providing mpv.
|
||||
|
@ -81,7 +81,7 @@ in {
|
|||
scripts = mkOption {
|
||||
type = with types; listOf (either package str);
|
||||
default = [ ];
|
||||
example = literalExample "[ pkgs.mpvScripts.mpris ]";
|
||||
example = literalExpression "[ pkgs.mpvScripts.mpris ]";
|
||||
description = ''
|
||||
List of scripts to use with mpv.
|
||||
'';
|
||||
|
@ -99,7 +99,7 @@ in {
|
|||
'';
|
||||
type = mpvOptions;
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
profile = "gpu-hq";
|
||||
force-window = true;
|
||||
|
@ -117,7 +117,7 @@ in {
|
|||
'';
|
||||
type = mpvProfiles;
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
fast = {
|
||||
vo = "vdpau";
|
||||
|
@ -152,7 +152,7 @@ in {
|
|||
'';
|
||||
type = mpvBindings;
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
WHEEL_UP = "seek 10";
|
||||
WHEEL_DOWN = "seek -10";
|
||||
|
|
|
@ -53,12 +53,12 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.ncmpcpp;
|
||||
defaultText = literalExample "pkgs.ncmpcpp";
|
||||
defaultText = literalExpression "pkgs.ncmpcpp";
|
||||
description = ''
|
||||
Package providing the <code>ncmpcpp</code> command.
|
||||
'';
|
||||
example =
|
||||
literalExample "pkgs.ncmpcpp.override { visualizerSupport = true; }";
|
||||
literalExpression "pkgs.ncmpcpp.override { visualizerSupport = true; }";
|
||||
};
|
||||
|
||||
mpdMusicDir = mkOption {
|
||||
|
@ -68,7 +68,7 @@ in {
|
|||
mpdCfg.musicDirectory
|
||||
else
|
||||
null;
|
||||
defaultText = literalExample ''
|
||||
defaultText = literalExpression ''
|
||||
if pkgs.stdenv.hostPlatform.isLinux && config.services.mpd.enable then
|
||||
config.services.mpd.musicDirectory
|
||||
else
|
||||
|
@ -101,7 +101,7 @@ in {
|
|||
type = types.listOf bindingType;
|
||||
default = [ ];
|
||||
description = "List of keybindings.";
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
[
|
||||
{ key = "j"; command = "scroll_down"; }
|
||||
{ key = "k"; command = "scroll_up"; }
|
||||
|
|
|
@ -17,14 +17,14 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.ncspot;
|
||||
defaultText = literalExample "pkgs.ncspot";
|
||||
defaultText = literalExpression "pkgs.ncspot";
|
||||
description = "The package to use for ncspot.";
|
||||
};
|
||||
|
||||
settings = mkOption {
|
||||
type = tomlFormat.type;
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
shuffle = true;
|
||||
gapless = true;
|
||||
|
|
|
@ -49,7 +49,7 @@ in {
|
|||
automaticPreferences = mkOption {
|
||||
type = types.attrsOf types.lines;
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
nix = '''
|
||||
TAB 0
|
||||
|
|
|
@ -30,7 +30,7 @@ in {
|
|||
"msmtpq --read-envelope-from --read-recipients"
|
||||
else
|
||||
null;
|
||||
defaultText = literalExample ''
|
||||
defaultText = literalExpression ''
|
||||
if config.msmtp.enable then
|
||||
"msmtpq --read-envelope-from --read-recipients"
|
||||
else
|
||||
|
|
|
@ -234,7 +234,7 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.neomutt;
|
||||
defaultText = literalExample "pkgs.neomutt";
|
||||
defaultText = literalExpression "pkgs.neomutt";
|
||||
description = "The neomutt package to use.";
|
||||
};
|
||||
|
||||
|
|
|
@ -125,7 +125,7 @@ in {
|
|||
type = with types; either extraPython3PackageType (listOf package);
|
||||
default = (_: [ ]);
|
||||
defaultText = "ps: []";
|
||||
example = literalExample "(ps: with ps; [ python-language-server ])";
|
||||
example = literalExpression "(ps: with ps; [ python-language-server ])";
|
||||
description = ''
|
||||
A function in python.withPackages format, which returns a
|
||||
list of Python 3 packages required for your plugins to work.
|
||||
|
@ -144,7 +144,7 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.neovim-unwrapped;
|
||||
defaultText = literalExample "pkgs.neovim-unwrapped";
|
||||
defaultText = literalExpression "pkgs.neovim-unwrapped";
|
||||
description = "The package to use for the neovim binary.";
|
||||
};
|
||||
|
||||
|
@ -158,7 +158,7 @@ in {
|
|||
configure = mkOption {
|
||||
type = types.attrsOf types.anything;
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
configure = {
|
||||
customRC = $''''
|
||||
" here your custom configuration goes!
|
||||
|
@ -210,7 +210,7 @@ in {
|
|||
plugins = mkOption {
|
||||
type = with types; listOf (either package pluginWithConfigType);
|
||||
default = [ ];
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
with pkgs.vimPlugins; [
|
||||
yankring
|
||||
vim-nix
|
||||
|
@ -235,7 +235,7 @@ in {
|
|||
settings = mkOption {
|
||||
type = jsonFormat.type;
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
"suggest.noselect" = true;
|
||||
"suggest.enablePreview" = true;
|
||||
|
|
|
@ -9,7 +9,7 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.nix-index;
|
||||
defaultText = literalExample "pkgs.nix-index";
|
||||
defaultText = literalExpression "pkgs.nix-index";
|
||||
description = "Package providing the <command>nix-index</command> tool.";
|
||||
};
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ let
|
|||
options = {
|
||||
src = mkOption {
|
||||
type = with types; nullOr path;
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
(pkgs.fetchFromGitHub {
|
||||
owner = "jarun";
|
||||
repo = "nnn";
|
||||
|
@ -34,7 +34,7 @@ let
|
|||
Key mappings to the plugins.
|
||||
'';
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
c = "fzcd";
|
||||
f = "finder";
|
||||
|
@ -54,9 +54,9 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.nnn;
|
||||
defaultText = literalExample "pkgs.nnn";
|
||||
defaultText = literalExpression "pkgs.nnn";
|
||||
example =
|
||||
literalExample "pkgs.nnn.override ({ withNerdIcons = true; });";
|
||||
literalExpression "pkgs.nnn.override ({ withNerdIcons = true; });";
|
||||
description = ''
|
||||
Package containing the <command>nnn</command> program.
|
||||
'';
|
||||
|
@ -76,7 +76,7 @@ in {
|
|||
description = ''
|
||||
Directory bookmarks.
|
||||
'';
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
d = "~/Documents";
|
||||
D = "~/Downloads";
|
||||
|
@ -90,7 +90,7 @@ in {
|
|||
extraPackages = mkOption {
|
||||
type = with types; listOf package;
|
||||
example =
|
||||
literalExample "with pkgs; [ ffmpegthumbnailer mediainfo sxiv ]";
|
||||
literalExpression "with pkgs; [ ffmpegthumbnailer mediainfo sxiv ]";
|
||||
description = ''
|
||||
Extra packages available to nnn.
|
||||
'';
|
||||
|
|
|
@ -26,7 +26,7 @@ in {
|
|||
</citerefentry>.
|
||||
for the full list of options.
|
||||
'';
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
say = {
|
||||
voice = "Alex";
|
||||
|
|
|
@ -17,7 +17,7 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.nushell;
|
||||
defaultText = literalExample "pkgs.nushell";
|
||||
defaultText = literalExpression "pkgs.nushell";
|
||||
description = "The package to use for nushell.";
|
||||
};
|
||||
|
||||
|
@ -31,7 +31,7 @@ in {
|
|||
entries = entryOrAttrsOf (entryOrAttrsOf entry);
|
||||
in attrsOf entries // { description = "Nushell configuration"; };
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
edit_mode = "vi";
|
||||
startup = [ "alias la [] { ls -a }" "alias e [msg] { echo $msg }" ];
|
||||
|
|
|
@ -16,7 +16,7 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.obs-studio;
|
||||
defaultText = literalExample "pkgs.obs-studio";
|
||||
defaultText = literalExpression "pkgs.obs-studio";
|
||||
description = ''
|
||||
OBS Studio package to install.
|
||||
'';
|
||||
|
@ -31,7 +31,7 @@ in {
|
|||
|
||||
plugins = mkOption {
|
||||
default = [ ];
|
||||
example = literalExample "[ pkgs.obs-studio-plugins.wlrobs ]";
|
||||
example = literalExpression "[ pkgs.obs-studio-plugins.wlrobs ]";
|
||||
description = "Optional OBS plugins.";
|
||||
type = types.listOf types.package;
|
||||
};
|
||||
|
|
|
@ -28,14 +28,14 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.octant;
|
||||
defaultText = literalExample "pkgs.octant";
|
||||
example = literalExample "pkgs.octant-other";
|
||||
defaultText = literalExpression "pkgs.octant";
|
||||
example = literalExpression "pkgs.octant-other";
|
||||
description = "The Octant package to use.";
|
||||
};
|
||||
|
||||
plugins = mkOption {
|
||||
default = [ ];
|
||||
example = literalExample "[ pkgs.starboard-octant-plugin ]";
|
||||
example = literalExpression "[ pkgs.starboard-octant-plugin ]";
|
||||
description = "Optional Octant plugins.";
|
||||
type = types.listOf types.package;
|
||||
};
|
||||
|
|
|
@ -132,7 +132,7 @@ in {
|
|||
extraConfig.mbnames = mkOption {
|
||||
type = extraConfigType;
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
filename = "~/.config/mutt/mailboxes";
|
||||
header = "'mailboxes '";
|
||||
|
|
|
@ -15,7 +15,7 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.opam;
|
||||
defaultText = literalExample "pkgs.opam";
|
||||
defaultText = literalExpression "pkgs.opam";
|
||||
description = "Opam package to install.";
|
||||
};
|
||||
|
||||
|
|
|
@ -15,8 +15,8 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.pass;
|
||||
defaultText = literalExample "pkgs.pass";
|
||||
example = literalExample ''
|
||||
defaultText = literalExpression "pkgs.pass";
|
||||
example = literalExpression ''
|
||||
pkgs.pass.withExtensions (exts: [ exts.pass-otp ])
|
||||
'';
|
||||
description = ''
|
||||
|
@ -31,10 +31,10 @@ in {
|
|||
default = {
|
||||
PASSWORD_STORE_DIR = "${config.xdg.dataHome}/password-store";
|
||||
};
|
||||
defaultText = literalExample ''
|
||||
defaultText = literalExpression ''
|
||||
{ PASSWORD_STORE_DIR = "$XDG_DATA_HOME/password-store"; }
|
||||
'';
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
PASSWORD_STORE_DIR = "/some/directory";
|
||||
PASSWORD_STORE_KEY = "12345678";
|
||||
|
|
|
@ -40,7 +40,7 @@ let
|
|||
tag = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
example = literalExample ''["git" "nixpkgs"]'';
|
||||
example = literalExpression ''["git" "nixpkgs"]'';
|
||||
description = ''
|
||||
List of tags attached to the command.
|
||||
'';
|
||||
|
@ -64,7 +64,7 @@ in {
|
|||
selectcmdPackage = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.fzf;
|
||||
defaultText = literalExample "pkgs.fzf";
|
||||
defaultText = literalExpression "pkgs.fzf";
|
||||
description = ''
|
||||
The package needed for the <varname>settings.selectcmd</varname>.
|
||||
'';
|
||||
|
|
|
@ -16,13 +16,13 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.pidgin;
|
||||
defaultText = literalExample "pkgs.pidgin";
|
||||
defaultText = literalExpression "pkgs.pidgin";
|
||||
description = "The Pidgin package to use.";
|
||||
};
|
||||
|
||||
plugins = mkOption {
|
||||
default = [ ];
|
||||
example = literalExample "[ pkgs.pidgin-otr pkgs.pidgin-osd ]";
|
||||
example = literalExpression "[ pkgs.pidgin-otr pkgs.pidgin-osd ]";
|
||||
description = "Plugins that should be available to Pidgin.";
|
||||
};
|
||||
};
|
||||
|
|
|
@ -14,14 +14,14 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.piston-cli;
|
||||
defaultText = literalExample "pkgs.piston-cli";
|
||||
defaultText = literalExpression "pkgs.piston-cli";
|
||||
description = "The piston-cli package to use.";
|
||||
};
|
||||
|
||||
settings = mkOption {
|
||||
type = yamlFormat.type;
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
theme = "emacs";
|
||||
box_style = "MINIMAL_DOUBLE_HEAD";
|
||||
|
|
|
@ -73,7 +73,7 @@ in {
|
|||
may use '~' to represent your home directory but you should
|
||||
protect it to avoid shell substitution.
|
||||
'';
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{ "\\~/projects/home-manager" = "prj:home-manager"; }
|
||||
'';
|
||||
};
|
||||
|
@ -85,7 +85,7 @@ in {
|
|||
This can be any key/value pair as described in
|
||||
<link xlink:href="https://github.com/justjanne/powerline-go"/>.
|
||||
'';
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
hostname-only-if-ssh = true;
|
||||
numeric-exit-codes = true;
|
||||
|
|
|
@ -41,7 +41,7 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.qutebrowser;
|
||||
defaultText = literalExample "pkgs.qutebrowser";
|
||||
defaultText = literalExpression "pkgs.qutebrowser";
|
||||
description = "Qutebrowser package to install.";
|
||||
};
|
||||
|
||||
|
@ -77,7 +77,7 @@ in {
|
|||
prepending the search engine name to the search term, for example
|
||||
<literal>:open google qutebrowser</literal>.
|
||||
'';
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
w = "https://en.wikipedia.org/wiki/Special:Search?search={}&go=Go&ns0=1";
|
||||
aw = "https://wiki.archlinux.org/?search={}";
|
||||
|
@ -95,7 +95,7 @@ in {
|
|||
See <link xlink:href="https://qutebrowser.org/doc/help/settings.html"/>
|
||||
for options.
|
||||
'';
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
colors = {
|
||||
hints = {
|
||||
|
@ -239,7 +239,7 @@ in {
|
|||
</varlistentry>
|
||||
</variablelist>
|
||||
'';
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
normal = {
|
||||
"<Ctrl-v>" = "spawn mpv {url}";
|
||||
|
@ -260,7 +260,7 @@ in {
|
|||
Quickmarks to add to qutebrowser's <filename>quickmarks</filename> file.
|
||||
Note that when Home Manager manages your quickmarks, you cannot edit them at runtime.
|
||||
'';
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
nixpkgs = "https://github.com/NixOS/nixpkgs";
|
||||
home-manager = "https://github.com/nix-community/home-manager";
|
||||
|
|
|
@ -73,7 +73,7 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.rbw;
|
||||
defaultText = literalExample "pkgs.rbw";
|
||||
defaultText = literalExpression "pkgs.rbw";
|
||||
description = ''
|
||||
Package providing the <command>rbw</command> tool and its
|
||||
<command>rbw-agent</command> daemon.
|
||||
|
@ -83,7 +83,7 @@ in {
|
|||
settings = mkOption {
|
||||
type = types.nullOr settingsModule;
|
||||
default = null;
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
email = "name@example.com";
|
||||
lock_timeout = 300;
|
||||
|
|
|
@ -30,7 +30,7 @@ in {
|
|||
bindings = mkOption {
|
||||
default = { };
|
||||
type = types.attrsOf types.str;
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{ "\\C-h" = "backward-kill-word"; }
|
||||
'';
|
||||
description = "Readline bindings.";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -76,7 +76,7 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.sbt;
|
||||
defaultText = literalExample "pkgs.sbt";
|
||||
defaultText = literalExpression "pkgs.sbt";
|
||||
description = "The package with sbt to be installed.";
|
||||
};
|
||||
|
||||
|
@ -89,7 +89,7 @@ in {
|
|||
plugins = mkOption {
|
||||
type = types.listOf (sbtTypes.plugin);
|
||||
default = [ ];
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
[
|
||||
{
|
||||
org = "net.virtual-void";
|
||||
|
@ -111,7 +111,7 @@ in {
|
|||
credentials = mkOption {
|
||||
type = types.listOf (sbtTypes.credential);
|
||||
default = [ ];
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
[{
|
||||
realm = "Sonatype Nexus Repository Manager";
|
||||
host = "example.com";
|
||||
|
|
|
@ -12,7 +12,7 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.scmpuff;
|
||||
defaultText = literalExample "pkgs.scmpuff";
|
||||
defaultText = literalExpression "pkgs.scmpuff";
|
||||
description = "Package providing the <command>scmpuff</command> tool.";
|
||||
};
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.senpai;
|
||||
defaultText = literalExample "pkgs.senpai";
|
||||
defaultText = literalExpression "pkgs.senpai";
|
||||
description = "The <literal>senpai</literal> package to use.";
|
||||
};
|
||||
config = mkOption {
|
||||
|
@ -48,7 +48,7 @@ in {
|
|||
};
|
||||
};
|
||||
};
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
addr = "libera.chat:6697";
|
||||
nick = "nicholas";
|
||||
|
|
|
@ -44,11 +44,11 @@ in {
|
|||
type = types.nullOr (types.enum [ "us" "eu" "jp" ]);
|
||||
default = null;
|
||||
defaultText =
|
||||
literalExample "us"; # This is set both in nixpkgs and upstream
|
||||
literalExpression "us"; # This is set both in nixpkgs and upstream
|
||||
description = ''
|
||||
Your baserom's region. Note that only "us", "eu", and "jp" are supported.
|
||||
'';
|
||||
example = literalExample "jp";
|
||||
example = literalExpression "jp";
|
||||
};
|
||||
|
||||
baserom = mkOption {
|
||||
|
@ -56,7 +56,7 @@ in {
|
|||
default = null;
|
||||
description =
|
||||
"The path to the Super Mario 64 baserom to extract assets from.";
|
||||
example = literalExample "/home/foo/baserom.us.z64";
|
||||
example = literalExpression "/home/foo/baserom.us.z64";
|
||||
};
|
||||
|
||||
extraCompileFlags = mkOption {
|
||||
|
@ -67,7 +67,7 @@ in {
|
|||
<link xlink:href="https://github.com/sm64pc/sm64ex/wiki/Build-options"/>
|
||||
for more information.
|
||||
'';
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
[
|
||||
"BETTERCAMERA=1"
|
||||
"NODRAWINGDISTANCE=1"
|
||||
|
@ -81,7 +81,7 @@ in {
|
|||
default = null;
|
||||
description =
|
||||
"Settings for sm64ex's <filename>~/.local/share/sm64pc/sm64config.txt</filename> file.";
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
fullscreen = false;
|
||||
window_x = 0;
|
||||
|
|
|
@ -217,7 +217,7 @@ let
|
|||
localForwards = mkOption {
|
||||
type = types.listOf forwardModule;
|
||||
default = [];
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
[
|
||||
{
|
||||
bind.port = 8080;
|
||||
|
@ -238,7 +238,7 @@ let
|
|||
remoteForwards = mkOption {
|
||||
type = types.listOf forwardModule;
|
||||
default = [];
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
[
|
||||
{
|
||||
bind.port = 8080;
|
||||
|
@ -259,7 +259,7 @@ let
|
|||
dynamicForwards = mkOption {
|
||||
type = types.listOf dynamicForwardModule;
|
||||
default = [];
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
[ { port = 8080; } ];
|
||||
'';
|
||||
description = ''
|
||||
|
@ -417,7 +417,7 @@ in
|
|||
matchBlocks = mkOption {
|
||||
type = hm.types.listOrDagOf matchBlockModule;
|
||||
default = {};
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
"john.example.com" = {
|
||||
hostname = "example.com";
|
||||
|
|
|
@ -19,7 +19,7 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.starship;
|
||||
defaultText = literalExample "pkgs.starship";
|
||||
defaultText = literalExpression "pkgs.starship";
|
||||
description = "The package to use for the starship binary.";
|
||||
};
|
||||
|
||||
|
@ -33,7 +33,7 @@ in {
|
|||
entries = entryOrAttrsOf (entryOrAttrsOf entry);
|
||||
in attrsOf entries // { description = "Starship configuration"; };
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
add_newline = false;
|
||||
format = lib.concatStrings [
|
||||
|
|
|
@ -42,7 +42,7 @@ in {
|
|||
config = mkOption {
|
||||
type = types.attrsOf types.anything;
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
confirmation = false;
|
||||
report.minimal.filter = "status:pending";
|
||||
|
|
|
@ -36,7 +36,7 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.terminator;
|
||||
example = literalExample "pkgs.terminator";
|
||||
example = literalExpression "pkgs.terminator";
|
||||
description = "terminator package to install.";
|
||||
};
|
||||
|
||||
|
@ -53,7 +53,7 @@ in {
|
|||
man page.
|
||||
'';
|
||||
type = types.attrsOf types.anything;
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
global_config.borderless = true;
|
||||
profiles.default.background_color = "#002b36";
|
||||
|
|
|
@ -18,14 +18,14 @@ in {
|
|||
|
||||
packageSet = mkOption {
|
||||
default = pkgs.texlive;
|
||||
defaultText = literalExample "pkgs.texlive";
|
||||
defaultText = literalExpression "pkgs.texlive";
|
||||
description = "TeX Live package set to use.";
|
||||
};
|
||||
|
||||
extraPackages = mkOption {
|
||||
default = tpkgs: { inherit (tpkgs) collection-basic; };
|
||||
defaultText = "tpkgs: { inherit (tpkgs) collection-basic; }";
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
tpkgs: { inherit (tpkgs) collection-fontsrecommended algorithms; }
|
||||
'';
|
||||
description = "Extra packages available to TeX Live.";
|
||||
|
|
|
@ -218,8 +218,8 @@ in
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.tmux;
|
||||
defaultText = literalExample "pkgs.tmux";
|
||||
example = literalExample "pkgs.tmux";
|
||||
defaultText = literalExpression "pkgs.tmux";
|
||||
example = literalExpression "pkgs.tmux";
|
||||
description = "The tmux package to install";
|
||||
};
|
||||
|
||||
|
@ -302,7 +302,7 @@ in
|
|||
run at the top of your configuration.
|
||||
'';
|
||||
default = [ ];
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
with pkgs; [
|
||||
tmuxPlugins.cpu
|
||||
{
|
||||
|
|
|
@ -18,15 +18,15 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.topgrade;
|
||||
defaultText = literalExample "pkgs.topgrade";
|
||||
defaultText = literalExpression "pkgs.topgrade";
|
||||
description = "The package to use for the topgrade binary.";
|
||||
};
|
||||
|
||||
settings = mkOption {
|
||||
type = tomlFormat.type;
|
||||
default = { };
|
||||
defaultText = literalExample "{ }";
|
||||
example = literalExample ''
|
||||
defaultText = literalExpression "{ }";
|
||||
example = literalExpression ''
|
||||
{
|
||||
assume_yes = true;
|
||||
disable = [
|
||||
|
|
|
@ -13,7 +13,7 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.rxvt_unicode;
|
||||
defaultText = literalExample "pkgs.rxvt_unicode";
|
||||
defaultText = literalExpression "pkgs.rxvt_unicode";
|
||||
description = "rxvt-unicode package to install.";
|
||||
};
|
||||
|
||||
|
@ -28,7 +28,7 @@ in {
|
|||
type = types.attrsOf types.str;
|
||||
default = { };
|
||||
description = "Mapping of keybindings to actions";
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
"Shift-Control-C" = "eval:selection_to_clipboard";
|
||||
"Shift-Control-V" = "eval:paste_clipboard";
|
||||
|
|
|
@ -68,7 +68,7 @@ in {
|
|||
plugins = mkOption {
|
||||
type = with types; listOf (either str package);
|
||||
default = defaultPlugins;
|
||||
example = literalExample "[ pkgs.vimPlugins.YankRing ]";
|
||||
example = literalExpression "[ pkgs.vimPlugins.YankRing ]";
|
||||
description = ''
|
||||
List of vim plugins to install. To get a list of supported plugins run:
|
||||
<command>nix-env -f '<nixpkgs>' -qaP -A vimPlugins</command>.
|
||||
|
@ -82,7 +82,7 @@ in {
|
|||
settings = mkOption {
|
||||
type = vimSettingsType;
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
expandtab = true;
|
||||
history = 1000;
|
||||
|
|
|
@ -41,7 +41,7 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.vscode;
|
||||
example = literalExample "pkgs.vscodium";
|
||||
example = literalExpression "pkgs.vscodium";
|
||||
description = ''
|
||||
Version of Visual Studio Code to install.
|
||||
'';
|
||||
|
@ -50,7 +50,7 @@ in {
|
|||
userSettings = mkOption {
|
||||
type = jsonFormat.type;
|
||||
default = { };
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
"update.channel" = "none";
|
||||
"[nix]"."editor.tabSize" = 2;
|
||||
|
@ -94,7 +94,7 @@ in {
|
|||
};
|
||||
});
|
||||
default = [ ];
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
[
|
||||
{
|
||||
key = "ctrl+c";
|
||||
|
@ -112,7 +112,7 @@ in {
|
|||
extensions = mkOption {
|
||||
type = types.listOf types.package;
|
||||
default = [ ];
|
||||
example = literalExample "[ pkgs.vscode-extensions.bbenoist.Nix ]";
|
||||
example = literalExpression "[ pkgs.vscode-extensions.bbenoist.Nix ]";
|
||||
description = ''
|
||||
The extensions Visual Studio Code should be started with.
|
||||
These will override but not delete manually installed ones.
|
||||
|
|
|
@ -8,7 +8,7 @@ let
|
|||
|
||||
defaultHieNixExe = hie-nix.hies + "/bin/hie-wrapper";
|
||||
defaultHieNixExeText =
|
||||
literalExample ''"''${pkgs.hie-nix.hies}/bin/hie-wrapper"'';
|
||||
literalExpression ''"''${pkgs.hie-nix.hies}/bin/hie-wrapper"'';
|
||||
|
||||
hie-nix = pkgs.hie-nix or (abort ''
|
||||
vscode.haskell: pkgs.hie-nix missing. Please add an overlay such as:
|
||||
|
@ -42,7 +42,7 @@ in {
|
|||
overlay or set this option. Example overlay configuration:
|
||||
<programlisting language="nix">${exampleOverlay}</programlisting>
|
||||
'';
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
(import ~/src/haskell-ide-engine {}).hies + "/bin/hie-wrapper";
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
let
|
||||
inherit (lib)
|
||||
any attrByPath attrNames concatMap concatMapStringsSep elem elemAt filter
|
||||
filterAttrs flip foldl' hasPrefix head length mergeAttrs optionalAttrs
|
||||
stringLength subtractLists types unique;
|
||||
inherit (lib.options) literalExample mkEnableOption mkOption;
|
||||
filterAttrs flip foldl' hasPrefix head length literalExpression mergeAttrs
|
||||
optionalAttrs stringLength subtractLists types unique;
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.modules) mkIf mkMerge;
|
||||
|
||||
cfg = config.programs.waybar;
|
||||
|
@ -82,7 +82,7 @@ let
|
|||
output = mkOption {
|
||||
type = nullOr (either str (listOf str));
|
||||
default = null;
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
[ "DP-1" "!DP-2" "!DP-3" ]
|
||||
'';
|
||||
description = ''
|
||||
|
@ -118,7 +118,7 @@ let
|
|||
type = listOf str;
|
||||
default = [ ];
|
||||
description = "Modules that will be displayed on the left.";
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
[ "sway/workspaces" "sway/mode" "wlr/taskbar" ]
|
||||
'';
|
||||
};
|
||||
|
@ -127,7 +127,7 @@ let
|
|||
type = listOf str;
|
||||
default = [ ];
|
||||
description = "Modules that will be displayed in the center.";
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
[ "sway/window" ]
|
||||
'';
|
||||
};
|
||||
|
@ -136,7 +136,7 @@ let
|
|||
type = listOf str;
|
||||
default = [ ];
|
||||
description = "Modules that will be displayed on the right.";
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
[ "mpd" "custom/mymodule#with-css-id" "temperature" ]
|
||||
'';
|
||||
};
|
||||
|
@ -145,7 +145,7 @@ let
|
|||
type = jsonFormat.type;
|
||||
default = { };
|
||||
description = "Modules configuration.";
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
"sway/window" = {
|
||||
max-length = 50;
|
||||
|
@ -206,7 +206,7 @@ in {
|
|||
xlink:href="https://github.com/Alexays/Waybar/wiki/Configuration"/>
|
||||
for supported values.
|
||||
'';
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
[
|
||||
{
|
||||
layer = "top";
|
||||
|
|
|
@ -9,7 +9,7 @@ in {
|
|||
|
||||
package = mkOption {
|
||||
default = pkgs.haskellPackages.xmobar;
|
||||
defaultText = literalExample "pkgs.haskellPackages.xmobar";
|
||||
defaultText = literalExpression "pkgs.haskellPackages.xmobar";
|
||||
type = types.package;
|
||||
description = ''
|
||||
Package providing the <command>xmobar</command> binary.
|
||||
|
@ -18,7 +18,7 @@ in {
|
|||
|
||||
extraConfig = mkOption {
|
||||
default = "";
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
Config
|
||||
{ font = "Fira Code"
|
||||
, borderColor = "#d0d0d0"
|
||||
|
|
|
@ -15,7 +15,7 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.zoxide;
|
||||
defaultText = literalExample "pkgs.zoxide";
|
||||
defaultText = literalExpression "pkgs.zoxide";
|
||||
description = ''
|
||||
Zoxide package to install.
|
||||
'';
|
||||
|
|
|
@ -56,18 +56,18 @@ let
|
|||
default = if versionAtLeast stateVersion "20.03"
|
||||
then "$HOME/.zsh_history"
|
||||
else relToDotDir ".zsh_history";
|
||||
defaultText = literalExample ''
|
||||
defaultText = literalExpression ''
|
||||
"$HOME/.zsh_history" if state version ≥ 20.03,
|
||||
"$ZDOTDIR/.zsh_history" otherwise
|
||||
'';
|
||||
example = literalExample ''"''${config.xdg.dataHome}/zsh/zsh_history"'';
|
||||
example = literalExpression ''"''${config.xdg.dataHome}/zsh/zsh_history"'';
|
||||
description = "History file location";
|
||||
};
|
||||
|
||||
ignorePatterns = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [];
|
||||
example = literalExample ''[ "rm *" "pkill *" ]'';
|
||||
example = literalExpression ''[ "rm *" "pkill *" ]'';
|
||||
description = ''
|
||||
Do not enter command lines into the history list
|
||||
if they match any one of the given shell patterns.
|
||||
|
@ -224,7 +224,7 @@ in
|
|||
|
||||
shellAliases = mkOption {
|
||||
default = {};
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
ll = "ls -l";
|
||||
".." = "cd ..";
|
||||
|
@ -239,7 +239,7 @@ in
|
|||
|
||||
shellGlobalAliases = mkOption {
|
||||
default = {};
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
UUID = "$(uuidgen | tr -d \\n)";
|
||||
G = "| grep";
|
||||
|
@ -254,7 +254,7 @@ in
|
|||
|
||||
dirHashes = mkOption {
|
||||
default = {};
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
{
|
||||
docs = "$HOME/Documents";
|
||||
vids = "$HOME/Videos";
|
||||
|
@ -360,7 +360,7 @@ in
|
|||
plugins = mkOption {
|
||||
type = types.listOf pluginModule;
|
||||
default = [];
|
||||
example = literalExample ''
|
||||
example = literalExpression ''
|
||||
[
|
||||
{
|
||||
# will source zsh-autosuggestions.plugin.zsh
|
||||
|
|
|
@ -44,7 +44,7 @@ in {
|
|||
extraFlags = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [ "-f" ];
|
||||
defaultText = literalExample ''[ "-f" ]'';
|
||||
defaultText = literalExpression ''[ "-f" ]'';
|
||||
description = ''
|
||||
Additional flags to pass to <command>barrierc</command>.
|
||||
See <command>barrierc --help</command>.
|
||||
|
|
|
@ -14,7 +14,7 @@ in {
|
|||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.betterlockscreen;
|
||||
defaultText = literalExample "pkgs.betterlockscreen";
|
||||
defaultText = literalExpression "pkgs.betterlockscreen";
|
||||
description = "Package providing <command>betterlockscreen</command>.";
|
||||
};
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ in {
|
|||
type = types.path;
|
||||
default = "${config.home.homeDirectory}/Dropbox";
|
||||
defaultText =
|
||||
literalExample ''"''${config.home.homeDirectory}/Dropbox"'';
|
||||
literalExpression ''"''${config.home.homeDirectory}/Dropbox"'';
|
||||
apply = toString; # Prevent copies to Nix store.
|
||||
description = "Where to put the Dropbox directory.";
|
||||
};
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue