nix-config/home.nix

251 lines
4.1 KiB
Nix

{
lib,
pkgs,
...
}:
{
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
imports = (import ./programs);
nixpkgs.config.allowUnfreePredicate =
pkg:
builtins.elem (lib.getName pkg) [
"discord"
"slack"
"vscode"
"vscode-extension-github-copilot"
"vscode-extension-github-copilot-chat"
"vscode-extension-MS-python-vscode-pylance"
"vscode-extension-visualjj-visualjj"
"zoom"
];
home = {
stateVersion = "24.05";
sessionVariables = {
EDITOR = "nvim";
VISUAL = "$EDITOR";
};
packages = with pkgs; [
any-nix-shell
aspell
basedpyright
bash-language-server
cachix
cmake
coursier
curlFull
delta
deno
devenv
discord
dua
fd
ffmpeg
font-awesome
gnupg
go
graphviz
jq-lsp
lazyjj
luajit
lua-language-server
marksman
marp-cli
maven
meld
metals
multimarkdown
mypy
neofetch
neovim
nil
niv
nixd
nix-index
nixfmt-rfc-style
nix-prefetch-git
nodejs
ollama
openssl
pandoc
patchelf
pngpaste
prettyping
python3Packages.huggingface-hub
python3Packages.jupyterlab
rclone
readline
ripgrep
ripgrep-all
rustup
sbt
scala-cli
shellcheck
slack
slides
slumber
sqlite
stylua
swift-format
tealdeer
tectonic
texlab
tig
tokei
tree
tree-sitter
typescript
typescript-language-server
wget
vscode-langservers-extracted
xz
yaml-language-server
yq
zoom-us
];
};
programs.bat = {
enable = true;
};
programs.btop = {
enable = true;
};
programs.darcs = {
enable = true;
author = [ "Salar Rahmanian <code@softinio.com>" ];
boring = [
"^.idea$"
"^.direnv$"
"^.envrc$"
"^.vscode$"
];
};
programs.direnv = {
enable = true;
nix-direnv.enable = true;
};
programs.eza = {
enable = true;
enableFishIntegration = true;
git = true;
icons = "auto";
extraOptions = [
"--group-directories-first"
"--long"
"--header"
"--all"
];
};
programs.fzf = {
enable = true;
enableFishIntegration = true;
};
programs.gh = {
enable = true;
settings = {
editor = "nvim";
git_protocol = "ssh";
prompt = "enabled";
aliases = {
co = "pr checkout";
pv = "pr view";
};
};
};
programs.gh-dash = {
enable = true;
};
programs.helix = {
enable = true;
settings = {
theme = "tokyonight";
};
};
programs.htop = {
enable = true;
};
programs.java = {
enable = true;
};
programs.jq = {
enable = true;
};
programs.jujutsu = {
enable = true;
settings = {
signing = {
key = "~/.ssh/id_ed25519.pub";
};
user = {
name = "Salar Rahmanian";
email = "code@softinio.com";
};
ui = {
diff.format = "git";
diff.tool = [
"delta"
"--color-only"
"--hyperlinks"
"--line-numbers"
"--side-by-side"
"$left"
"$right"
];
editor = "nvim";
merge-editor = [
"meld"
"$left"
"$base"
"$right"
"-o"
"$output"
];
pager = "delta";
};
};
};
programs.lazygit = {
enable = true;
};
programs.nix-index = {
enable = true;
enableFishIntegration = true;
};
programs.starship = {
enable = true;
enableFishIntegration = true;
settings = {
command_timeout = 1000;
character = {
success_symbol = " [λ](bold green)";
error_symbol = " [λ](bold red)";
};
};
};
# Neovim Configuration
xdg.configFile."nvim".source = builtins.fetchGit {
url = "https://code.softinio.com/softinio/nvim-config";
rev = "a972cdf4f9067111d67f2f0b5655eede437cdff3";
};
}