mirror of
https://github.com/nix-community/home-manager
synced 2025-03-16 19:05:08 +01:00
less: add historyFile
option
This commit is contained in:
parent
c85d9137db
commit
eedd288bd3
1 changed files with 8 additions and 0 deletions
|
@ -22,11 +22,19 @@ in {
|
||||||
<filename>$XDG_CONFIG_HOME/lesskey</filename>.
|
<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 {
|
config = mkIf cfg.enable {
|
||||||
home.packages = [ pkgs.less ];
|
home.packages = [ pkgs.less ];
|
||||||
xdg.configFile."lesskey".text = cfg.keys;
|
xdg.configFile."lesskey".text = cfg.keys;
|
||||||
|
home.sessionVariables =
|
||||||
|
mkIf (cfg.historyFile != null) { LESSHISTFILE = cfg.historyFile; };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue