diff options
| author | seth <[email protected]> | 2024-10-27 02:27:42 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-10-27 02:27:42 -0400 |
| commit | 87e5274c0ad37baf3130e090f6645935e9c17e11 (patch) | |
| tree | 6e995f0bba34861c114a540319f0f9d76e91410b /users/seth/shell/default.nix | |
| parent | d088ba5731cca3c552584b9eb2e212c8fd624b58 (diff) | |
seth: merge shell modules with regular programs
Diffstat (limited to 'users/seth/shell/default.nix')
| -rw-r--r-- | users/seth/shell/default.nix | 45 |
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"; - }; - }) - ]; - }; -} |
