1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-04-09 18:44:14 +00:00
This commit is contained in:
cbarrete 2025-03-20 11:09:02 +02:00 committed by GitHub
commit d651045978
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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; };
};
}