1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/nixos/modules
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
..
config Merge pull request #44015 from alexshpilkin/resolv-unbound 2018-07-24 22:53:53 +02:00
hardware [bot] nixos/*: remove unused arguments in lambdas 2018-07-20 20:56:59 +00:00
i18n/input-method options.i18n.inputMethod.package: fix type (#43239) 2018-07-09 22:37:27 +02:00
installer Revert "nixos: rename system.{stateVersion,defaultChannel} -> system.nixos.\1" 2018-07-28 00:12:55 +03:00
misc Merge pull request #44127 from johanot/nixos-cfssl 2018-08-03 16:39:12 +02:00
profiles [bot] nixos/*: remove unused arguments in lambdas 2018-07-20 20:56:59 +00:00
programs nixos/oh-my-zsh: add customPkgs option to allow multiple derivations for ZSH_CUSTOM 2018-08-05 23:01:18 +02:00
security Merge pull request #42834 from Synthetica9/patch-1 2018-07-23 11:29:18 -04:00
services nixos/manual: wordsmithing on fdb chapter 2018-08-05 08:42:43 -05:00
system Merge pull request #42877 from Infinisil/systemd-boot/consoleMode 2018-08-04 23:21:31 +02:00
tasks [bot] nixos/*: remove unused arguments in lambdas 2018-07-20 20:56:59 +00:00
testing Revert "nixos: rename system.{stateVersion,defaultChannel} -> system.nixos.\1" 2018-07-28 00:12:55 +03:00
virtualisation Revert "nixos: rename system.{stateVersion,defaultChannel} -> system.nixos.\1" 2018-07-28 00:12:55 +03:00
module-list.nix Merge pull request #44127 from johanot/nixos-cfssl 2018-08-03 16:39:12 +02:00
rename.nix nixos/rename: Add temporary aliases for the system.nixos.* rename revert 2018-07-28 00:12:55 +03:00