From 3d363513f847850b834dacc4715b5c22b42b7079 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 28 Nov 2023 22:01:11 +0200 Subject: (autoconfig/packages) Added machine type and name checks --- autoconfig.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'autoconfig.nix') 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 { -- cgit v1.3.1-26-gb76a