Flake lock file updates: • Updated input 'home-manager': 'github:nix-community/home-manager/5f6aa268e419d053c3d5025da740e390b12ac936?narHash=sha256-C73gLFnEh8ZI0uDijUgCDWCd21T6I6tsaWgIBHcfAXg%3D' (2025-01-01) → 'github:nix-community/home-manager/fc52a210b60f2f52c74eac41a8647c1573d2071d?narHash=sha256-TY0jUwR3EW0fnS0X5wXMAVy6h4Z7Y6a3m%2BYq%2B%2BC9AyE%3D' (2025-01-13) • Updated input 'nix-darwin': 'github:LnL7/nix-darwin/53a0c2fe6ed46ab33fc4a221c9f907a7b4c8a91c?narHash=sha256-rTpBl3xmKYDQTRWF8CRk/r1FoKPDVwqLHGoU7tfECvY%3D' (2024-12-28) → 'github:LnL7/nix-darwin/6ace2f2d12bdf74235d5cbf9fbd34a71c9716685?narHash=sha256-mG9lRZBcPiAGiVJ9B97BJoIGQcSBWIVlBiN30QYCtG0%3D' (2025-01-11) • Updated input 'nix-vscode-extensions': 'github:nix-community/nix-vscode-extensions/adf374ae7e5237a3aa03e88503644732ea15045d?narHash=sha256-UMLwX1WiR2cjJndlKHm4WXQ8fBKJPMMSUsk%2BYjsjTl8%3D' (2024-12-29) → 'github:nix-community/nix-vscode-extensions/44474e2ca975af013f1594abd6c922f2c8dba022?narHash=sha256-6232F8et5z7XTxK0RuX6bocT6yYGJhlmlHbFdZuHcP0%3D' (2025-01-13) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/69b9a8c860bdbb977adfa9c5e817ccb717884182?narHash=sha256-5zJyv66q68QZJZsXtmjDBazGnF0id593VSy%2B8eSckoo%3D' (2024-12-31) → 'github:nixos/nixpkgs/ef56e777fedaa4da8c66a150081523c5de1e0171?narHash=sha256-a3MMEY7i/wdF0gb7WFNTn6onzaiMOvwj7OerRVenA8o%3D' (2025-01-13) • Updated input 'nixpkgs-stable': 'github:nixos/nixpkgs/42f30f55ec9d396b67c456683b4409cd7d07fc7b?narHash=sha256-YJwQfdSFep6IFrhZGEjug/HuCauGntDAesjCS5mxTis%3D' (2024-12-25) → 'github:nixos/nixpkgs/1e7a8f391f1a490460760065fa0630b5520f9cf8?narHash=sha256-HB/FA0%2B1gpSs8%2B/boEavrGJH%2BEq08/R2wWNph1sM1Dg%3D' (2024-12-30)
216 lines
4.2 KiB
Nix
216 lines
4.2 KiB
Nix
{
|
|
inputs,
|
|
config,
|
|
pkgs,
|
|
pkgs-ghostty,
|
|
...
|
|
}:
|
|
|
|
let
|
|
leanHaskellBinary = pkgs.haskell.lib.compose.overrideCabal (old: {
|
|
isLibrary = false;
|
|
doHaddock = false;
|
|
enableLibraryProfiling = false;
|
|
enableSharedLibraries = false;
|
|
enableSeparateBinOutput = true;
|
|
});
|
|
opaComplete = name: pkgs.haskellPackages.generateOptparseApplicativeCompletions [ name ];
|
|
nixPackages = with pkgs; [
|
|
config.nix.package
|
|
niv
|
|
nix
|
|
nix-tree
|
|
nixfmt-rfc-style
|
|
nvd
|
|
nixd
|
|
statix
|
|
cachix
|
|
nix-output-monitor
|
|
];
|
|
networkingPackages = with pkgs; [
|
|
curl
|
|
dig
|
|
httpie
|
|
openssh
|
|
mosh
|
|
];
|
|
cmdLineUtilPackages = with pkgs; [
|
|
bash
|
|
broot
|
|
coreutils-full
|
|
fd
|
|
glow
|
|
gnugrep
|
|
less
|
|
ranger
|
|
tree
|
|
unixtools.watch
|
|
];
|
|
miscPackages = with pkgs; [
|
|
as-tree
|
|
binutils
|
|
brotli
|
|
cabal2nix
|
|
(opaComplete "cabal-plan" (leanHaskellBinary haskellPackages.cabal-plan))
|
|
(leanHaskellBinary (
|
|
import ../packages/pandoc-cli-3.5.nix {
|
|
system = pkgs.system;
|
|
nixpkgs = inputs.nixpkgs;
|
|
}
|
|
))
|
|
cloc
|
|
comma
|
|
difftastic
|
|
dua
|
|
entr
|
|
hyperfine
|
|
git-absorb
|
|
graphviz-nox
|
|
iterm2
|
|
jless
|
|
just
|
|
micro
|
|
fastfetch
|
|
proselint
|
|
shellcheck
|
|
typos
|
|
typos-lsp
|
|
xmlformat
|
|
];
|
|
fonts = with pkgs; [
|
|
fira-mono
|
|
inconsolata
|
|
jetbrains-mono
|
|
nanum-gothic-coding
|
|
roboto-mono
|
|
source-code-pro
|
|
(pkgs.callPackage ../packages/dm-mono.nix { dm-mono-src = "${inputs.dm-mono-font}"; })
|
|
monaspace
|
|
nerd-fonts.iosevka
|
|
];
|
|
in
|
|
{
|
|
imports = [
|
|
./fish.nix
|
|
./git.nix
|
|
./starship.nix
|
|
./vscode.nix
|
|
./zed.nix
|
|
];
|
|
|
|
home.packages = nixPackages ++ networkingPackages ++ cmdLineUtilPackages ++ miscPackages ++ fonts;
|
|
|
|
programs = {
|
|
tmux = {
|
|
enable = true;
|
|
clock24 = true;
|
|
historyLimit = 100000000;
|
|
mouse = true;
|
|
shell = "/etc/profiles/per-user/abhinav/bin/fish";
|
|
terminal = "tmux-256color";
|
|
plugins = with pkgs; [tmuxPlugins.better-mouse-mode];
|
|
extraConfig = ''
|
|
set -g status off
|
|
'';
|
|
};
|
|
|
|
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;
|
|
};
|
|
};
|
|
|
|
eza = {
|
|
enable = true;
|
|
git = true;
|
|
};
|
|
|
|
direnv = {
|
|
enable = true;
|
|
nix-direnv = {
|
|
enable = true;
|
|
};
|
|
};
|
|
|
|
nix-index = {
|
|
enable = true;
|
|
enableFishIntegration = true;
|
|
};
|
|
|
|
bat = {
|
|
enable = true;
|
|
config = {
|
|
italic-text = "always";
|
|
paging = "always";
|
|
tabs = "2";
|
|
theme = "DarkNeon";
|
|
};
|
|
};
|
|
|
|
fzf = {
|
|
enable = true;
|
|
enableFishIntegration = true;
|
|
fileWidgetCommand = "fd --type f --no-ignore";
|
|
historyWidgetOptions = [
|
|
"--reverse"
|
|
"--sort"
|
|
"--exact"
|
|
];
|
|
};
|
|
|
|
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;
|
|
};
|
|
};
|
|
|
|
zoxide.enable = true;
|
|
|
|
ghostty = {
|
|
enable = true;
|
|
package = pkgs-ghostty.ghostty;
|
|
enableFishIntegration = true;
|
|
enableBashIntegration = true;
|
|
installBatSyntax = false;
|
|
settings = {
|
|
background-opacity = 0.95;
|
|
command = "/etc/profiles/per-user/abhinav/bin/tmux new";
|
|
copy-on-select = true;
|
|
font-family = "PragmataPro Mono";
|
|
font-size = 14;
|
|
macos-titlebar-style = "hidden";
|
|
minimum-contrast = 1.05;
|
|
mouse-hide-while-typing = true;
|
|
quick-terminal-position = "right";
|
|
quit-after-last-window-closed = false;
|
|
scrollback-limit = 100000000;
|
|
shell-integration = "detect";
|
|
theme = "ayu";
|
|
keybind = [
|
|
"global:cmd+shift+a=toggle_quick_terminal"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|