mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
zsh: support extra settings in oh-my-zsh plugins (#1106)
Co-Authored-By: Robert Helgesson <robert@rycee.net>
This commit is contained in:
parent
78a0bbb38b
commit
7fa890462d
1 changed files with 13 additions and 0 deletions
|
@ -152,6 +152,17 @@ let
|
||||||
Name of the theme to be used by oh-my-zsh.
|
Name of the theme to be used by oh-my-zsh.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraConfig = mkOption {
|
||||||
|
default = "";
|
||||||
|
example = ''
|
||||||
|
zstyle :omz:plugins:ssh-agent identities id_rsa id_rsa2 id_github
|
||||||
|
'';
|
||||||
|
type = types.lines;
|
||||||
|
description = ''
|
||||||
|
Extra settings for plugins.
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -398,6 +409,8 @@ in
|
||||||
${envVarsStr}
|
${envVarsStr}
|
||||||
|
|
||||||
${optionalString cfg.oh-my-zsh.enable ''
|
${optionalString cfg.oh-my-zsh.enable ''
|
||||||
|
# oh-my-zsh extra settings for plugins
|
||||||
|
${cfg.oh-my-zsh.extraConfig}
|
||||||
# oh-my-zsh configuration generated by NixOS
|
# oh-my-zsh configuration generated by NixOS
|
||||||
${optionalString (cfg.oh-my-zsh.plugins != [])
|
${optionalString (cfg.oh-my-zsh.plugins != [])
|
||||||
"plugins=(${concatStringsSep " " cfg.oh-my-zsh.plugins})"
|
"plugins=(${concatStringsSep " " cfg.oh-my-zsh.plugins})"
|
||||||
|
|
Loading…
Reference in a new issue