error resolution

This commit is contained in:
2024-04-16 22:39:21 +02:00
parent 48e49a93b6
commit a39ca7ed1c
10 changed files with 134 additions and 120 deletions

View File

@@ -0,0 +1,40 @@
{
myAliases = {
".." = "cd ..";
"cd.." = "cd ..";
ls = "command eza";
grep = "grep --color=auto";
fgrep = "fgrep --color=auto";
egrep = "egrep --color=auto";
l="eza -G --icons";
ll="eza -l --icons";
lg="eza -lG";
lall="eza -lahF --icons --git";
lalg="eza -laGhF --icons --git";
latree="eza -laGghHT --git --icons";
la = "eza -la --git --icons";
lsd = "eza -laD";
cls="clear";
# df="df -ahiT --total";
userlist="cut -d: -f1 /etc/passwd";
free="free -mt";
du="du -ach | sort -h";
ps="ps auxf";
sudo="sudo ";
reload="exec $SHELL -l";
xclip = "xclip -selection c";
mkdir="mkdir -pv";
psmem="ps -e -orss=,args= | sort -b -k1 -nr";
psmem10="ps -e -orss=,args= | sort -b -k1 -nr | head -10";
pscpu="ps -e -o pcpu,cpu,nice,state,cputime,args|sort -k1,1n -nr";
pscpu10="ps -e -o pcpu,cpu,nice,state,cputime,args|sort -k1,1n -nr | head -10";
gua = "git remote | xargs -L1 git push --all";
};
}

View File

@@ -1,4 +1,7 @@
let cli = import ./aliases.nix; in
{
programs.bash = { programs.bash = {
enable = true; enable = true;
shellAliases = myAliases; shellAliases = cli.myAliases;
}; };
}

View File

@@ -2,7 +2,7 @@
imports = [ imports = [
./bash.nix ./bash.nix
./git.nix ./git.nix
./zsh.nix ./zsh
]; ];
# home.packages = with pkgs; []; # home.packages = with pkgs; [];
} }

View File

@@ -1,3 +1,4 @@
{
programs.git = { programs.git = {
enable = true; enable = true;
userName = "Michał Czyż"; userName = "Michał Czyż";
@@ -24,3 +25,4 @@ programs.git = {
}; };
}; };
}; };
}

View File

@@ -1,35 +0,0 @@
programs.zsh = {
enable = true;
enableCompletion = true;
history.size = 10000000;
history.path = "${config.xdg.dataHome}/zsh/history";
shellAliases = myAliases;
initExtra = ''
[[ ! -f ${./p10k.zsh} ]] || source ${./p10k.zsh}
eval "$(zoxide init zsh)"
'';
plugins = [
{
name = "powerlevel10k";
src = pkgs.zsh-powerlevel10k;
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
}
];
zplug = {
enable = true;
plugins = [
{ name = "zsh-users/zsh-autosuggestions"; }
# { name = "romkatv/powerlevel10k"; tags = [ as:theme depth:1 ]; }
];
};
oh-my-zsh = {
enable = true;
plugins = [ "git" ];
};
};

View File

@@ -0,0 +1,39 @@
{config, pkgs, ...}: let
cli = import ../aliases.nix;
in {
programs.zsh = {
enable = true;
enableCompletion = true;
history.size = 10000000;
history.path = "${config.xdg.dataHome}/zsh/history";
shellAliases = cli.myAliases;
initExtra = ''
[[ ! -f ${./p10k.zsh} ]] || source ${./p10k.zsh}
eval "$(zoxide init zsh)"
'';
plugins = [
{
name = "powerlevel10k";
src = pkgs.zsh-powerlevel10k;
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
}
];
zplug = {
enable = true;
plugins = [
{ name = "zsh-users/zsh-autosuggestions"; }
# { name = "romkatv/powerlevel10k"; tags = [ as:theme depth:1 ]; }
];
};
oh-my-zsh = {
enable = true;
plugins = [ "git" ];
};
};
}

View File

@@ -1,3 +1,4 @@
{
programs.kitty = { programs.kitty = {
enable = true; enable = true;
font = { font = {
@@ -7,3 +8,4 @@ programs.kitty = {
theme = "Gruvbox Dark"; theme = "Gruvbox Dark";
}; };
}

View File

@@ -1,3 +1,4 @@
{pkgs, ...}: {
programs.neovim = { programs.neovim = {
enable = true; enable = true;
package = pkgs.unstable.neovim-unwrapped; package = pkgs.unstable.neovim-unwrapped;
@@ -8,3 +9,4 @@ programs.neovim = {
defaultEditor = true; defaultEditor = true;
}; };
}

View File

@@ -7,46 +7,7 @@
config, config,
pkgs, pkgs,
... ...
}: let }: {
myAliases = {
".." = "cd ..";
"cd.." = "cd ..";
ls = "command eza";
grep = "grep --color=auto";
fgrep = "fgrep --color=auto";
egrep = "egrep --color=auto";
l="eza -G --icons";
ll="eza -l --icons";
lg="eza -lG";
lall="eza -lahF --icons --git";
lalg="eza -laGhF --icons --git";
latree="eza -laGghHT --git --icons";
la = "eza -la --git --icons";
lsd = "eza -laD";
cls="clear";
# df="df -ahiT --total";
userlist="cut -d: -f1 /etc/passwd";
free="free -mt";
du="du -ach | sort -h";
ps="ps auxf";
sudo="sudo ";
reload="exec $SHELL -l";
xclip = "xclip -selection c";
mkdir="mkdir -pv";
psmem="ps -e -orss=,args= | sort -b -k1 -nr";
psmem10="ps -e -orss=,args= | sort -b -k1 -nr | head -10";
pscpu="ps -e -o pcpu,cpu,nice,state,cputime,args|sort -k1,1n -nr";
pscpu10="ps -e -o pcpu,cpu,nice,state,cputime,args|sort -k1,1n -nr | head -10";
gua = "git remote | xargs -L1 git push --all";
};
in {
# You can import other home-manager modules here # You can import other home-manager modules here
imports = [ imports = [
# If you want to use modules your own flake exports (from modules/home-manager): # If you want to use modules your own flake exports (from modules/home-manager):
@@ -156,7 +117,7 @@ in {
discord discord
telegram-desktop telegram-desktop
libreoffice-fresh libreoffice-fresh
vscodium # vscodium
vscode vscode
neovide neovide
lunarvim lunarvim