diff options
| author | schererleander <leander@schererleander.de> | 2026-01-09 16:57:15 +0100 |
|---|---|---|
| committer | schererleander <leander@schererleander.de> | 2026-01-09 23:13:49 +0100 |
| commit | 3b5a73c436eb22e0cda59469263490705e149cb9 (patch) | |
| tree | ae3f20ca6008b11f71247dfc6e2df8218de9b95c /modules/users/shells | |
| parent | ec45aae780da92e12cf82c5a32e336b14b7540ba (diff) | |
refactor: use flake-parts, change modules structure
Diffstat (limited to 'modules/users/shells')
| -rw-r--r-- | modules/users/shells/bash/default.nix | 43 | ||||
| -rw-r--r-- | modules/users/shells/default.nix | 7 | ||||
| -rw-r--r-- | modules/users/shells/zsh/default.nix | 69 |
3 files changed, 0 insertions, 119 deletions
diff --git a/modules/users/shells/bash/default.nix b/modules/users/shells/bash/default.nix deleted file mode 100644 index d17ffc5..0000000 --- a/modules/users/shells/bash/default.nix +++ /dev/null @@ -1,43 +0,0 @@ -{ - config, - pkgs, - lib, - ... -}: - -let - inherit (lib) mkOption mkIf types; - cfg = config.nx.shells.bash; -in -{ - options.nx.shells.bash = { - enable = mkOption { - type = types.bool; - default = config.nx.terminal.defaultShell == "bash"; - }; - }; - - config = mkIf cfg.enable { - home.packages = with pkgs; [ - zoxide - ]; - - programs.bash = { - enable = true; - enableCompletion = true; - initExtra = '' - # view man pages with nvim - export MANPAGER="nvim +Man!" - - # vim keybindings - set -o vi - - # zoxide smarter cd command - eval "$(zoxide init bash)" - ''; - shellAliases = { - ls = "ls --color=auto"; - }; - }; - }; -} diff --git a/modules/users/shells/default.nix b/modules/users/shells/default.nix deleted file mode 100644 index 9abd804..0000000 --- a/modules/users/shells/default.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ ... }: -{ - imports = [ - ./zsh - ./bash - ]; -} diff --git a/modules/users/shells/zsh/default.nix b/modules/users/shells/zsh/default.nix deleted file mode 100644 index 0b94c3d..0000000 --- a/modules/users/shells/zsh/default.nix +++ /dev/null @@ -1,69 +0,0 @@ -{ - config, - pkgs, - lib, - ... -}: - -let - inherit (lib) mkOption mkIf types; - cfg = config.nx.shells.zsh; -in -{ - options.nx.shells.zsh = { - enable = mkOption { - type = types.bool; - default = config.nx.terminal.defaultShell == "zsh"; - }; - }; - - config = mkIf cfg.enable { - home.packages = with pkgs; [ - zoxide - ]; - - programs.zsh = { - enable = true; - enableCompletion = true; - autosuggestion.enable = true; - syntaxHighlighting.enable = true; - initContent = '' - # view man pages with nvim - export MANPAGER="nvim +Man!" - - # Directory completion with trailing slash - zstyle ':completion:*' list-dirs-first true - zstyle ':completion:*' special-dirs true - zstyle ':completion:*' squeeze-slashes true - zstyle ':completion:*' add-space false - - # Case-insensitive completion - zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' - # vim keybindings - bindkey -v - - # zoxide smarter cmd command - eval "$(zoxide init zsh)" - ''; - shellAliases = { - ls = "ls --color=auto"; - }; - - zplug = { - enable = true; - plugins = [ - { name = "mafredri/zsh-async"; } - { - name = "sindresorhus/pure"; - tags = [ - "as:theme" - "use:pure.zsh" - ]; - } - { name = "zdharma-continuum/fast-syntax-highlighting"; } - { name = "zsh-users/zsh-autosuggestions"; } - ]; - }; - }; - }; -} |
