feat(user:shell): add system modules for zsh/bash user shell configuration

This commit is contained in:
ooks-io 2024-04-14 19:41:53 +12:00
parent 48c0e8e005
commit ea1c418c73
7 changed files with 53 additions and 34 deletions

View file

@ -0,0 +1,17 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf;
userShell = config.systemModules.user.shell;
in
{
config = mkIf (userShell == "bash") {
users.users.ooks.shell = pkgs.bash;
programs.bash = {
enable = true;
};
environment.pathsToLink = ["/share/bash-completion"];
};
}