215 lines
3.4 KiB
Nix
215 lines
3.4 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"
|
|
"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
|
|
luajit
|
|
lua-language-server
|
|
marksman
|
|
marp-cli
|
|
maven
|
|
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
|
|
skimpdf
|
|
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.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 = "b535afb6d9259e0ec18e2e7fda54384b48264746";
|
|
};
|
|
}
|