nixpkgs/nixos/modules/programs
Maximilian Bosch 39b85451de
nixos/oh-my-zsh: add customPkgs option to allow multiple derivations for ZSH_CUSTOM
If multiple third-party modules shall be used for `oh-my-zsh` it has to
be possible to create another env which composes all the packages.

Now it can be done like this:

```
{ pkgs, ... }:
{
  programs.zsh.enable = true;
  programs.zsh.ohMyZsh = {
    enable = true;
    customPkgs = with pkgs; [
      lambda-mod-zsh-theme
      nix-zsh-completions
    ];
    theme = "lambda-mod";
    plugins = [ "nix" ];
  };
}
```

Please keep in mind that this is not compatible with
`programs.zsh.ohMyZsh.custom`, only one of these options can be used
ATM.

Each package should store its outputs into
`$out/share/zsh/<output-name>`. Completions (and ZSH-only) extensions
should live in the `fpath` (`$out/share/zsh/site-functions`), plugins in
`.../plugins` and themes in `.../themes` (please refer to
fdb6bf6ed68c2f089ae6c729dfeaa3eddea2ce6a and 406d64aad162b3a4881747be4e24705fb5182573).

All scripts in `customPkgs` will be linked together using `linkFarm` to
provide a single directory for all scripts from all derivations in
`customPkgs` as suggested in https://github.com/NixOS/nixpkgs/pull/43282#issuecomment-410396365.
2018-08-05 23:01:18 +02:00
..
bash nixos: enable bash command completion by default 2018-04-13 18:36:51 +02:00
command-not-found
digitalbitbox nixos/digitalbitbox: fix evaluation 2018-07-09 04:37:52 +00:00
zsh nixos/oh-my-zsh: add customPkgs option to allow multiple derivations for ZSH_CUSTOM 2018-08-05 23:01:18 +02:00
adb.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
atop.nix [bot] nixos/*: remove unused arguments in lambdas 2018-07-20 20:56:59 +00:00
bcc.nix [bot] nixos/*: remove unused arguments in lambdas 2018-07-20 20:56:59 +00:00
blcr.nix
browserpass.nix browserpass module: add firefox support 2018-02-23 00:25:40 +01:00
ccache.nix
cdemu.nix
chromium.nix nixos/programs.chromium: write policies for google-chrome too 2018-02-23 19:00:26 +00:00
criu.nix programs.criu: add nixos option for installing criu + kernel flags 2018-02-15 09:10:32 +01:00
dconf.nix tree-wide: autorename gnome packages to use dashes 2018-02-25 17:41:16 +01:00
environment.nix [bot] nixos/*: remove unused arguments in lambdas 2018-07-20 20:56:59 +00:00
firejail.nix firejail: add nixos module 2018-07-14 20:21:41 +08:00
fish.nix
freetds.nix
gnupg.nix
gphoto2.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
iftop.nix nixos/iftop: add module 2018-04-07 15:06:51 +02:00
java.nix
kbdlight.nix
less.nix nixos/less: add configFile option 2018-04-08 22:37:35 -04:00
light.nix
mosh.nix nixos/programs.mosh: refactor 2018-06-08 20:57:16 +02:00
mtr.nix
nano.nix
npm.nix nixos/npm: add npm to the system closure by default (#42420) 2018-06-25 00:11:55 +02:00
nylas-mail.nix [bot]: remove unreferenced code 2018-07-20 18:48:37 +00:00
oblogout.nix
plotinus.nix nixos/plotinus: add module to enable plotinus 2018-02-14 22:25:12 +01:00
plotinus.xml Added cross-references to NixOS manual 2018-04-12 09:39:14 +10:00
qt5ct.nix
rootston.nix nixos: Move uses of stdenv.shell to runtimeShell. 2018-03-01 14:38:53 -05:00
screen.nix nixos/screen: add pkgs.screen to the system closure 2018-06-23 11:17:10 +02:00
sedutil.nix nixos sedutil: module for setting up kernel parameters 2018-03-19 12:12:56 +08:00
shadow.nix
shell.nix Revert "nixos: rename system.{stateVersion,defaultChannel} -> system.nixos.\1" 2018-07-28 00:12:55 +03:00
singularity.nix singularity: 2.4 -> 2.4.2 2018-03-12 15:13:31 +11:00
slock.nix
spacefm.nix
ssh.nix ssh: fix 3572f89bbe154087d8ad83c36674d0c2499c0967 2018-07-21 13:06:16 +02:00
ssmtp.nix
sway.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
sysdig.nix
systemtap.nix [bot] nixos/*: remove unused arguments in lambdas 2018-07-20 20:56:59 +00:00
thefuck.nix nixos/thefuck: move init scripts to programs.*.interactiveShellInit 2018-06-22 01:32:11 +02:00
tmux.nix [bot] treewide: remove unused 'inherit' in let blocks 2018-07-20 19:38:19 +00:00
udevil.nix nixos udevil: set up wrapper for udevil 2018-02-26 14:30:22 +08:00
venus.nix
vim.nix
virtualbox.nix
way-cooler.nix
wireshark.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
xfs_quota.nix
xonsh.nix [bot]: remove unreferenced code 2018-07-20 18:48:37 +00:00
xss-lock.nix nixos/xss-lock: add module (#40619) 2018-05-18 18:24:53 +02:00
yabar.nix