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>
26 lines
438 B
Nix
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;
|
|
};
|
|
}
|