local.packages convenience option

This commit is contained in:
Gerg-L 2025-01-13 13:23:44 -05:00
parent 4ecebe8210
commit 99f42f5841
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI
5 changed files with 109 additions and 106 deletions

8
modules/packages.nix Normal file
View file

@ -0,0 +1,8 @@
{ lib, config }:
{
options.local.packages = lib.mkOption {
type = lib.types.attrsOf lib.types.package;
default = { };
};
config.environment.systemPackages = builtins.attrValues config.local.packages;
}