2024-08-05 16:40:32 -04:00
|
|
|
# CI: https://github.com/Mic92/dotfiles/blob/c2f538934d67417941f83d8bb65b8263c43d32ca/flake.nix#L168
|
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
self,
|
2024-12-11 12:05:16 -05:00
|
|
|
onlyApt ? false,
|
2024-08-05 16:40:32 -04:00
|
|
|
}: let
|
2024-12-11 12:05:16 -05:00
|
|
|
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;
|
2024-08-05 16:40:32 -04:00
|
|
|
in
|
|
|
|
mapAttrs'
|
2024-12-11 12:05:16 -05:00
|
|
|
(name: config: nameValuePair "device_${name}" config.config.system.build.toplevel)
|
|
|
|
devices
|