Logo
Explore Help
Sign In
talexander/nixpkgs
1
0
Fork 0
You've already forked nixpkgs
Code Issues Pull Requests Releases Activity
nixpkgs/nixos/modules/programs/autojump.nix

35 lines
490 B
Nix
Raw Normal View History

autojump: creates links required by oh-my-zsh for autojump. The autojump plugin in oh-my-zsh assumes autojump.zsh resides in /run/current-system/sw/share/autojump/ but these links are not created by default. The new programs.autojump.enable option forces the creation of these links.
2018-09-25 16:18:42 +02:00
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.programs.autojump;
in
{
###### interface
options = {
programs.autojump = {
enable = mkOption {
type = types.bool;
default = false;
description = ''
Whether to enable autojump.
'';
};
};
};
###### implementation
config = mkIf cfg.enable {
environment.pathsToLink = [ "/share/autojump" ];
autodump: pulling package when programs.autojump.enable is true
2018-09-25 20:16:11 +02:00
environment.systemPackages = [ pkgs.autojump ];
autojump: creates links required by oh-my-zsh for autojump. The autojump plugin in oh-my-zsh assumes autojump.zsh resides in /run/current-system/sw/share/autojump/ but these links are not created by default. The new programs.autojump.enable option forces the creation of these links.
2018-09-25 16:18:42 +02:00
};
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.1 Page: 4885ms Template: 6ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API