mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
Modularize the shell config
This commit is contained in:
parent
cbebff390c
commit
30faa1f2bf
10 changed files with 104 additions and 74 deletions
25
modules/home/shell/default.nix
Normal file
25
modules/home/shell/default.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.myConfig.shell;
|
||||
in {
|
||||
imports = [
|
||||
./starship.nix
|
||||
./direnv.nix
|
||||
./enhancedCommands.nix
|
||||
./nixAliases.nix
|
||||
];
|
||||
|
||||
options.myConfig.shell = {
|
||||
bash.enable = lib.mkEnableOption "";
|
||||
zsh.enable = lib.mkEnableOption "";
|
||||
};
|
||||
|
||||
config = {
|
||||
programs.bash.enable = cfg.bash.enable;
|
||||
|
||||
programs.zsh.enable = cfg.zsh.enable;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue