mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
local.packages convenience option
This commit is contained in:
parent
4ecebe8210
commit
99f42f5841
5 changed files with 109 additions and 106 deletions
8
modules/packages.nix
Normal file
8
modules/packages.nix
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue