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:
Kevin Baensch 2020-03-27 13:25:54 +01:00
parent 5242db83e2
commit ad76922338
Signed by: derped
GPG key ID: C0F1D326C7626543
36 changed files with 18 additions and 5 deletions

View file

@ -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, ...)
'';