mirror of
https://github.com/nix-community/home-manager
synced 2024-06-01 04:23:34 +02:00
Merge e8dd9771a9
into 31357486b0
This commit is contained in:
commit
4678d70a64
|
@ -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…
Reference in New Issue
Block a user