about summary refs log tree commit diff
path: root/home/shell/default.nix
blob: f34d997d728e35d411cac51b869f3490e74158da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ config, lib, pkgs, ... }:

with lib;
let
  cfg = config.my.home.shell;
  aliases = import ./aliases.nix;
in
{
  options.my.home.shell = {
    name = mkOption {
      default = "zsh";
      type = types.enum [ "fish" "zsh" ];
      example = "zsh";
    };
    aliases = mkOption {
      default = aliases;
      description = ''
        A wrapper for shellAliases for zsh and fish
      '';
      type = types.attrsOf types.str;
    };
  };

  imports = [ ./fish ./zsh ];
}