Refactoring of variables

This commit is contained in:
FredzyW 2024-04-13 19:41:36 +02:00
parent 222fad61ea
commit 5b430c3ac3
8 changed files with 60 additions and 32 deletions

View file

@ -2,10 +2,10 @@
let
dwm = pkgs.dwm.overrideAttrs (old: {
src = builtins.fetchGit {
# url = "https://github.com/FredzyW/dwm-conf.git";
# rev = "99a1e812295bcf65625a4b5a0dc1022658977920";
url = "https://git.wastring.com/fw/dwm.git";
rev = "04039f157960b83f1ab8abebb0ea77c72a75a249";
url = "https://github.com/FredzyW/dwm-conf.git";
rev = "99a1e812295bcf65625a4b5a0dc1022658977920";
# url = "https://git.wastring.com/fw/dwm.git";
# rev = "04039f157960b83f1ab8abebb0ea77c72a75a249";
};
nativeBuildInputs = with pkgs; [
xorg.libX11.dev
@ -16,17 +16,17 @@ let
});
dwmblocks = if myhostname == "nix-desktop" then pkgs.dwmblocks.overrideAttrs (old: {
src = builtins.fetchGit {
# url = "https://github.com/FredzyW/dwmblocks.git";
# rev = "a334789ec7b9171a3c8e1fcac2ffe8463ee438dc";
url = "https://git.wastring.com/fw/dwmblocks.git";
rev = "ce19d482155f3292dc77179a2485670a48d2669c";
url = "https://github.com/FredzyW/dwmblocks.git";
rev = "a334789ec7b9171a3c8e1fcac2ffe8463ee438dc";
# url = "https://git.wastring.com/fw/dwmblocks.git";
# rev = "ce19d482155f3292dc77179a2485670a48d2669c";
};
}) else pkgs.dwmblocks.overrideAttrs (old: {
src = builtins.fetchGit {
# url = "https://github.com/FredzyW/dwmblocks.git";
# rev = "7c81c55390f2deec2a3804217abe80221ef6f46a";
url = "https://git.wastring.com/fw/dwmblocks.git";
rev = "52198f692f5965b3e86577e8481e035d4c37ab52";
url = "https://github.com/FredzyW/dwmblocks.git";
rev = "7c81c55390f2deec2a3804217abe80221ef6f46a";
# url = "https://git.wastring.com/fw/dwmblocks.git";
# rev = "52198f692f5965b3e86577e8481e035d4c37ab52";
};
});
in

View file

@ -19,6 +19,14 @@
name = "powerlevel10k";
src = pkgs.zsh-powerlevel10k;
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
}
{
name = "zsh-syntax-highlighting";
src = pkgs.zsh-syntax-highlighting;
}
{
name = "zsh-autosuggestions";
src = pkgs.zsh-autosuggestions;
}
];
profileExtra = "
@ -27,8 +35,8 @@
fi
";
shellAliases = {
ls="ls --color=auto";
ll="ls -al --color=auto";
ls="eza";
ll="eza -al";
ccr="gcc intopt.c && ./a.out";
homec="nvim ~/nix/config/home.nix";
nvimc="nvim ~/.config/nvim/init.lua";
@ -65,6 +73,7 @@
# autoload -Uz compinit
autoload -U compinit; compinit
zstyle ':completion:*' menu select
eval $(thefuck --alias)
'';
};