90 lines
2.3 KiB
Nix
Raw Normal View History

2024-09-18 13:35:49 +03:00
{ config, pkgs, ... }: {
home.packages = [ pkgs.nh ];
2024-09-27 23:08:41 +03:00
programs = {
zoxide.enable = true;
2024-09-28 18:36:18 +03:00
fzf.enable = true;
2024-09-27 23:08:41 +03:00
starship = {
enable = true;
enableZshIntegration = true;
2024-04-17 05:52:14 +05:00
2024-09-27 23:08:41 +03:00
settings = {
add_newline = true;
format = ''
$os$directory$git_branch$git_status
$status$character
'';
right_format = "$all";
2024-04-23 11:48:43 +03:00
2024-09-27 23:08:41 +03:00
cmake.disabled = true;
cmd_duration = {
format = "";
show_notifications = true;
notification_timeout = 10000;
};
git_branch.format = "on [$branch(:$remote_branch)]($style) ";
git_metrics.disabled = false;
git_status = {
conflicted = "!";
up_to_date = "ok";
stashed = "S";
modified = "M";
};
directory = {
truncation_length = 3;
fish_style_pwd_dir_length = 1;
read_only = " RO";
};
os.disabled = false;
python = {
symbol = "py ";
python_binary = ["python3" "python"];
};
status.disabled = false;
};
};
2024-04-17 05:52:14 +05:00
2024-10-27 00:09:44 +03:00
zellij.enable = true;
2024-09-27 23:08:41 +03:00
zsh = {
2024-04-17 05:52:14 +05:00
enable = true;
2024-09-27 23:08:41 +03:00
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
shellAliases =
let
flakeDir = "~/nix";
in {
rb = "nh os switch ${flakeDir}";
2024-10-31 22:39:16 +03:00
upd = "nix flake update --flake ${flakeDir}";
2024-09-27 23:08:41 +03:00
upg = "sudo nixos-rebuild switch --upgrade --flake ${flakeDir}";
hms = "nh home switch ${flakeDir}";
2024-11-26 20:02:46 +03:00
rhms = ''${pkgs.bash} $(home-manager generations | fzf | awk -F '-> ' '{print $2 "/activate"}')''; #https://github.com/nix-community/home-manager/issues/1114#issuecomment-2067785129
2024-09-27 23:08:41 +03:00
conf = "$EDITOR ${flakeDir}/nixos/hosts/$(hostname)/configuration.nix";
pkgs = "$EDITOR ${flakeDir}/nixos/packages.nix";
ll = "ls -l";
se = "sudoedit";
ff = "fastfetch";
2024-11-26 22:07:44 +03:00
cat = "${pkgs.lib.getExe pkgs.bat}";
2024-09-27 23:08:41 +03:00
cd = "z";
};
initExtra = ''
eval "$(zoxide init zsh)"
eval "$(nh completions --shell zsh)"
2024-09-28 18:36:18 +03:00
source "$(fzf-share)/key-bindings.zsh"
source "$(fzf-share)/completion.zsh"
2024-09-27 23:08:41 +03:00
'';
history.size = 10000;
history.path = "${config.xdg.dataHome}/zsh/history";
oh-my-zsh.enable = true;
2024-04-17 05:52:14 +05:00
};
};
}