mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-11-06 19:32:24 +00:00
20 lines
491 B
Nix
20 lines
491 B
Nix
{ config, lib, pkgs, ... }:
|
|
let
|
|
cfg = config.elkowar.generalConfig;
|
|
myConf = import ../myConfig.nix;
|
|
in
|
|
{
|
|
options.elkowar.generalConfig = with lib; {
|
|
shellAbbrs = lib.mkOption {
|
|
type = types.attrsOf types.str;
|
|
default = {};
|
|
description = ''
|
|
A map of abbreviations that will get applied to zsh and fish configuration.
|
|
'';
|
|
};
|
|
};
|
|
config = {
|
|
elkowar.programs.zsh.abbrs = cfg.shellAbbrs;
|
|
programs.fish.shellAbbrs = cfg.shellAbbrs;
|
|
};
|
|
}
|