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
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
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
fish.nix
freetds.nix
gnupg.nix
gphoto2.nix
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
mtr.nix
nano.nix
npm.nix
nylas-mail.nix
oblogout.nix
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
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
spacefm.nix
ssh.nix nixos: Move uses of stdenv.shell to runtimeShell. 2018-03-01 14:38:53 -05:00
ssmtp.nix
sway.nix nixos/sway: Extend the descriptions and examples 2017-12-25 00:15:06 +01:00
sysdig.nix
systemtap.nix programs.systemtap: add nixos option for installing systemtap 2018-02-15 09:10:32 +01:00
thefuck.nix
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
vim.nix
virtualbox.nix
way-cooler.nix Make less known wayland compositors usable (#32285) 2017-12-21 16:16:19 +00:00
wireshark.nix
xfs_quota.nix
xonsh.nix
yabar.nix yabar: add module 2018-01-04 09:58:21 +01:00