Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
1 files changed, 9 insertions, 4 deletions
-rw-r--r--autoconfig.nix13
diff --git a/autoconfig.nix b/autoconfig.nix
index 0d2055c..06021ee 100644
--- a/autoconfig.nix
+++ b/autoconfig.nix
@@ -31,7 +31,9 @@ in {
config-from-group =
lib.foldlAttrs
(acc: pkg-name: pkg-settings:
- if pkg-name == "list" then
+ if pkg-name == "for" then
+ acc
+ else if pkg-name == "list" then
_mergeAttrs [
acc
{
@@ -41,9 +43,12 @@ in {
_mergeAttrs [
acc
(lib.filterAttrs (name: _: name != "ref") pkg-settings)
- {
- environment.systemPackages = [pkg-settings.ref];
- }])
+ (if pkg-settings ? ref then
+ {
+ environment.systemPackages = [pkg-settings.ref];
+ }
+ else
+ {} )])
{}
package-group;
in