2024-08-05 16:40:32 -04:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
self,
|
|
|
|
}: let
|
2025-01-11 17:08:38 -05:00
|
|
|
inherit (pkgs.lib) filterAttrs mapAttrs' nameValuePair;
|
2024-12-11 12:05:16 -05:00
|
|
|
|
2025-01-11 17:08:38 -05:00
|
|
|
devices =
|
|
|
|
filterAttrs
|
|
|
|
(n: config: config.pkgs.system == pkgs.system)
|
|
|
|
self.nixosConfigurations;
|
2024-08-05 16:40:32 -04:00
|
|
|
in
|
|
|
|
mapAttrs'
|
2024-12-16 15:02:39 -05:00
|
|
|
(name: config:
|
|
|
|
nameValuePair "device_${name}" config.config.system.build.toplevel)
|
2024-12-11 12:05:16 -05:00
|
|
|
devices
|