aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shell/default.nix
blob: 2dbd054b83f16830355113b93f2e4faef1a24d08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ 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
	};
}