diff options
Diffstat (limited to 'users/seth/module/shell/default.nix')
| -rw-r--r-- | users/seth/module/shell/default.nix | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/users/seth/module/shell/default.nix b/users/seth/module/shell/default.nix deleted file mode 100644 index b86697c..0000000 --- a/users/seth/module/shell/default.nix +++ /dev/null @@ -1,40 +0,0 @@ -{ - config, - lib, - ... -}: let - cfg = config.seth.shell; -in { - options.seth.shell = { - aliases.enable = lib.mkEnableOption "Shell aliases" // {default = config.seth.enable;}; - variables.enable = lib.mkEnableOption "Shell variables" // {default = config.seth.enable;}; - }; - - imports = [ - ./bash.nix - ./fish.nix - ./nu.nix - ./zsh.nix - ]; - - config = { - home = lib.mkMerge [ - (lib.mkIf cfg.variables.enable { - sessionVariables = rec { - EDITOR = "nvim"; - VISUAL = EDITOR; - CARGO_HOME = "${config.xdg.dataHome}/cargo"; - LESSHISTFILE = "${config.xdg.stateHome}/less/history"; - }; - }) - - (lib.mkIf cfg.aliases.enable { - shellAliases = { - diff = "diff --color=auto"; - g = "git"; - gs = "g status"; - }; - }) - ]; - }; -} |
