nixpkgs/nixos/modules/programs/autojump.nix

35 lines
490 B
Nix

{ 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" ];
environment.systemPackages = [ pkgs.autojump ];
};
}