mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11: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 = [
|
home.packages = [
|
||||||
pkgs.eza
|
pkgs.eza
|
||||||
pkgs.bat
|
pkgs.bat
|
||||||
|
|
|
||||||
|
|
@ -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";
|
||||||
|
|
|
||||||
|
|
@ -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 = [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue