1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 05:29: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:
Carlos Tomé 2020-03-25 15:40:42 +01:00 committed by GitHub
parent 78a0bbb38b
commit 7fa890462d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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})"