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 = [ home.packages = [
pkgs.eza pkgs.eza
pkgs.bat pkgs.bat

View file

@ -10,11 +10,9 @@
./aliases.nix ./aliases.nix
]; ];
options.myConfig.shell = { options.myConfig.shell.zsh.enable = lib.mkEnableOption "";
enable = lib.mkEnableOption "";
};
config = { config = lib.mkIf config.myConfig.shell.zsh.enable {
programs.zsh = { programs.zsh = {
enable = true; enable = true;
dotDir = ".config/zsh"; 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 = { programs.zsh = {
plugins = [ plugins = [
{ {

View file

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

View file

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