106 lines
2.8 KiB
Nix
106 lines
2.8 KiB
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
# Home Manager needs a bit of information about you and the paths it should
|
|
# manage.
|
|
home.username = "yadunut";
|
|
home.homeDirectory = "/Users/yadunut";
|
|
|
|
# This value determines the Home Manager release that your configuration is
|
|
# compatible with. This helps avoid breakage when a new Home Manager release
|
|
# introduces backwards incompatible changes.
|
|
#
|
|
# You should not change this value, even if you update Home Manager. If you do
|
|
# want to update the value, then make sure to first check the Home Manager
|
|
# release notes.
|
|
home.stateVersion = "23.11"; # Please read the comment before changing.
|
|
|
|
# The home.packages option allows you to install Nix packages into your
|
|
# environment.
|
|
home.packages = [
|
|
pkgs.htop
|
|
pkgs.ripgrep
|
|
pkgs.bat
|
|
pkgs.delta
|
|
pkgs.fd
|
|
|
|
# # It is sometimes useful to fine-tune packages, for example, by applying
|
|
# # overrides. You can do that directly here, just don't forget the
|
|
# # parentheses. Maybe you want to install Nerd Fonts with a limited number of
|
|
# # fonts?
|
|
# (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
|
|
|
|
# # You can also create simple shell scripts directly inside your
|
|
# # configuration. For example, this adds a command 'my-hello' to your
|
|
# # environment:
|
|
# (pkgs.writeShellScriptBin "my-hello" ''
|
|
# echo "Hello, ${config.home.username}!"
|
|
# '')
|
|
];
|
|
|
|
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
|
# plain files is through 'home.file'.
|
|
home.file = {
|
|
# ".screenrc".source = dotfiles/screenrc;
|
|
|
|
# # You can also set the file content immediately.
|
|
# ".gradle/gradle.properties".text = ''
|
|
# org.gradle.daemon.idletimeout=3600000
|
|
# '';
|
|
};
|
|
|
|
home.sessionVariables = {
|
|
EDITOR = "nvim";
|
|
};
|
|
|
|
programs.fzf.enable = true;
|
|
programs.fzf.enableZshIntegration = true;
|
|
|
|
programs.zoxide.enable = true;
|
|
programs.zoxide.enableZshIntegration = true;
|
|
|
|
programs.eza.enable = true;
|
|
programs.eza.enableZshIntegration = true;
|
|
|
|
programs.kitty.shellIntegration.enableZshIntegration = true;
|
|
programs.emacs.enable = true;
|
|
|
|
programs.lazygit.enable = true;
|
|
|
|
programs.zsh = {
|
|
enable = true;
|
|
prezto = {
|
|
enable = true;
|
|
editor.keymap = "vi";
|
|
editor.dotExpansion = true;
|
|
pmodules = [
|
|
"environment"
|
|
"terminal"
|
|
"utility"
|
|
"directory"
|
|
"editor"
|
|
"history"
|
|
"syntax-highlighting"
|
|
"history-substring-search"
|
|
"autosuggestions"
|
|
"completion"
|
|
];
|
|
};
|
|
shellAliases = {
|
|
lg = "lazygit";
|
|
cat = "bat";
|
|
diff = "delta";
|
|
s = "kitty +kitten ssh";
|
|
};
|
|
};
|
|
|
|
programs.starship = {
|
|
enable = true;
|
|
enableZshIntegration = true;
|
|
};
|
|
programs.neovim.enable = true;
|
|
|
|
# Let Home Manager install and manage itself.
|
|
programs.home-manager.enable = true;
|
|
}
|