dotfiles/modules/config/shell.nix

28 lines
427 B
Nix

{ config
, lib
, pkgs
, ...
}:
with lib;
let
cfg = config.my.shell;
in
{
options.my.shell = {
abbreviations = mkOption {
default = { };
type = with types; attrsOf str;
example = { gs = "git status"; };
};
aliases = mkOption {
default = { };
type = with types; attrsOf str;
};
variables = mkOption {
default = { };
type = with types; attrsOf str;
};
};
}