Files
nix-dotfiles/modules/system/packages.nix
T
emmatherockandClaude Sonnet 5 7c2a09a360 refactor(packages): split core packages from per-host extras
modules/system/packages.nix now exposes myPackages.extra so hosts can
add their own tools on top of the always-installed core set, instead
of hardcoding every host's packages in one shared list.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-12 03:20:28 -03:00

26 lines
438 B
Nix

{ lib, pkgs, config, ... }:
let
cfg = config.myPackages;
in
{
options.myPackages = {
extra = lib.mkOption {
type = lib.types.listOf lib.types.package;
default = [ ];
description = "Extra packages to install on this host, beyond the core set.";
};
};
config = {
environment.systemPackages = with pkgs; [
git
wget
curl
ethtool
fish
tmux
] ++ cfg.extra;
};
}