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/default.nix | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'modules/shell/default.nix') diff --git a/modules/shell/default.nix b/modules/shell/default.nix index e4c3964..2dbd054 100644 --- a/modules/shell/default.nix +++ b/modules/shell/default.nix @@ -1,8 +1,24 @@ -{ lib, config, ... }: +{ lib, pkgs, ... }: { imports = [ ./bash ./zsh ]; + + options.shell = { + default = lib.mkOption { + type = lib.types.string; + description = "Path to the default shell program."; + }; + alias = lib.mkOption { + type = lib.types.attrs; + description = "Shell aliases."; + }; + }; + + config = { + shell.default = lib.mkDefault "${pkgs.bash}/bin/bash"; # Set bash as default shell + shell.bash.enable = lib.mkDefault true; # Enable bash by default + }; } -- cgit v1.2.3