nixpkgs/nixos/modules/programs
ivanbrennan 6e4096d792 nixos/less: add configFile option
Expose the path to a lesskey file as a module option. This makes it
possible to maintain a single lesskey file, used for both NixOS and
non-nix systems. An example of how this can be done follows.

1. Write a derivation that fetches lesskey from a known location:

  { stdenv, fetchgit }:
  stdenv.mkDerivation {
    name = "foo";
    src = fetchgit { .. };
    phases = [ "unpackPhase" "installPhase" ];
    installPhase = "mkdir -p $out && cp $src/lesskey $out/lesskey";
  }

2. Set programs.less.configFile to the corresponding path:

    programs.less = {
      enable = true;
      configFile = "${pkgs.foo}/lesskey";
    };
2018-04-08 22:37:35 -04:00
..
bash Merge pull request #30418 from LnL7/inline-set-environment 2018-03-08 21:07:15 +01:00
command-not-found Enable command-not-found 2017-10-10 12:26:24 +02:00
digitalbitbox digitalbitbox: init at 2.2.2 (#33787) 2018-02-27 22:40:22 +00:00
zsh Merge pull request #30418 from LnL7/inline-set-environment 2018-03-08 21:07:15 +01:00
adb.nix nixos/adb: add related package 2018-02-09 19:51:06 +00:00
atop.nix
bcc.nix nixos/bcc: init module 2017-09-29 15:18:25 +01:00
blcr.nix
browserpass.nix browserpass module: add firefox support 2018-02-23 00:25:40 +01:00
ccache.nix nixos/ccache: init 2017-08-11 15:48:45 +00:00
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 terminfo: symlink terminfo to /etc for ncurses 2017-06-30 11:17:11 +02:00
fish.nix fish: (NixOS only) source configuration sections anew in all child shells 2017-05-19 21:00:24 -07:00
freetds.nix
gnupg.nix gnupg agent module: fix ssh agent assertion logic 2017-08-04 02:07:49 +02:00
gphoto2.nix nixos/treewide: remove boolean examples for options 2017-03-17 23:36:19 +01:00
iftop.nix nixos/iftop: add module 2018-04-07 15:06:51 +02:00
java.nix
kbdlight.nix More mistake fixes 2017-01-29 05:45:43 -06:00
less.nix nixos/less: add configFile option 2018-04-08 22:37:35 -04:00
light.nix More mistake fixes 2017-01-29 05:45:43 -06:00
mosh.nix nixos/treewide: remove boolean examples for options 2017-03-17 23:36:19 +01:00
mtr.nix mtr nixos module: wrap the proper binary 2017-09-14 19:09:54 +08:00
nano.nix nano: add nix syntax hightlight, nano module: provide default (#21912) 2017-01-18 12:05:30 +01:00
npm.nix npm module: add npm as nixos program 2017-09-23 20:34:55 +02:00
nylas-mail.nix Rename nylas-mail to nylas-mail-bin. 2017-07-05 16:28:01 -07:00
oblogout.nix nixos: Fix build of manual 2017-08-25 14:08:11 +02:00
plotinus.nix nixos/plotinus: add module to enable plotinus 2018-02-14 22:25:12 +01:00
plotinus.xml nixos/plotinus: add module to enable plotinus 2018-02-14 22:25:12 +01:00
qt5ct.nix qt5ct module: expose qtstyleplugins 2017-07-23 12:56:04 +03:00
rootston.nix nixos: Move uses of stdenv.shell to runtimeShell. 2018-03-01 14:38:53 -05:00
screen.nix
shadow.nix sg/newgrp should always be available, not chfn 2018-01-14 20:54:40 +01:00
shell.nix
singularity.nix singularity: 2.4 -> 2.4.2 2018-03-12 15:13:31 +11:00
slock.nix slock: needs the ability to be install with suid privileges 2017-03-30 14:36:53 -07:00
spacefm.nix
ssh.nix nixos: Move uses of stdenv.shell to runtimeShell. 2018-03-01 14:38:53 -05:00
ssmtp.nix sstmp: document how to specify port/AuthPassFile 2017-04-08 17:20:18 +02:00
sway.nix nixos/sway: Extend the descriptions and examples 2017-12-25 00:15:06 +01:00
sysdig.nix nixos/sysdig: init module 2017-09-29 15:01:21 +01:00
systemtap.nix programs.systemtap: add nixos option for installing systemtap 2018-02-15 09:10:32 +01:00
thefuck.nix programs.thefuck: support shells that don't use /etc/profile 2017-07-30 08:23:35 +02:00
tmux.nix nixos/tmux: add related package 2018-02-09 19:51:06 +00:00
udevil.nix nixos udevil: set up wrapper for udevil 2018-02-26 14:30:22 +08:00
venus.nix nixos/treewide: systemd.time is in manvolume 7 2017-03-21 08:28:53 +01:00
vim.nix nixos/treewide: remove boolean examples for options 2017-03-17 23:36:19 +01:00
virtualbox.nix
way-cooler.nix Make less known wayland compositors usable (#32285) 2017-12-21 16:16:19 +00:00
wireshark.nix programs.wireshark: use setcap wrapper 2017-02-17 15:42:55 +01:00
xfs_quota.nix
xonsh.nix xonsh: fix typo ("xnosh") in "enable" description 2017-09-21 00:47:57 +02:00
yabar.nix yabar: add module 2018-01-04 09:58:21 +01:00