nixos-configs/checks/devices/default.nix
matt1432 1ce40f2c1a
All checks were successful
Discord / discord commits (push) Has been skipped
feat(checks): add devShells
2024-12-16 15:02:39 -05:00

20 lines
556 B
Nix

# CI: https://github.com/Mic92/dotfiles/blob/c2f538934d67417941f83d8bb65b8263c43d32ca/flake.nix#L168
{
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