Rename shell option

This commit is contained in:
SebastianStork 2024-06-17 09:47:33 +02:00
parent de7855ade5
commit e0903f42bf
5 changed files with 7 additions and 12 deletions

View file

@ -5,7 +5,7 @@
...
}:
{
config = lib.mkIf config.myConfig.shell.enable {
config = lib.mkIf config.myConfig.shell.zsh.enable {
home.packages = [
pkgs.eza
pkgs.bat

View file

@ -10,11 +10,9 @@
./aliases.nix
];
options.myConfig.shell = {
enable = lib.mkEnableOption "";
};
options.myConfig.shell.zsh.enable = lib.mkEnableOption "";
config = {
config = lib.mkIf config.myConfig.shell.zsh.enable {
programs.zsh = {
enable = true;
dotDir = ".config/zsh";

View file

@ -5,7 +5,7 @@
...
}:
{
config = lib.mkIf config.myConfig.shell.enable {
config = lib.mkIf config.myConfig.shell.zsh.enable {
programs.zsh = {
plugins = [
{

View file

@ -163,9 +163,7 @@
(( $#branch > 32 )) && branch[13,-13]="…" # <-- this line
res+="${clean}${(g::)POWERLEVEL9K_VCS_BRANCH_ICON}${branch//\%/%%}"
fi
if [[ -n $VCS_STATUS_TAG
if [[ -n $VCS_STATUS_TAG
&& -z $VCS_STATUS_LOCAL_BRANCH
]]; then
local tag=${(V)VCS_STATUS_TAG}

View file

@ -1,14 +1,13 @@
{
config,
pkgs,
osConfig,
wrappers,
...
}:
{
myConfig = {
de.hyprland.enable = osConfig.myConfig.de.hyprland.enable;
shell.enable = true;
de.hyprland.enable = true;
shell.zsh.enable = true;
ssh-client.enable = true;
git.enable = true;
vscode.enable = true;