mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 14:01:34 +01:00
Rename shell option
This commit is contained in:
parent
de7855ade5
commit
e0903f42bf
5 changed files with 7 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
...
|
||||
}:
|
||||
{
|
||||
config = lib.mkIf config.myConfig.shell.enable {
|
||||
config = lib.mkIf config.myConfig.shell.zsh.enable {
|
||||
programs.zsh = {
|
||||
plugins = [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue