Move pkgsets folder into project root to conform with option naming.
Add simple package filter to auto remove broken packages.
This commit is contained in:
parent
5242db83e2
commit
ad76922338
36 changed files with 18 additions and 5 deletions
|
@ -7,14 +7,14 @@ let
|
|||
cfg = config.machine;
|
||||
fn = import (toString ../fn.nix) { inherit lib; };
|
||||
metapkgs = let
|
||||
pPath = (toString ./../pkgs/pkgsets);
|
||||
pPath = (toString ../pkgsets);
|
||||
in (lists.forEach (fn.lsfRec pPath true) (v: replaceStrings [ "${pPath}/" "/" ".nix" ] [ "" "::" "" ] v));
|
||||
pkgOption = pname: {
|
||||
name = pname;
|
||||
value = rec {
|
||||
pkgwrap = mkOption {
|
||||
type = with types; oneOf [ package (listOf package) ];
|
||||
default = cfg.pkgsets."${pname}".pkgs;
|
||||
default = (fn.pkgFilter cfg.pkgsets."${pname}".pkgs);
|
||||
description = ''
|
||||
Package Wrapper for packages using a wrapper function (like python, emacs, haskell, ...)
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue