my nix stuff!

This commit is contained in:
2025-08-20 22:33:31 +03:00
parent 48100ee09e
commit 8bf64faaa8
10 changed files with 142 additions and 64 deletions

27
modules/stuff/zsh.nix Normal file
View File

@@ -0,0 +1,27 @@
{ config, inputs, pkgs, lib, ... }:
{
programs.direnv = {
enable = true;
enableZshIntegration = true;
};
programs.zsh = {
enable = true;
autosuggestions.enable = true;
zsh-autoenv.enable = true;
syntaxHighlighting.enable = true;
ohMyZsh = {
enable = true;
plugins = [ "git" "direnv" ];
theme = "robbyrussell";
};
shellAliases = {
nixrebuild = "sudo nixos-rebuild switch --flake .#default --impure --cores 4 -L --upgrade";
dangerous-nixrebuild-server = "sudo nixos-rebuild switch --flake .#server --impure --cores 4 -L --upgrade";
neofetch = "fastfetch";
};
};
}