Re-apply commit0f93e58628("flake: infer default.nix import path (#1544)") that was accidentally reverted in commita5c1532ab8("flake: partition dev inputs (#1289)"). Link: https://github.com/nix-community/stylix/pull/1636 Reviewed-by: awwpotato <awwpotato@voidq.com>
18 lines
487 B
Nix
18 lines
487 B
Nix
{ lib, inputs, ... }:
|
|
{
|
|
perSystem =
|
|
{ pkgs, config, ... }:
|
|
{
|
|
# Build all packages with 'nix flake check' instead of only verifying they
|
|
# are derivations.
|
|
checks = config.packages;
|
|
|
|
# Testbeds are virtual machines based on NixOS, therefore they are
|
|
# only available for Linux systems.
|
|
packages = lib.mkIf pkgs.stdenv.hostPlatform.isLinux (
|
|
import ../../stylix/testbed {
|
|
inherit pkgs inputs lib;
|
|
}
|
|
);
|
|
};
|
|
}
|