From 9a435da5e3402a5bd8d85df2255f6e00caa96dc1 Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Thu, 31 Oct 2024 22:56:43 -0400 Subject: [PATCH] modularized home packages --- home/packages/common.nix | 52 +++++++++++++++++++++++++++++++++++++++ home/packages/darwin.nix | 11 +++++++++ home/packages/default.nix | 11 +++++++++ home/packages/linux.nix | 11 +++++++++ 4 files changed, 85 insertions(+) create mode 100644 home/packages/common.nix create mode 100644 home/packages/darwin.nix create mode 100644 home/packages/default.nix create mode 100644 home/packages/linux.nix diff --git a/home/packages/common.nix b/home/packages/common.nix new file mode 100644 index 0000000..43cc268 --- /dev/null +++ b/home/packages/common.nix @@ -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 + ]; +} diff --git a/home/packages/darwin.nix b/home/packages/darwin.nix new file mode 100644 index 0000000..19e825b --- /dev/null +++ b/home/packages/darwin.nix @@ -0,0 +1,11 @@ +{ + pkgs, + lib, + ... +}: { + home.packages = lib.mkIf pkgs.stdenv.isDarwin (with pkgs; [ + iterm2 + discord + ollama + ]); +} diff --git a/home/packages/default.nix b/home/packages/default.nix new file mode 100644 index 0000000..58789ec --- /dev/null +++ b/home/packages/default.nix @@ -0,0 +1,11 @@ +{ + pkgs, + lib, + ... +}: { + imports = [ + ./common.nix + ./darwin.nix + ./linux.nix + ]; +} diff --git a/home/packages/linux.nix b/home/packages/linux.nix new file mode 100644 index 0000000..3208b8e --- /dev/null +++ b/home/packages/linux.nix @@ -0,0 +1,11 @@ +{ + pkgs, + lib, + ... +}: { + home.packages = lib.mkIf pkgs.stdenv.isLinux (with pkgs; [ + imv + betterdiscordctl + vesktop + ]); +}