summaryrefslogtreecommitdiff
path: root/users/seth/shell/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/seth/shell/default.nix')
-rw-r--r--users/seth/shell/default.nix45
1 files changed, 0 insertions, 45 deletions
diff --git a/users/seth/shell/default.nix b/users/seth/shell/default.nix
deleted file mode 100644
index 34b1a98..0000000
--- a/users/seth/shell/default.nix
+++ /dev/null
@@ -1,45 +0,0 @@
-{ config, lib, ... }:
-let
- cfg = config.seth.shell;
-in
-{
- options.seth.shell = {
- aliases.enable = lib.mkEnableOption "shell aliases" // {
- default = config.seth.enable;
- defaultText = lib.literalExpression "config.seth.enable";
- };
-
- variables.enable = lib.mkEnableOption "shell variables" // {
- default = config.seth.enable;
- defaultText = lib.literalExpression "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";
- };
- })
- ];
- };
-}