2020-08-11 14:25:46 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
|
|
cfg = config.elkowar.generalConfig;
|
|
|
|
myConf = import ../myConfig.nix;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.elkowar.generalConfig = with lib; {
|
2020-08-11 15:56:16 +00:00
|
|
|
shellAbbrs = lib.mkOption {
|
2020-08-11 14:25:46 +00:00
|
|
|
type = types.attrsOf types.str;
|
|
|
|
default = {};
|
|
|
|
description = ''
|
2020-08-11 15:56:16 +00:00
|
|
|
A map of abbreviations that will get applied to zsh and fish configuration.
|
2020-08-11 14:25:46 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
config = {
|
2020-08-11 15:56:16 +00:00
|
|
|
elkowar.programs.zsh.abbrs = cfg.shellAbbrs;
|
|
|
|
programs.fish.shellAbbrs = cfg.shellAbbrs;
|
2020-08-11 14:25:46 +00:00
|
|
|
};
|
|
|
|
}
|