2022-07-15 13:11:54 +02:00
|
|
|
{ config
|
|
|
|
, lib
|
|
|
|
, pkgs
|
|
|
|
, ...
|
|
|
|
}:
|
2022-03-22 19:33:01 +01:00
|
|
|
|
|
|
|
with lib;
|
2022-07-15 13:11:54 +02:00
|
|
|
let
|
|
|
|
cfg = config.my.shell;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.my.shell = {
|
2022-03-22 19:33:01 +01:00
|
|
|
abbreviations = mkOption {
|
|
|
|
default = { };
|
|
|
|
type = with types; attrsOf str;
|
|
|
|
example = { gs = "git status"; };
|
|
|
|
};
|
|
|
|
aliases = mkOption {
|
|
|
|
default = { };
|
|
|
|
type = with types; attrsOf (nullOr (either str path));
|
|
|
|
};
|
|
|
|
variables = mkOption {
|
|
|
|
default = { };
|
|
|
|
type = with types; attrsOf str;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|