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
..
2018-02-09 19:51:06 +00:00
2017-09-29 15:18:25 +01:00
2017-08-11 15:48:45 +00:00
2018-04-07 15:06:51 +02:00
2017-01-29 05:45:43 -06:00
2018-04-08 22:37:35 -04:00
2017-01-29 05:45:43 -06:00
2017-09-23 20:34:55 +02:00
2017-08-25 14:08:11 +02:00
2017-07-23 12:56:04 +03:00
2018-03-12 15:13:31 +11:00
2017-09-29 15:01:21 +01:00
2018-02-09 19:51:06 +00:00
2018-01-04 09:58:21 +01:00