Signed-off-by: Alex Stan <alex.stan.2010@proton.me>
This commit is contained in:
Alex Stan 2024-07-03 11:06:03 +03:00
parent b9919b32b9
commit 023cd7e619
4 changed files with 75 additions and 4 deletions

View file

@ -67,6 +67,7 @@
environment.etc."nix/inputs/nixpkgs".source = nixpkgs.outPath; environment.etc."nix/inputs/nixpkgs".source = nixpkgs.outPath;
nix.nixPath = [ nix.nixPath = [
"nixpkgs=/etc/nix/inputs/nixpkgs" "nixpkgs=/etc/nix/inputs/nixpkgs"
"nixos=/etc/nix/inputs/nixpkgs"
"nixos-config=/home/ultra/.nixdotfiles" "nixos-config=/home/ultra/.nixdotfiles"
]; ];
} }

View file

@ -127,7 +127,8 @@ in {
qFlipper qFlipper
remmina remmina
]; ];
shell = pkgs.fish; shell = pkgs.zsh;
ignoreShellProgramCheck = true; # I configured zsh with home-manager
}; };
environment.variables = { environment.variables = {
@ -197,6 +198,7 @@ in {
# NVIDIA # NVIDIA
hardware.opengl = { hardware.opengl = {
enable = true; enable = true;
driSupport32Bit = true;
}; };
services.xserver.videoDrivers = [ "nvidia" ]; services.xserver.videoDrivers = [ "nvidia" ];

View file

@ -117,3 +117,5 @@
(add-hook 'prog-mode-hoow 'rainbow-mode) (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)

View file

@ -61,6 +61,11 @@ let
geiser geiser
rainbow-delimiters rainbow-delimiters
rainbow-mode rainbow-mode
esh-autosuggest
fish-completion
steam
zone-sl
helm
]; ];
}); });
helix = inputs.helix.packages.${pkgs.system}.default; helix = inputs.helix.packages.${pkgs.system}.default;
@ -123,7 +128,7 @@ in {
zoom-us zoom-us
google-chrome google-chrome
zoxide zoxide
starship # starship
atuin atuin
clang clang
(lib.hiPrio gcc) (lib.hiPrio gcc)
@ -259,6 +264,7 @@ in {
(inputs.nix-inst.packages.${pkgs.system}.default) (inputs.nix-inst.packages.${pkgs.system}.default)
dotnet-runtime_6 dotnet-runtime_6
tea tea
thefuck
]; ];
file = { file = {
"emacs.d/everblush-theme.el".source = ./configs/emacs/everblush-theme.el; "emacs.d/everblush-theme.el".source = ./configs/emacs/everblush-theme.el;
@ -289,6 +295,66 @@ in {
}; };
home-manager.enable = true; home-manager.enable = true;
# fish.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 config
helix = { helix = {