mirror of
https://codeberg.org/ultra/nixos-dotfiles.git
synced 2024-11-24 14:43:09 +02:00
zsh :3
Signed-off-by: Alex Stan <alex.stan.2010@proton.me>
This commit is contained in:
parent
b9919b32b9
commit
023cd7e619
4 changed files with 75 additions and 4 deletions
|
@ -66,8 +66,9 @@
|
|||
{
|
||||
environment.etc."nix/inputs/nixpkgs".source = nixpkgs.outPath;
|
||||
nix.nixPath = [
|
||||
"nixpkgs=/etc/nix/inputs/nixpkgs"
|
||||
"nixos-config=/home/ultra/.nixdotfiles"
|
||||
"nixpkgs=/etc/nix/inputs/nixpkgs"
|
||||
"nixos=/etc/nix/inputs/nixpkgs"
|
||||
"nixos-config=/home/ultra/.nixdotfiles"
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
@ -127,7 +127,8 @@ in {
|
|||
qFlipper
|
||||
remmina
|
||||
];
|
||||
shell = pkgs.fish;
|
||||
shell = pkgs.zsh;
|
||||
ignoreShellProgramCheck = true; # I configured zsh with home-manager
|
||||
};
|
||||
|
||||
environment.variables = {
|
||||
|
@ -197,6 +198,7 @@ in {
|
|||
# NVIDIA
|
||||
hardware.opengl = {
|
||||
enable = true;
|
||||
driSupport32Bit = true;
|
||||
};
|
||||
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
|
|
|
@ -117,3 +117,5 @@
|
|||
|
||||
(add-hook 'prog-mode-hoow 'rainbow-mode)
|
||||
|
||||
(add-hook 'eshell-mode-hook #'esh-autosuggest-mode)
|
||||
(define-key eshell-mode-map [remap eshell-pcomplete] 'helm-esh-pcomplete)
|
||||
|
|
|
@ -61,6 +61,11 @@ let
|
|||
geiser
|
||||
rainbow-delimiters
|
||||
rainbow-mode
|
||||
esh-autosuggest
|
||||
fish-completion
|
||||
steam
|
||||
zone-sl
|
||||
helm
|
||||
];
|
||||
});
|
||||
helix = inputs.helix.packages.${pkgs.system}.default;
|
||||
|
@ -123,7 +128,7 @@ in {
|
|||
zoom-us
|
||||
google-chrome
|
||||
zoxide
|
||||
starship
|
||||
# starship
|
||||
atuin
|
||||
clang
|
||||
(lib.hiPrio gcc)
|
||||
|
@ -259,6 +264,7 @@ in {
|
|||
(inputs.nix-inst.packages.${pkgs.system}.default)
|
||||
dotnet-runtime_6
|
||||
tea
|
||||
thefuck
|
||||
];
|
||||
file = {
|
||||
"emacs.d/everblush-theme.el".source = ./configs/emacs/everblush-theme.el;
|
||||
|
@ -289,6 +295,66 @@ in {
|
|||
};
|
||||
home-manager.enable = true;
|
||||
# fish.enable = true;
|
||||
zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
autocd = true;
|
||||
autosuggestion = {
|
||||
enable = true;
|
||||
};
|
||||
syntaxHighlighting = {
|
||||
enable = true;
|
||||
};
|
||||
shellAliases = {
|
||||
cls = "clear";
|
||||
hmup = "nh home switch ~/.nixdotfiles";
|
||||
osup = "nh os switch ~/.nixdotfiles";
|
||||
# emcc = "emacsclient -c";
|
||||
};
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
plugins = [ "git" "thefuck" "history-substring-search" "fzf" ];
|
||||
theme = "cloud";
|
||||
};
|
||||
history = {
|
||||
size = 256 * 1024;
|
||||
path = "${config.xdg.dataHome}/zsh/history";
|
||||
extended = true;
|
||||
};
|
||||
initExtra = ''
|
||||
eval $(thefuck --alias)
|
||||
eval $(starship init zsh)
|
||||
'';
|
||||
zsh-abbr = {
|
||||
enable = true;
|
||||
abbreviations = {
|
||||
emcc = "emacsclient -c";
|
||||
sam = "git commit -sam";
|
||||
hmbk = "home-manager switch --flake ~/.nixdotfiles -b backup";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
zoxide = {
|
||||
enable = true;
|
||||
enableNushellIntegration = true;
|
||||
enableZshIntegration = true;
|
||||
};
|
||||
|
||||
starship = {
|
||||
enable = true;
|
||||
settings = {
|
||||
"$schema" = "https://starship.rs/config-schema.json";
|
||||
add_newline = false;
|
||||
character = {
|
||||
success_symbol = "[➜](bold green)";
|
||||
error_symbol = "[➜](bold red)";
|
||||
};
|
||||
format = ''
|
||||
$directory$git$nodejs$container$sudo$nix_shell$character
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
# Helix config
|
||||
helix = {
|
||||
|
|
Loading…
Reference in a new issue