forked from mirrors/nixpkgs
6e4096d792
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"; }; |
||
---|---|---|
.. | ||
bash | ||
command-not-found | ||
digitalbitbox | ||
zsh | ||
adb.nix | ||
atop.nix | ||
bcc.nix | ||
blcr.nix | ||
browserpass.nix | ||
ccache.nix | ||
cdemu.nix | ||
chromium.nix | ||
criu.nix | ||
dconf.nix | ||
environment.nix | ||
fish.nix | ||
freetds.nix | ||
gnupg.nix | ||
gphoto2.nix | ||
iftop.nix | ||
java.nix | ||
kbdlight.nix | ||
less.nix | ||
light.nix | ||
mosh.nix | ||
mtr.nix | ||
nano.nix | ||
npm.nix | ||
nylas-mail.nix | ||
oblogout.nix | ||
plotinus.nix | ||
plotinus.xml | ||
qt5ct.nix | ||
rootston.nix | ||
screen.nix | ||
shadow.nix | ||
shell.nix | ||
singularity.nix | ||
slock.nix | ||
spacefm.nix | ||
ssh.nix | ||
ssmtp.nix | ||
sway.nix | ||
sysdig.nix | ||
systemtap.nix | ||
thefuck.nix | ||
tmux.nix | ||
udevil.nix | ||
venus.nix | ||
vim.nix | ||
virtualbox.nix | ||
way-cooler.nix | ||
wireshark.nix | ||
xfs_quota.nix | ||
xonsh.nix | ||
yabar.nix |