mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-05 00:21:04 +01:00
treewide: Remove unwanted dependencies (#7487)
Fixes interpolation of packages in the default and example texts.
This commit is contained in:
parent
460f1e9af9
commit
8eb2f2a26a
14 changed files with 50 additions and 18 deletions
|
|
@ -23,6 +23,15 @@ in
|
|||
"'\\[?{" + ''"name": "(?P<name>.*)", "address": "(?P<email>.+)", "name-addr": ".*"'' + "}[,\\]]?'";
|
||||
shellcommand_external_filtering = "False";
|
||||
};
|
||||
defaultText = lib.literalExpression ''
|
||||
{
|
||||
type = "shellcommand";
|
||||
command = "''\'''${pkgs.notmuch}/bin/notmuch address --format=json --output=recipients date:6M..'";
|
||||
regexp =
|
||||
"'\\[?{" + '''"name": "(?P<name>.*)", "address": "(?P<email>.+)", "name-addr": ".*"''' + "}[,\\]]?'";
|
||||
shellcommand_external_filtering = "False";
|
||||
}
|
||||
'';
|
||||
example = lib.literalExpression ''
|
||||
{
|
||||
type = "shellcommand";
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ in
|
|||
example = lib.literalExpression ''
|
||||
{
|
||||
"default" = {
|
||||
"credential_process" = "${pkgs.pass}/bin/pass show aws";
|
||||
"credential_process" = "''${pkgs.pass}/bin/pass show aws";
|
||||
};
|
||||
};
|
||||
'';
|
||||
|
|
|
|||
|
|
@ -122,6 +122,7 @@ in
|
|||
browser = mkOption {
|
||||
type = types.str;
|
||||
default = "${pkgs.xdg-utils}/bin/xdg-open";
|
||||
defaultText = lib.literalExpression "\${pkgs.xdg-utils}/bin/xdg-open";
|
||||
description = "External browser to use.";
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ in
|
|||
description = ''
|
||||
A command to run for the matching file.
|
||||
'';
|
||||
example = literalExpression ''"${pkgs.vim}/bin/vim -- \"$@\""'';
|
||||
example = literalExpression ''"''${pkgs.vim}/bin/vim -- \"$@\""'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ in
|
|||
default = { };
|
||||
example = lib.literalExpression ''
|
||||
menu = {
|
||||
executable = "${pkgs.wofi}/bin/wofi";
|
||||
executable = "''${pkgs.wofi}/bin/wofi";
|
||||
args = [
|
||||
"--show=dmenu"
|
||||
"--allow-markup"
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ in
|
|||
browser = mkOption {
|
||||
default = null;
|
||||
type = types.nullOr types.str;
|
||||
example = "${pkgs.xdg-utils}/xdg-open";
|
||||
example = "\${pkgs.xdg-utils}/xdg-open";
|
||||
description = ''
|
||||
Set the default browser for opening links. If its not set, $BROWSER is read.
|
||||
If that's not set, url hints will be disabled.
|
||||
|
|
|
|||
|
|
@ -302,7 +302,7 @@ in
|
|||
|
||||
shell = mkOption {
|
||||
default = defaultShell;
|
||||
example = literalExpression "${pkgs.zsh}/bin/zsh";
|
||||
example = literalExpression "\${pkgs.zsh}/bin/zsh";
|
||||
type = with types; nullOr str;
|
||||
description = "Set the default-shell tmux variable.";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue