1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2025-03-15 02:15:08 +01:00

less: add historyFile option

This commit is contained in:
Cédric Barreteau 2023-07-02 14:47:41 -04:00
parent c85d9137db
commit eedd288bd3

View file

@ -22,11 +22,19 @@ in {
<filename>$XDG_CONFIG_HOME/lesskey</filename>.
'';
};
historyFile = mkOption {
type = types.nullOr types.str;
default = null;
description = "Location of the less history file.";
};
};
};
config = mkIf cfg.enable {
home.packages = [ pkgs.less ];
xdg.configFile."lesskey".text = cfg.keys;
home.sessionVariables =
mkIf (cfg.historyFile != null) { LESSHISTFILE = cfg.historyFile; };
};
}