1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-01 04:23:34 +02:00
This commit is contained in:
cbarrete 2024-04-12 01:24:22 +02:00 committed by GitHub
commit 4678d70a64
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; };
};
}