modularized home packages

This commit is contained in:
Wyatt J. Miller 2024-10-31 22:56:43 -04:00
parent fcd11e5127
commit 9a435da5e3
4 changed files with 85 additions and 0 deletions

52
home/packages/common.nix Normal file
View File

@ -0,0 +1,52 @@
{pkgs, ...}: {
home.packages = with pkgs; [
nnn # terminal file manager
# archives
zip
xz
unzip
p7zip
# utils
zellij
tmux
bat
lazygit
bottom
ripgrep
jq
yq-go
fzf
fh
aria2
yt-dlp
imv
xdg-utils
obsidian
vscode
weechat
# misc
cowsay
file
which
tree
gnutar
gnupg
nerdfonts
zoxide
babelfish
# language-specific package managers
nodejs
cargo
python3
# nix specific stuff
nixd
deadnix
alejandra
statix
];
}

11
home/packages/darwin.nix Normal file
View File

@ -0,0 +1,11 @@
{
pkgs,
lib,
...
}: {
home.packages = lib.mkIf pkgs.stdenv.isDarwin (with pkgs; [
iterm2
discord
ollama
]);
}

11
home/packages/default.nix Normal file
View File

@ -0,0 +1,11 @@
{
pkgs,
lib,
...
}: {
imports = [
./common.nix
./darwin.nix
./linux.nix
];
}

11
home/packages/linux.nix Normal file
View File

@ -0,0 +1,11 @@
{
pkgs,
lib,
...
}: {
home.packages = lib.mkIf pkgs.stdenv.isLinux (with pkgs; [
imv
betterdiscordctl
vesktop
]);
}