From 165cde749fc899d4c86eb6de97d3b7c4373eb7b3 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Wed, 25 Sep 2024 00:17:41 +0530 Subject: Using more descriptive option names. --- modules/shell/zsh/default.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'modules/shell/zsh') diff --git a/modules/shell/zsh/default.nix b/modules/shell/zsh/default.nix index b4ea77a..c553ec4 100644 --- a/modules/shell/zsh/default.nix +++ b/modules/shell/zsh/default.nix @@ -1,15 +1,16 @@ -{ config, lib, ... }: +{ config, lib, pkgs, ... }: { - options = { - zsh.enable = lib.mkEnableOption "Enables zsh."; + options.shell.zsh = { + enable = lib.mkEnableOption "Enables zsh."; }; - config = lib.mkIf config.zsh.enable { + config = lib.mkIf config.shell.zsh.enable { programs.zsh.enable = true; programs.zsh.dotDir = ".config/zsh"; programs.zsh.history.path = "${config.xdg.cacheHome}/zsh/history"; programs.zsh.initExtra = builtins.readFile ./zshrc; - programs.zsh.shellAliases = config.programs.bash.shellAliases; + programs.zsh.shellAliases = config.shell.alias; + shell.default = "${pkgs.zsh}/bin/zsh"; }; } -- cgit v1.2.3