dotfiles/nix/home.nix

86 lines
1.7 KiB
Nix
Raw Normal View History

{
config,
pkgs,
helpers,
...
2024-03-19 05:12:35 +01:00
}: {
# Home Manager needs a bit of information about you and the paths it should
# manage.
home.username = "gabe";
home.homeDirectory = "/home/gabe";
home.stateVersion = "23.11"; # Please read the comment before changing.
2024-03-19 05:12:35 +01:00
home.packages = with pkgs; [
zellij
sshfs
just
espeak
fd
sd
hugo
scc
tre-command
diskonaut
hyperfine
curl
];
# Home Manager is pretty good at managing dotfiles. The primary way to manage
# plain files is through 'home.file'.
home.file = {
2024-03-19 05:12:35 +01:00
".config/zellij/config.kdl".source = ./zellij/config.kdl;
};
home.sessionVariables = {
EDITOR = "nvim";
VISUAL = "nvim";
2024-03-21 17:03:33 +01:00
PIPENV_VENV_IN_PROJECT = 1;
POETRY_VIRTUALENVS_IN_PROJECT = 1;
};
home.sessionPath = [
2024-03-19 02:45:03 +01:00
"$HOME/.nix-profile/bin/"
"$HOME/.local/bin/"
"$HOME/.cargo/bin/"
"/opt/"
];
home.shellAliases = {
say = "espeak -p 10 -s 150 -a 200";
pdfmk = "latexmk -lualatex -pvc";
doc2pdf = "loffice --convert-to-pdf --headless *.docx";
sshmnt = "sshfs -o idmap=user,compression=no,reconnect,follow_symlinks,dir_cache=yes,ServerAliveInterval=15";
};
2024-03-19 05:12:35 +01:00
imports = [
./nushell/nushell.nix
./zsh.nix
./git.nix
./starship.nix
2024-03-19 22:57:23 +01:00
./nvim/nvim.nix
2024-03-19 05:12:35 +01:00
];
programs = {
yazi.enable = true;
zoxide.enable = true;
fzf.enable = true;
ripgrep.enable = true;
bat.enable = true;
tealdeer.enable = true;
btop.enable = true;
carapace.enable = true;
};
services.ssh-agent.enable = true;
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
2024-03-19 02:45:03 +01:00
# enable flakes
nix = {
package = pkgs.nix;
2024-03-19 05:12:35 +01:00
settings.experimental-features = ["nix-command" "flakes"];
2024-03-19 02:45:03 +01:00
};
}