refactor: rename checks and move files out of flake dir

This commit is contained in:
matt1432 2024-08-05 16:40:32 -04:00
parent 94bd0d81f5
commit 087dd2af15
11 changed files with 55 additions and 45 deletions

7
checks/default.nix Normal file
View file

@ -0,0 +1,7 @@
{
pkgs,
self,
}: let
nixosMachines = import ./machines.nix {inherit pkgs self;};
in
nixosMachines

10
checks/machines.nix Normal file
View file

@ -0,0 +1,10 @@
# CI: https://github.com/Mic92/dotfiles/blob/c2f538934d67417941f83d8bb65b8263c43d32ca/flake.nix#L168
{
pkgs,
self,
}: let
inherit (pkgs.lib) filterAttrs mapAttrs' nameValuePair;
in
mapAttrs'
(name: config: nameValuePair "nixos-${name}" config.config.system.build.toplevel)
((filterAttrs (_: config: config.pkgs.system == pkgs.system)) self.nixosConfigurations)