dotfiles/home-manager/common.nix
Raine Godmaire bae1f1eecc meh
2024-06-15 10:38:18 -04:00

134 lines
2.6 KiB
Nix

{ pkgs, ... }:
{
# 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.05"; # Please read the comment before changing.
# The home.packages option allows you to install Nix packages into your
# environment.
home.packages = with pkgs; [
nil
nixfmt
devenv
direnv
bat
bottom
charm-freeze
eza
fd
hyperfine
jq
just
ripgrep
sd
tokei
yazi
# Languages
elixir
elixir-ls
go
gopls
gore
gotools
luajit
rustup
shfmt
shellcheck
# System
ansible
opentofu
pass
];
home.file = {
".config/doom".source = ../doom;
".config/nvim".source = ../nvim;
};
# You can also manage environment variables but you will have to manually
# source
#
# ~/.nix-profile/etc/profile.d/hm-session-vars.sh
#
# or
#
# /etc/profiles/per-user/digyx/etc/profile.d/hm-session-vars.sh
#
# if you don't want to manage your shell through Home Manager.
home.sessionVariables = {
# EDITOR = "emacs";
};
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
# Shell configurations
programs.fish = {
enable = true;
shellInit = ''
fish_add_path $HOME/.emacs.d/bin/
fish_add_path $HOME/.cargo/bin/
'';
loginShellInit = ''
set -x XDG_DATA_DIRS $HOME/.nix-profile/share:$XDG_DATA_DIRS
set -x DIRENV_LOG_FORMAT
set -x SSH_AUTH_SOCK /run/user/1000/keyring/ssh
'';
interactiveShellInit = ''
set fish_greeting
'';
functions = { update = "nix-channel --update && home-manager switch"; };
};
programs.mise.enable = true;
programs.starship.enable = true;
programs.zoxide.enable = true;
# Programming configurations
programs.man = {
enable = true;
generateCaches = true;
};
programs.git = {
enable = true;
userName = "Raine Godmaire";
userEmail = "its@raine.ing";
delta = {
enable = true;
options = { side-by-side = true; };
};
extraConfig = { init = { defaultBranch = "main"; }; };
};
programs.emacs = {
enable = true;
package = pkgs.emacs29-pgtk;
extraPackages = epkgs: with epkgs; [ pdf-tools vterm ];
};
programs.neovim = {
enable = true;
defaultEditor = true;
};
}