diff options
| Commit | 3d363513f847850b834dacc4715b5c22b42b7079 (patch) | |
|---|---|---|
| Author | 2023-11-28 22:01:11 +0200 | |
| Committer | 2023-11-28 22:01:11 +0200 | |
| Files | 4fb4b0602184e990d620398093636c215cb1817f /autoconfig.nix | |
| nix-3d363513f847850b834dacc4715b5c22b42b7079.tar nix-3d363513f847850b834dacc4715b5c22b42b7079.tar.gz nix-3d363513f847850b834dacc4715b5c22b42b7079.zip | ||
| Parent | f1f6b27853d6b2271817859bdc6eb2d33ea064aa (diff) | |
(autoconfig/packages) Added machine type and name checks
1 files changed, 4 insertions, 1 deletions
| -rw-r--r-- | autoconfig.nix | 5 |
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 { |
