Summary Files Commits Branches @commit @diff @stats
path: root / autoconfig.nix
diff options
context:
space:
mode:
1 files changed, 4 insertions, 1 deletions
-rw-r--r--autoconfig.nix5
diff --git a/autoconfig.nix b/autoconfig.nix
index 8f74c7f..0d2055c 100644
--- a/autoconfig.nix
+++ b/autoconfig.nix
@@ -49,7 +49,10 @@ in {
in
_mergeAttrs [config config-from-group])
{}
- package-groups; # TODO: filter on machine type
+ (lib.filterAttrs
+ (_: prop: ((prop ? for.type) -> (builtins.elem sysidentity.type prop.for.type)) &&
+ ((prop ? for.name) -> (builtins.elem sysidentity.name prop.for.name)))
+ package-groups);
in
lib.nixosSystem {