nixos-configs/nixFastChecks/devices/default.nix

20 lines
455 B
Nix
Raw Permalink Normal View History

{
pkgs,
self,
onlyApt ? false,
}: let
inherit (pkgs.lib) elem filterAttrs mapAttrs' nameValuePair;
devices = filterAttrs (n: config: let
isSameSystem = config.pkgs.system == pkgs.system;
in
if onlyApt
then isSameSystem && elem n ["bbsteamie" "binto" "homie" "wim"]
else isSameSystem)
self.nixosConfigurations;
in
mapAttrs'
2024-12-16 15:02:39 -05:00
(name: config:
nameValuePair "device_${name}" config.config.system.build.toplevel)
devices