mirror of
https://github.com/nix-community/home-manager.git
synced 2025-04-09 18:44:14 +00:00
Merge e8dd9771a9
into 94605dcade
This commit is contained in:
commit
d651045978
1 changed files with 8 additions and 0 deletions
|
@ -22,11 +22,19 @@ in {
|
|||
{file}`$XDG_CONFIG_HOME/lesskey`.
|
||||
'';
|
||||
};
|
||||
|
||||
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; };
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue