nixos-configs/nixFastChecks/devices/default.nix
matt1432 6ca0d7248b
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: rename some flake attr directories
2024-12-16 15:51:41 -05:00

19 lines
455 B
Nix

{
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'
(name: config:
nameValuePair "device_${name}" config.config.system.build.toplevel)
devices