nix-managed-macbook/programs/default.nix

118 lines
2.5 KiB
Nix
Raw Permalink 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
2023-11-20 13:03:25 +05:30
nix-tree
2022-10-15 22:10:18 +05:30
nixfmt
2024-02-06 22:04:23 +05:30
nvd
2022-10-15 22:10:18 +05:30
statix
2023-10-06 19:05:40 +05:30
cachix
2022-10-15 22:10:18 +05:30
];
2024-01-31 19:23:23 +05:30
networkingPackages = with pkgs; [ curl dig httpie openssh mosh ];
cmdLineUtilPackages = with pkgs; [ bash broot coreutils-full fd gnugrep less ranger tree ];
2022-10-15 22:10:18 +05:30
miscPackages = with pkgs; [
2023-11-20 19:38:27 +05:30
binutils
2023-04-27 19:32:40 +05:30
cabal2nix
2022-09-27 13:08:52 +05:30
cloc
2022-09-27 17:58:53 +05:30
comma
difftastic
2022-09-27 13:08:52 +05:30
dua
entr
2024-01-31 23:03:01 +05:30
hyperfine
2022-09-27 13:08:52 +05:30
gitui
graphviz-nox
2022-12-10 15:38:45 +05:30
iterm2
2022-09-27 17:58:53 +05:30
jetbrains.idea-community
2022-12-07 11:32:44 +05:30
just
2022-09-27 13:08:52 +05:30
micro
2024-05-02 19:05:26 +05:30
fastfetch
2022-10-05 23:16:17 +05:30
proselint
2022-09-27 17:58:53 +05:30
shellcheck
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}"; })
2023-11-25 12:48:21 +05:30
(pkgs.callPackage ../packages/monaspace.nix { monaspace-src = "${inputs.monaspace-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
2023-11-24 16:35:04 +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;
sort_direction = false;
sort_key = "PERCENT_CPU";
tree_view = true;
};
2022-09-27 13:08:52 +05:30
};
eza.enable = true;
2022-09-27 13:08:52 +05:30
2023-11-24 16:35:04 +05:30
direnv = {
enable = true;
nix-direnv = { enable = true; };
};
2022-09-27 13:08:52 +05:30
2023-11-24 16:35:04 +05:30
nix-index = {
enable = true;
enableFishIntegration = true;
};
2022-09-27 13:08:52 +05:30
2023-11-24 16:35:04 +05:30
bat = {
enable = true;
config = {
italic-text = "always";
paging = "always";
tabs = "2";
theme = "DarkNeon";
};
2022-09-27 13:08:52 +05:30
};
2023-11-24 16:35:04 +05:30
fzf = {
enable = true;
enableFishIntegration = true;
fileWidgetCommand = "fd --type f --no-ignore";
historyWidgetOptions = [ "--reverse" "--sort" "--exact" ];
};
2022-09-27 13:08:52 +05:30
2023-11-24 16:35:04 +05:30
micro = {
enable = true;
settings = {
autoindent = true;
colorcolumn = 100;
colorscheme = "gruvbox";
diffgutter = true;
hlsearch = true;
mkparents = true;
savecursor = true;
softwrap = true;
tabsize = 2;
tabstospaces = true;
# plugins
manipulator = true;
};
2022-09-27 13:08:52 +05:30
};
2023-06-11 10:43:58 +05:30
2023-11-24 16:35:04 +05:30
zoxide.enable = true;
};
2022-09-27 13:08:52 +05:30
}