nix-managed-macbook/programs/default.nix

130 lines
2.4 KiB
Nix
Raw Normal View History

{ inputs, config, pkgs, ... }:
2022-09-27 13:08:52 +05:30
2022-10-15 22:10:18 +05:30
let
nixPackages = with pkgs; [
config.nix.package
niv
nix
nix-diff
nix-du
nixfmt
rnix-lsp
statix
];
networkingPackages = with pkgs; [
curl
dig
httpie
openssh
2022-11-27 23:25:08 +05:30
mosh
2022-10-15 22:10:18 +05:30
];
cmdLineUtilPackages = with pkgs; [
bash
2022-09-27 13:08:52 +05:30
broot
2022-10-15 22:10:18 +05:30
coreutils-full
fd
gnugrep
less
ranger
tree
];
miscPackages = with pkgs; [
2022-09-27 13:08:52 +05:30
cloc
2022-09-27 17:58:53 +05:30
comma
2022-09-27 13:08:52 +05:30
dua
entr
gitui
graphviz-nox
2022-09-27 17:58:53 +05:30
jetbrains.idea-community
2022-09-27 13:08:52 +05:30
micro
2022-09-29 11:39:28 +05:30
neofetch
2022-10-05 23:16:17 +05:30
proselint
2022-09-27 17:58:53 +05:30
shellcheck
2022-11-18 13:23:13 +05:30
toot
2022-11-27 23:25:08 +05:30
typos
2022-10-15 22:10:18 +05:30
];
fonts = with pkgs; [
2022-09-27 13:08:52 +05:30
fira-mono
inconsolata
jetbrains-mono
nanum-gothic-coding
roboto-mono
source-code-pro
2022-10-14 14:51:28 +05:30
(pkgs.callPackage ../packages/dm-mono.nix { dm-mono-src = "${inputs.dm-mono-font}"; })
2022-09-29 11:39:28 +05:30
(nerdfonts.override { fonts = [ "Monoid" "Agave" "Iosevka" "Lekton" "VictorMono" ]; })
2022-09-27 13:08:52 +05:30
];
2022-10-15 22:10:18 +05:30
in {
imports = [ ./fish.nix ./git.nix ./starship.nix ./vscode.nix ];
home.packages = nixPackages ++ networkingPackages ++ cmdLineUtilPackages ++ miscPackages ++ fonts;
2022-09-27 13:08:52 +05:30
programs.htop = {
enable = true;
settings = {
hide_kernel_threads = true;
hide_threads = true;
hide_userland_threads = true;
highlight_base_name = true;
show_program_path = false;
2022-09-29 11:39:28 +05:30
sort_direction = false;
sort_key = "PERCENT_CPU";
2022-09-27 13:08:52 +05:30
tree_view = true;
};
};
programs.exa = {
enable = true;
enableAliases = true;
};
programs.direnv = {
enable = true;
nix-direnv = { enable = true; };
};
programs.nix-index = {
enable = true;
enableFishIntegration = true;
};
programs.just = {
enable = true;
enableFishIntegration = true;
};
programs.bat = {
enable = true;
config = {
italic-text = "always";
paging = "always";
tabs = "2";
theme = "DarkNeon";
};
};
programs.fzf = {
enable = true;
enableFishIntegration = true;
fileWidgetCommand = "fd --type f --no-ignore";
historyWidgetOptions = [ "--reverse" "--sort" "--exact" ];
};
programs.micro = {
enable = true;
settings = {
autoindent = true;
colorcolumn = 100;
2022-12-04 22:20:33 +05:30
colorscheme = "gruvbox";
2022-09-27 13:08:52 +05:30
diffgutter = true;
hlsearch = true;
mkparents = true;
savecursor = true;
softwrap = true;
tabsize = 2;
tabstospaces = true;
# plugins
manipulator = true;
};
};
}